Make an item conditional on another object
You can configure an item so that it is only enabled in InForm if a user selects a specific option from a drop-down list, a set of radio buttons, or a set of checkboxes. To do so, you make the item conditional on the InForm user selecting a specified option.
Pre-requisites:
- Create an item with a drop-down list, radio buttons, or checkboxes. For more information, see:
- Make the item a child item of the item with the drop-down list, radio buttons, or checkboxes.
Tip: If you plan to make more than one item conditional on the codelist selection within a higher level item, include the conditional items in a compound item, and then make the compound item conditional. This practice prevents issues down the line in InForm reports and RDEs.
- At the bottom of the Project Explorer, click the Visit Schedule () button.
- Expand the visit with the form that has the item you want to make conditional.
- In the Project Explorer, select the form.
- In the grid, in the row for the item you want to set as conditional, in the Conditional On column, select the item with the drop-down list, set of radio buttons, or set or checkboxes.
- In the Conditional Value column, select the option in the drop-down list, radio button, or checkbox that a user needs to select in order to see the conditional item.
- Optionally, to make the item invisible on the form until the specified conditions are met:
- In the Project Explorer, select the item.
- Click the Properties tab, which appears on the right of the page by default.
Tip: If you don't see the Properties tab, at the top left of the page, select View, and make sure Properties is selected.
- To make the item invisible on the form, from the Collapsible drop-down list, select True, and press Enter.