Skip Navigation

[Resuelto] CRED validation not highlighting errors

This support ticket is created hace 5 años, 1 mes. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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: Asia/Hong_Kong (GMT+08:00)

Etiquetado: ,

Este tema contiene 6 respuestas, tiene 2 mensajes.

Última actualización por duongN-3 hace 5 años, 1 mes.

Asistido por: Luo Yang.

Autor
Mensajes
#1361631
IMG_20191015_030224.jpg

Tell us what you are trying to do?
Debug CRED form validation. Problematic fields are not being highlighted.
Post Form includes this shortcode already: [cred_field field='form_messages' class='alert alert-warning']

Is there any documentation that you are following?
N/A
Is there a similar example that we can see?
N/A
What is the link to your site?
Post form: enlace oculto

#1361777

Hello,

How do you setup the validation error message "Fields with an asterisk are required" in your screenshot?
https://toolset.com/wp-content/uploads/2019/10/1361631-IMG_20191015_030224.jpg

Are you using filter hook "cred_form_validate" to setup custom codes for those validation error message? please provide detail steps to duplicate same problem, thanks.

#1361781
required-field.JPG
required-field-2.JPG

I have tried it in my localhost, with a fresh WordPress installation + the latest version of Toolset plugins, using below steps:
1) Create a custom required field "test-s4", see screenshot required-field.JPG
2) Create a post form for creating post, with above field "test-s4"
3) Test above post form in front-end, submit the form, I can see the error message just above field "test-s4", see screenshot required-field-2.JPG

Are we talking about the message "This field is required" just above field "test-s4"?

#1361799
Screen Shot 2019-10-14 at 9.17.37 PM.png

Hi Luo,

I'm using the validation under Post Field Group.
I'm attaching a screenshot.

Thanks.

#1361809

Are we talking about the message "This field is required" just above field "test-s4"?
>>>>> Correct! I'm talking about these error messages.

#1361811

Thanks for the details, how and where do you want to highlight the problematic fields?
By default, Toolset Forms plugin will show an error message just above the the problematic field, see screenshot I provided above:
https://toolset.com/wp-content/uploads/2019/10/1361781-required_field_2.jpg

#1361813

My issue is resolved now. Thank you!