Skip Navigation

[Resolved] Conditional display of custom field based on a checkbox

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/Karachi (GMT+05:00)

This topic contains 4 replies, has 2 voices.

Last updated by Waqar 1 year, 9 months ago.

Assisted by: Waqar.

Author
Posts
#2584201

Tell us what you are trying to do? Conditional display of custom field based on a checkbox

Is there any documentation that you are following? Yes, https://toolset.com/course-lesson/conditionally-display-custom-fields-in-wordpress-backend/

Is there a similar example that we can see? Yes, but you need to login. See how checking different services populates more checbox options.
hidden link

What is the link to your site? hidden link

#2585721

Hi,

Thank you for contacting us and I'd be happy to assist.

To suggest the best way to achieve this, I'll need to see how these checkbox custom fields are set up in the admin area.

Can you please share the temporary admin login details, along with the exact details about what you're planning to achieve through these conditional checks?

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

regards,
Waqar

#2587985

Thank you for waiting as my forum queue was busier than usual.

The documentation guide that you referred to ( https://toolset.com/course-lesson/conditionally-display-custom-fields-in-wordpress-backend/ ), can be used with the custom fields added through the Toolset Types plugin.

However, the 'Portfolio' field group is being managed by the ACF (Advanced Custom Fields) plugin and not Toolset.

To better understand, how conditional display logic works in the ACF fields, you can consult its official support and documentation.
( ref: hidden link )

#2588159

Hi Waqar,

I was trying to re-create that functionality using Toolset.
The checkboxes doesn't show up as an option to set the conditional logic.
It works with ACF but doesn't seem work with Toolset.
If this isn't supported with Toolset, will probably just not use Toolset then.
Please advise.

#2590315

Thanks for writing back.

I've performed some tests and can confirm that the Toolset conditional display settings for the fields work only with the fields which can have only a single value, for example, a 'checkbox' type field.

But, fields like 'checkboxes' where multiple values can exist are not supported.