Skip Navigation

[Resolved] Conditional display custom fields

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

Problem: I would like to use conditional display to show or hide a custom field based on the value of another custom field in the same post.

Solution: Use the conditional display interface in the field editor to set conditional display rules based on other custom field values.

Relevant Documentation:
https://toolset.com/documentation/user-guides/custom-content/types-custom-fields-conditional-display/

This support ticket is created 5 years 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 2 voices.

Last updated by richardB-17 4 years, 12 months ago.

Assisted by: Christian Cox.

Author
Posts
#1503453
post-type.jpg
machine-category.png
ancilliary-equipment.png

I have a select field called machine category with a number of select options and the first option is Ancilliary Equipment. What I would like to find out is if I can use conditional display conditions in the fields so that I can hide a select field until a specific option is select in another select field.

So I have a select field called machine category and when I select the first dropdown option Ancilliary Equipment then I would like to display another select field called Ancilliary Equipment

I have included some screen prints.

hidden link

#1503719

Hello, yes conditional display like this based on another custom field value is possible. In the Ancilliary Equipment field editor, scroll down to the bottom and click Set conditions next to "Conditional Display". Then in the popup, click "Add condition" and choose your Machine Category custom field. The value of the Machine Category custom field should be equal to 1, because that is the custom field content for the Ancilliary Equipment option. We have documentation about custom field conditional display available here:
https://toolset.com/documentation/user-guides/custom-content/types-custom-fields-conditional-display/
Let me know if you have questions about that.

#1508353

Thank you Christian you rock.

#1508357

My issue is resolved now. Thank you!