Skip Navigation

[Resolved] Even though field in post form is required you can move on without filling out

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

Problem:
The user has several generic fields set to be required, but the form submission completes even when values for the fields are not provided

Solution:
It turns out that the user was using the same slug for the generic fields. Once one of them has value, the form ignores the other fields. If each one of the fields has a unique value, the validation works as expected.

This support ticket is created 3 years 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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+00:00)

This topic contains 3 replies, has 2 voices.

Last updated by maiS 3 years ago.

Assisted by: Jamal.

Author
Posts
#2005245

Hi,
On my post form hidden link
I have 3 checkboxes in the button of the page. You need to check them all to create your camp. But even though you do not check the boxes you can still create the camp.
How do I fix this?

#2005287

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+00:00)

Hello and thank you for contacting the Toolset support.

All three checkboxes have the same slug. So, once one of them is checked, the form will think that all three are checked. Change the slug for the fields to have a unique slug per field and it should enforce the validation. Check this screenshot hidden link

Let me know what you will get.

#2007145

Aha I see! It seems to work now! Thank you 🙂

#2007147

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.