Is there a hook I can use to change the 'This field is required.' message?
Thanks,
Is there a hook I can use to change the 'This field is required.' message?
Thanks,
In the advanced tab of a field, there should be an input box called Validation Message. Try changing it there and let me know if that solves your issue.
Thanks,
But I have about 20 fields across the site and I'd prefer to set it once in functions if there is a hook available.
Sure, take a look at:
http://www.gravityhelp.com/documentation/page/Gform_validation_message
There's a way to set ALL the Field validation messages ONCE (E.g. This field is required)?
I have lots of forms with lots of fields, and change the message separately is a bit bothering.
I've tried with that code but just change the general form message (There was a problem with your submission. Errors have been highlighted below).
Also, the default string should be on the .mo/.po files to be translated easily :S
Cheers!
If you are looking for field validation, please look here: http://www.gravityhelp.com/documentation/page/Gform_field_validation
You can validate any/all fields in specific forms, all forms, etc... using the above hook.