Option lists that contain smart controls can populate elements based on user responses. Selecting a specific item from one list can auto-populate another list elements option list.
*** Note: Option lists are universal. If you have 2 forms using the same list, editing the list will affect both forms.***
Implementing Smart Option Lists
For this example, the user will first select a Hospital Wing from a Pick List. Based off of the Hospital Wing selection, the following list: Hospital Department will only show options of departments in the specific wing.
Start by creating the first Pick List. Set up your option list as normal, as shown below.
Create the second Pick List. Within this option list, you can define what items from the list are displayed to the user based on their selection of a previous question. In order to accomplish this, the conditional logic must be entered into the advanced tab as shown in the screenshot below. This is the data column name from the previous element Pick List, hospital_wing==0 must be entered exactly as shown.*This is not the option list name.* Once you have entered this condition, click on the "Options in list" tab to make sure your condition was entered in correctly.
There are many conditions further down the list that are not shown here, but the idea is, if the user selects the first choice for the element hospital_wing, the items including and beneath this statement ---[hospital_wing==0]--- will be shown as choices to the user. If the user selects the second option in the element Pick List hospital_wing the options including and beneath ---[hospital_wing==1]--- will be shown as choices. It is possible to have one master list that serves multiple elements. After you enter in the conditional value as discussed above and click the "Options in List" tab, your screen should look similar to the one you see below.
*Note: The syntax must be exactly as shown, data_column_name==0
Additional Smart Option List Examples: