Create a drop-down list on your item
To add a list of choices that a user can select from a drop-down list to your form, you add a codelist to an item. In InForm, the item question appears on the left of the page, and the codelist (the drop-down list) appears on the right.
For example, your form might include a Gender item. To add a drop-down list that allows the user to select a subject's gender, you add a codelist, and codelist items Male and Female.
- At the bottom of the Project Explorer, click the Visit Schedule () button.
- Expand the visit and form with the item you want to add the codelist to.
- In the grid, highlight the item's row by clicking the box on the left.
- At the top of the Design tab, click Codelist, and select New.
- In the New Codelist dialog box, in the Design tab, enter a title, RefName, and description for the codelist.
- In the Data type drop-down list, select a data type for the codelist.
Tip: The data type must match the data type of the codelist's parent item, and all codelist items (the options in the drop-down list) that you add to the codelist.
- In the grid, enter a title, RefName, code, label, and description for each codelist item (option in the drop-down list), and press Enter or tab to save each row.
Tip: The label is the value that appears for each option in the drop-down list in InForm. HTML formatting tags are not supported for pulldown controls. Do not use HTML formatting tags in the Label of any of the codelist items.
- In the Project Explorer, select the item you added the codelist to.
- On the Design tab, in the Codelist Settings section, click Select Single Value.
- At the top of the page, select the Layout tab.
- If you haven't already done so, click Create Layout.
- On the right of the page, right-click the codelist that you just created, select Control Type, and select Pulldown.