How:Field Dependencies: Difference between revisions

From Memento Database Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{stamp|2018-01-04|4.4.0|1.2.0}}
{{stamp|2018-01-05|4.4.0|1.2.0}}
== 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 '''''contents''''' of the following types of fields can vary depending on other fields:
=== Content dependencies ===
Radio buttons, Checkboxes, Single-choice list, Multiple-choice list.


When you create a content dependency, you set what values of the dependent field will be available for selection, for each possible value of the master field.
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.


To make the '''''contents''''' of a field dependent upon the values of a master field, do the following in the Library Edit screen:
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.
# Create a master field with choice values (items).<br/>Example: Gender, with items Male and Female
 
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
# 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.
# 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 value(s) (the items) 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.
# 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 item to be visible (perhaps Female), select the value to set for that item, and press the checkmark in the upper-left corner of the card.


[[Category:How]]
[[Category:How]]

Revision as of 12:40, 5 January 2018

« Page as of 2018-01-05, editions Mobile 4.4.0, Desktop 1.2.0 »

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.

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:

  1. Create a master field with choice values (items) (or a Checkbox (Boolean) field).
    Example: Gender, with items Male and Female
  2. Add a dependent field, and select Dependencies of the field; this brings up the Dependencies list card.
  3. Press the blue plus (+) button to add a dependency; this brings up the Add a dependency card.
  4. Select the field upon which to be dependent and press the OK button; this will bring up the Create dependency card.
  5. Choose whether the dependency is only when editing an entry (the default) or also when viewing an entry.
  6. Then choose the value(s) (the items) of the master field that will cause the dependent field to be visible (say, Female) and press the checkmark in the upper-left corner of the card.

Now, when the corresponding choice(s) is|are selected (Female, perhaps), the previously hidden dependent field(s) become visible.

Content dependencies

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.

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 items of a choice field dependent upon the values of a master field, do the following in the Library Edit screen:

  1. Create a master field with choice values (items) (or a Checkbox (Boolean) field).
    Example: Gender, with items Male and Female
  2. Add a dependent field, and select Dependencies of the field; this brings up the Dependencies list card.
  3. Press the blue plus (+) button to add a dependency; this brings up the Add a dependency card.
  4. Select the field upon which to be dependent and press the OK button; this will bring up the Create dependency card.
  5. Choose whether the dependency is only when editing an entry (the default) or also when viewing an entry.
  6. 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.
  7. Then choose the value(s) of the master field that will cause the dependent field item to be visible (perhaps Female), select the value to set for that item, and press the checkmark in the upper-left corner of the card.