Skip Navigation

[Resolved] Required fields not validating

This thread is resolved. Here is a description of the problem and solution.

Problem:

On the signup form, Toolset user form required fields could be bypassed if WordPress core required fields were filled first, allowing submission without completing Toolset-required fields.

Solution:

Add the required='true' attribute directly to the [cred_field] shortcode for each field that must be mandatory, ensuring proper validation and preventing form submission without them.

Relevant Documentation:

https://toolset.com/forums/topic/required-fields-in-front-end-forms/

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 6 replies, has 1 voice.

Last updated by daveG-7 2 weeks, 4 days ago.

Assisted by: Christopher Amirian.

Author
Posts
#2820940

On the signup page for oregonfarmlink.org (hidden link) we have a lot of required fields. However, on the you can submit the form with just filling out the standard wordpress required fields (username, password, name, address) and not the toolset user form required fields (for example, What are you most interested in using this site for?), and it goes through. If you don't enter one of the standard required fields, it will then make you fill in every required field, but if you fill in the WordPress ones first, it won't require the other required fields.

#2820995

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Welcome to Toolset support. According to the ticket below:

https://toolset.com/forums/topic/required-fields-in-front-end-forms/

Toolset can not make a field required in the form if the field is not set as required when added in the Toolset > Custom Fields.

So please make sure that you make that change there and test if it works for you.

Thanks.

#2821009
Screenshot 2025-08-20 at 9.53.09 AM.png

The user fields in question are required. For example, "How did you hear about us?" and "County OFL Users" - see screeenshot.

#2821114

Christopher Amirian
Supporter

Languages: English (English )

Hi,

I'd appreciate it if you could give me the URL/User/Pass of your WordPress dashboard after you make sure that you have a backup of your website.
It is absolutely important that you give us a guarantee that you have a backup so if something happens you will have a point of restore.

Make sure you set the next reply as private.

I will try to check and see if there is an issue with the settings or not.

Thanks.

#2821476

Christopher Amirian
Supporter

Languages: English (English )

Screenshot 2025-08-24 at 6.21.16 PM.png

Hi,

Thank you for the login information. Unfortunately, the user does not have the administrator role, and I can not see the Toolset menus and the form.

Would you please make sure the user is an administrator or give a user who has that role?

Thanks.

#2821531

Oops, sorry. That account is now an admin, same user and password.

#2821593

Christopher Amirian
Supporter

Languages: English (English )

Screenshot 2025-08-25 at 5.41.58 PM.png

Hi,

Thank you for the login information. In the user form please add the required attribute for the fields that you want to be required. As an example:

[cred_field field='street-1' post='user' value='' urlparam='' required='true']

After that, you should see the correct error not allowing you to submit the form.

#2822878

That fixed my issue, thank you!