Skip Navigation

[Resolved] no option to require field after saving form

This support ticket is created 2 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by ferryv-3 2 years, 8 months ago.

Author
Posts
#2376281
Schermafbeelding 2022-06-02 om 14.23.15.png

I am trying to: tweak the settings for user reg but after saving the form the option to make the field required disappears and is nowhere to be found again. So to change it it have to delete the field and re-add it again with is kind a waste of time.

Link to a page where the issue can be seen:

I expected to see: The same select option as before saving the field. This goes for both user forms and post forms.

Instead, I got: No option to make the field required.

#2376361

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Forms don't have options to make fields required, they inherit the required-ness from the custom field settings itself (i.e. when you go to Toolset > Custom Fields, edit a Custom Field Group, and then edit the individual fields within. If you specify required, the when you create a form it will automatically inherit whether the field is required or not.

If you find yourself making a form where the field is not required (so, not required when editing a post in the back end) but where you want to make it required on the front end, you can use the Forms API validation filter to provide server-side validation.

https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_validate

#2376373

My issue is resolved now. Thank you!