Skip Navigation

[Resolved] Required fields

This support ticket is created 6 years, 1 month 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 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#1147747

Hi,

I created a CRED to add new post.
How can I make the standard fields "body" and "feature image" as required.

I tryed with the --required="true"-- but doesn not work.

Thank you

#1147764

Hi,

There isn't such a built-in feature within Toolset form, it is same when you save a post in admin side, the "body" and "feature image" are not required too.

As a workaround, you can try with Form filter hook "cred_form_validate" to setup your custom validations, for example this thread:
https://toolset.com/forums/topic/wp-featured-image-required-multiple-cred-forms/

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