Dependent fields allows you to manage sets of dependencies between fields. When a field is dependent it will only be available for editing and displayed if the state of the parent field satisfies the right rule. If rule is not satisfied, it will not be possible to view or edit dependent form field. Note that first form field can’t be dependent.
Note: If rule is not satisfied dependent field will not be visible in the MDC.
There are various rules that can be activated for the form item:
- All of these rules need to be satisfied.
- At least one rule needs to be satisfied.
- Exactly one rule should be satisfied.
- None of the rules can be satisfied.
It is only possible to define dependencies for previous form items because they branch from parent field. You can set more dependencies for one form field.
After choosing a rule, you can choose form fields included, condition, condition value and add another dependency.
Example: we want to collect data about buildings. Only if the building is hotel, we want to take a picture of it. Only if the building is hospital, we want to collect address.
1. Set “parent” field (in this example Building).
2. Add new Photo field and click Dependencies button. This form field will be dependent of “Building” form field. Set condition and enter value.
Note: This form field will be visible in the MDC only if value in the “Building” field is equal to “Hotel”.
3. To collect address data only for hospitals, we have to add new dependency field. Add new text field and click Dependencies button.
Note: This form field will be visible in the MDC only if value in the “Building” field is equal to “Hospital”.
4. In MDC Portal click Save changes button after defining dependencies and conditions.