Skip Navigation

[Resolved] Forms validation issues

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

Problem:

How to use "cred_form_validate" to validate custom field value when submit Toolset post form.

Solution:

Here is an example:

https://toolset.com/forums/topic/forms-validation-issues/#post-1921395

Relevant Documentation:

https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_validate

This support ticket is created 3 years, 9 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
- 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)

Tagged: 

This topic contains 15 replies, has 3 voices.

Last updated by richardB-19 3 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#2012713

So I switched to the 2020 theme and tried and was getting the same issues and some js errors. The JS errors I was seeing was related to the Toolset media manager. Switching to WP media manager, the errors went away and client side validation started to work. So the form isn't allowing the submittal without the required fields now when post back or ajax are used. Not sure if the underlying issue is still there or not without disabling all JS for the page.