Saltar navegación

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

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 hace 3 años, 10 meses. 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)

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por maiS hace 3 años, 10 meses.

Asistido por: Jamal.

Autor
Mensajes
#2005245

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

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!