How:Field Dependencies: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 15: | Line 15: | ||
Now, when the corresponding choice(s) is|are selected (Female, perhaps), the previously hidden dependent field(s) become visible. | Now, when the corresponding choice(s) is|are selected (Female, perhaps), the previously hidden dependent field(s) become visible. | ||
=== | === Content dependencies === | ||
The ''''' | The '''''items''''' (or ''choices'' or ''content'') of the following types of fields can vary depending on other fields: | ||
Radio buttons, Checkboxes, Single-choice list, Multiple-choice list. | Radio buttons, Checkboxes, Single-choice list, & Multiple-choice list. | ||
When you create a | When you create a content dependency, you set, for each possible value of the master field, what items (or ''choices'') of the dependent field will be available for selection. | ||
To make the ''''' | To make the '''''items''''' of a choice field dependent upon the values of a master field, do the following in the '''Library Edit''' screen: | ||
# Create a master field with choice values (items) (or a Checkbox (Boolean) field).<br/>Example: Gender, with items Male and Female | # Create a master field with choice values (items) (or a Checkbox (Boolean) field).<br/>Example: Gender, with items Male and Female | ||
# Add a dependent field, and select '''Dependencies of the field'''; this brings up the '''Dependencies list''' card. | # Add a dependent field, and select '''Dependencies of the field'''; this brings up the '''Dependencies list''' card. | ||
Line 28: | Line 28: | ||
# Select the field upon which to be dependent and press the '''OK''' button; this will bring up the '''Create dependency''' card. | # Select the field upon which to be dependent and press the '''OK''' button; this will bring up the '''Create dependency''' card. | ||
# Choose whether the dependency is only when editing an entry (the default) or also when viewing an entry. | # Choose whether the dependency is only when editing an entry (the default) or also when viewing an entry. | ||
# Then choose the | # Then choose the item(s) of the dependent field that will cause the dependent field to be visible (perhaps Female) and press the checkmark in the upper-left corner of the card. | ||
# Then choose the value(s) of the master field that will cause the dependent field to be visible (perhaps Female) and press the checkmark in the upper-left corner of the card. | |||
[[Category:How]] | [[Category:How]] |