Skip Navigation

[Gelöst] Required fields

This support ticket is created vor 5 Jahre, 5 Monate. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 Antwort, has 2 Stimmen.

Last updated by Luo Yang vor 5 Jahre, 5 Monate.

Assisted by: Luo Yang.

Author
Artikel
#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

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.