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.

To set dependent field open MDC Portal and create new project or open existing project.

Note: If rule is not satisfied dependent field will not be visible in the MDC.

 

dep1

 

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.

 

rules2

 

After choosing a rule, you can choose form fields included, condition, condition value and add another dependency.

 

rules333

 

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).

 

dep2

 

2. Add new Photo field and click Dependencies button. This form field will be dependent of “Building” form field. Set condition and enter value.

rules444

Note: This form field will be visible in the MDC only if value in the “Building” field is equal to “Hotel”.

 

hotel

 

3. To collect address data only for hospitals, we have to add new dependency field. Add new text field and click Dependencies button.

 

dep44

 

Note: This form field will be visible in the MDC only if value in the “Building” field is equal to “Hospital”.

hospital

 

4. In MDC Portal click Save changes button after defining dependencies and conditions.