Skip Navigation

[Resolved] Conditional Fields based on Checkbox fields

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

Problem:
How to display or show/hide fields conditionally based on checkboxes field values using CRED form

Solution:
You can use [cred_show_group] Shortcode in order to display the conditional fields based on checkboxes on CRED form.

You can find proposed solution in this case with the following reply:
=> https://toolset.com/forums/topic/conditional-fields-based-on-checkbox-fields/#post-610946

Relevant Documentation:
https://toolset.com/documentation/user-guides/conditional-display-for-form-inputs/

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

Author
Posts
#610824

I was wondering if it were possible to, on post creation forms, show one field conditional upon the answers in another, checkbox, field. This could be made to happen in the Post Field Group -> Set Conditions -> Advanced Text Mode field (I understand it won't work with the Simple Conditional Fields) or in the Post Form. I want it to act like standard conditional fields in the post form, so that when you select the correct option from the checkbox, the next field appears. However, it doesn't have to act that way in the backend.

Thanks.

#610946

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

As I understand - we are talking about CRED form here and you want to show/hide some fields based on checkbox option selection.

For example:

[cred_show_group if="($(checkboxes-slug) eq  '1' )"  mode='fade-slide']
 ...Your required field to display  here
[/cred_show_group]

Did you check the following Doc:
https://toolset.com/documentation/user-guides/conditional-display-for-form-inputs/

#611124

Hey, thanks, that was a tool I didn't know existed, and it works really well with checkboxes - I wonder why some of the other conditional tools (like in creating Post Fields) won't play well with them?

Anyway, that worked perfectly. I appreciate the great support.