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 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.

Our next available supporter will start replying to tickets in about 8.25 hours from now. Thank you for your understanding.

This topic contains 3 replies, has 2 voices.

Last updated by maiS 5 months, 2 weeks ago.

Assigned support staff: 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+01: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!