How:Field Dependencies: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
== Field Dependencies == | == Field Dependencies == | ||
If you have a field with choices (Checkbox (Boolean), Radio buttons, Checkboxes, Single-choice list, Multiple-choice list), you can enable dependencies of other fields based on the choice(s). The choice field is called the '''''master''''' field, and fields that are dependent on it are called '''''dependent''''' fields. | If you have a field with choices (Checkbox (Boolean), Radio buttons, Checkboxes, Single-choice list, Multiple-choice list), you can enable dependencies of other fields based on the choice(s). The choice field is called the '''''master''''' field, and fields that are dependent on it are called '''''dependent''''' fields. | ||
=== Visibility dependencies === | |||
To make the '''''visibility''''' of a field dependent upon the values of a master field, do the following in the '''Library Edit''' screen: | To make the '''''visibility''''' of a field dependent upon the values of a master field, do the following in the '''Library Edit''' screen: | ||
Line 13: | 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. | ||
The ''''' | === Value dependencies === | ||
The '''''values''''' 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 value dependency, you set what values of the dependent field will be available for selection, for each possible value of the master field. | ||
To make the ''''' | To make the '''''values''''' 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).<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. | ||
# Press the blue plus ('''<big>+</big>''') button to add a dependency; this brings up the '''Add a dependency''' card. | # Press the blue plus ('''<big>+</big>''') button to add a dependency; this brings up the '''Add a dependency''' card. |