Skip Navigation

[Resolved] How to modify the validation messages for fields used in a CRED form?

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to modify the validation messages for fields used in a CRED form?

Solution:
Standard fields and non-Types fields use the validation messages specified in the form.

For Types fields the validation messages are set on custom fields themselves.

This support ticket is created 6 years, 8 months ago. 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by jeffS-2 6 years, 8 months ago.

Assisted by: Nigel.

Author
Posts
#625495
Screen Shot 2018-03-15 at 7.55.43 PM.png
Screen Shot 2018-03-15 at 7.53.19 PM.png

I am trying to:
Change the form message from "Please enter a valid URL address" to "Please enter a valid URL address... ex: hidden link".

Link to a page where the issue can be seen:
hidden link

I expected to see:
The new validation error message.

Instead, I got:
The original message.

I have cleared all cache and tried 3 browsers. Still get original message.

#625534

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Jeff

You set the custom validation message on the settings for the post field itself, i.e. go back to edit the custom field at Toolset > Post Fields.

The small print at the top of the section from the form you show in your screenshot says "They are used only for validation of generic fields and some basic fields, for example, the post title and username." Not Types fields which supply their own validation messages.

#625899

Got it. Fixed.
Thanks, Nigel.

Jeff
-----