Questions tagged [required]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
1answer
561 views

Make fields required when using Guest Entries

This might be a bit of a Noob question but here I go: Using Guest Entries on a site and cannot figure out how to make certain fields required. Those fields are marked as required in the CP but, when ...
3
votes
1answer
152 views

How does Craft regard a Lightswitch field when it's set to Required in the Fields layout?

If I set a Lightswitch field as required, does that require it to be On? Is that valid at all? (Context: I'm using a Lightswitch in User fields to capture "I agree to the Terms & Conditions...", ...
2
votes
2answers
220 views

Craft Commerce: make address phone telephone field required without JavaScript

Because I used a similar address model to the one supplied in the Craft Commerce templates, which essentially uses the same form partials for both address and billing, and also hides and shows the ...
2
votes
1answer
497 views

How can I skip a required field if is not in the form?

The problem is that I have a register page where I have 3 fields, Username, Email, Password. There is another page with some more fields which are required. So when I try to register a user form my ...
2
votes
1answer
726 views

Make fields conditionally required

Is there a way to make fields conditionally required? I have a toggle field that is used to hide or show a section (see screenshot: "Section 3 enabled"). If the section is shown (toggle: on), the ...
1
vote
1answer
42 views

Where can you set a form field to required in the DB

Can someone point me to where in the DB you set a field as required? I am actually wanting to do this on a Sprout Forms field I am not sure if that makes a difference or not. I can't find which table ...
1
vote
3answers
191 views

How to use required fields on localised entries?

I'm building a multi-lingual site and have found Craft's locales / translatable fields useful for setting up structures where each page will have a translated version. However, for at least one of the ...
1
vote
1answer
332 views

Required fields in the user profile

how to make required plane text fields or required firsrtName and lastName fields in users profile? I want to during the registration and profile changes were required. Maybe there is any plugin for ...
1
vote
1answer
393 views

Front end edit required asset

Since file inputs are not allowd to be pre-populated, how do i tell craft that a required asset field is already filled in the front end edit form? Can’t seem to figure this one out. Edit: Users can ...
0
votes
0answers
23 views

Craft CMS User Registration Form Validation

I have enabled fron end registration form, I want to make firstName and lastName required in the form and also want to add custom fileds with required validation.