Skip Navigation

[Resolved] Make post category field required

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

Problem:
How to validate and make post category taxonomy field required

Solution:
You can use CRED API hook cred_form_validate to validate your form.

You can find proposed solution, in this case, with the following reply:
=> https://toolset.com/forums/topic/make-post-category-field-required/#post-612638

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

This support ticket is created 6 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Nicholas 6 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#612573

Hello I'd like to make the post category field required. How's this possible?
It's pretty easy with a cred generic field.

#612638

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

You can use CRED API hook cred_form_validate to validate your form.

More info:
=> https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_validate

#612660

Thank you.