Home › Toolset Professional Support › [Resolved] Make taxonomy field to required and show message on the top of filed
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)
This topic contains 1 reply, has 2 voices.
Last updated by Luo Yang 3 years ago.
Assisted by: Luo Yang.
Tell us what you are trying to do?
I'm trying to make taxonomy field to required and show message on the top of the field.(like custom filed required message)
but if I follow this ticket, required error message is showing on the top of the form.
How can I do this?
Is there any documentation that you are following?
this is the ticket I followed , but it shows error message on the top of the form.
https://toolset.com/forums/topic/how-to-make-taxonomy-select-box-required/
Is there a similar example that we can see?
I added example image and my taxonomy code
What is the link to your site?
hidden link
Hello,
You can follow our document to use filter hook "cred_form_validate" to setup your custom PHP codes:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_validate
If you need more assistance for it, please provide a test site with the same problem, also point out the problem page URL and form URL, where I can edit your custom PHP codes, I need a live website to test and debug