Skip Navigation

[Resolved] Conditional Group from Multiple Checkbox Selection in Form & Admin

This support ticket is created 4 years, 3 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.

Our next available supporter will start replying to tickets in about 0.12 hours from now. 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 7 replies, has 2 voices.

Last updated by benjaminJ-3 4 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#1749387

Tell us what you are trying to do?
I have a group of muli checkboxes and one option is "Other". When a user selects other (in both admin and the post form) I need to conditionally display a single text box to specify what "other" is.

Is there any documentation that you are following?
Can't find anything helpful and the page about conditional groups for fields is gone: https://toolset.com/documentation/user-guides/conditional-display-for-form-inputs

Is there a similar example that we can see?
All modern forms allow for this.

What is the link to your site?
hidden link

#1753399
Checkboxes-Conditional-Group.JPG

Hello,

In WP admin side, the "Data-dependent display filters" does not support custom checkboxes field, when you setup the Data-dependent display filters, there isn't custom checkboxes field options available.

But it is possible within Toolset Forms "Conditional Group", for example: Your-Custom-Checkboxes field = other, see screenshot
Checkboxes-Conditional-Group.JPG
I have tried it in my localhost, it works fine.

#1758355

This solution does not work for me. I remember doing this in the past and I had to use a label or something as the value. At any rate, since there is no detailed or clear documentation for this I'm at a loss on how to get this working.

#1758625

In WP admin side, the "Data-dependent display filters" does not support custom checkboxes field

This is mentioned in our document:
https://toolset.com/course-lesson/custom-fields-conditional-display/
section "Simple conditional fields logic":

Please note that there are few types of post fields you cannot use as conditions for showing other fields. These fields include the ... Multiple Checkboxes field ...

For the Toolset Forms in front-end, I have tried it in my localhost, it works fine, please check these:
1) You are following our document to setup the condition settings:
https://toolset.com/course-lesson/conditional-display-for-form-inputs/
2) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/
3) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2020, deactivate all custom PHP/JS code snippets, and test again

#1759189

What value do you put into the conditional field?

#1759765

The value is same as your option value of "other", see the screenshot I provided above:
https://toolset.com/forums/topic/conditional-group-from-multiple-checkbox-selection-in-form-admin/#post-1753399

#1806087

No matter what value I put in the conditional box it won't display on the CRED form.

How do I get a multi checkbox to open a conditional block in a CRED form?

#1836841

I found out that the issue was the built-in toolset form builder does not properly put the fields into the conditional wrapper. So I had to use the advanced view and manually place the fields into the conditional shortcode.