Tell us what you are trying to do?
I am trying to create nested conditionals for a large set of custom fields attached to a custom post type.
This is for a bibliography. The first conditional is to choose the type of Reference (a taxonomy). In some cases, there is also a sub-type to choose. Depending on the types chosen, input fields will display.
There is the "conditional" option in the custom field. Then there is the conditional display options for the form.
When I use the conditional option in the custom field, it does not do anything different when I go to add content. It does not reveal/hide fields based on what is selected.
How best do I design the kind of step-by-step conditionals that reveal custom fields depending on what's selected?
Is there any documentation that you are following?
https://toolset.com/course-lesson/using-toolset-conditional-block/
Is there a similar example that we can see?
Similar to Zotero or a bibliography program.
What is the link to your site?
collectingoscarwilde.com
Hello,
It is not recommended to use nested conditional blocks, I suggest you try these:
Setup a conditional block to display a content template block:
https://toolset.com/block-item/content-template/
In above content template, setup other inner conditional block, if there are more sub-level inner conditional block, setup more content templates.
Hello, Luo!
Thank you so much for your help.
Basically, I am trying to create custom fields for a custom post type.
What I want is that if a user selects one option from a custom field, it "reveals" other fields that are related. Otherwise, it "hides" the custom fields that aren't related.
What is the best way for me to set up my custom fields so that they only show certain custom fields based on what the user selects in other custom fields.
Thank you!
Dan
I assume we are talking about Toolset Forms plugin, you are using Toolset Forms to create/edit posts, if it is, please check our document:
https://toolset.com/documentation/programmer-reference/forms/cred-conditional-display-engine/
Advanced Conditional Display for Form Sections
You can control display for form sections from Forms’s GUI. This will allow to create simple display logic, involving custom fields and taxonomy.
My issue is resolved now. Thank you!