In a group of related fields, the state of each field is dependent upon the state of one or more of the other fields in the group.
For example, a form can contain a group of fields where only one of those fields is required to be completed. When the field is completed, the other fields are made inactive.
A group of related fields is defined by creating one or more computes in each of the fields in the group. When one field in a group is completed, the computes manipulate the active or mandatory status of the other fields in the group.
This technique is useful is when there is a set of fields for collecting name and address information. The name and address information can be optional, but if the user enters a name, the address fields becomes mandatory. In this case, completion of all or no fields in the group is required. In another example, there are three fields for collecting telephone contact information. The more telephone numbers that the user enters the better so a compute is set so all of the fields are mandatory until one of them is completed. After that, the other fields change from being mandatory to being optional.
The sample procedures show you how to create groups of related fields, and also give you an idea of what is possible using this technique. Although this discussion is limited to fields, relationships among other form items such as buttons, list boxes, and check boxes can be created.
Requiring completion of all or no fields in a groupParent topic: Action Editor
In this example, a action is set so that if one field in the group is completed, the user must fill in all fields. An If/Then/Else action is used on each of the fields so if one of the fields is filled in, the remaining fields become mandatory.
Requiring completion of at least one field in a group
This example uses an If/Then/Else action to require completion of at least one field in a group of fields. Each entry field is mandatory until the user completes one of them. After that, the other fields become optional.
Limiting completion to one field in a group
Actions are used to limit completion to one field in a group of fields. In the example below, each entry field is mandatory until the user completes one of them. After that, the other entry fields become inactive.