Navigation überspringen

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

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 3 Jahren, 10 Monaten. 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)

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von maiS vor 3 Jahren, 10 Monaten.

Assistiert von: Jamal.

Author
Artikel
#2005245

Hi,
On my post form versteckter 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

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 versteckter 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!