Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [required]

The tag has no usage guidance.

0
votes
0answers
26 views

Freeform Pro is throwing an error when a non-required file upload field is left empty when submitted

I'm getting an error from a freeform pro form on a site I'm working on. The file upload field is not required, but if I leave it empty and try to submit the form, it throws an error saying: [error] ...
2
votes
2answers
105 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
331 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
36 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 ...
3
votes
1answer
140 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
1answer
302 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 ...
1
vote
1answer
335 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 ...
1
vote
1answer
270 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
3answers
187 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 ...
4
votes
1answer
496 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 ...