Toggle String Property Visibility based on Conditional that points to an Option List item
This blog article covers difference in option list vs taxonomy then dives deeper by making a label property visible based on a sub-item selection in a hierarchical option list. You should have access to a Sitecore Content Hub Sandbox instance and this one uses Sitecore Content Hub v 4.1.1.
Since the Sitecore content hub certification exam covers questions on the process of setting up relation/optionlist/taxonomy members within a schema, this blog article primarily covers toggling a label property based on a specific option list value, here are the high-level steps involved for the same:
a. Create the option list
b. Target schema is the one that has the member field too, label in this example
c. In the target schema, create option list field of the type created in step a
d. Member field Conditionals will be populated with the option list name after step c
e. Add condition for the concerned member field and select the required option list value
f. Label should be visible once the concerned option list item is selected in the detail page.
Now, some basics about taxonomy and option list before we get into the details:
1. From settings, access taxonomy and create a taxonomy as follows:
2. Create taxonomy items:
3. Search and find the created taxonomy to be sure: