Sauter la navigation

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

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 3 années et 10 mois. 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+01:00)

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par maiS Il y a 3 années et 10 mois.

Assisté par: Jamal.

Auteur
Publications
#2005245

Hi,
On my post form lien caché
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

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 lien caché

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!