Applies to:
- Winshuttle Foundation
4-3. Connect form drop-down lists to SharePoint lists
Back to
Steps in this phase
In this step we will convert text box fields to drop-down lists, and set the drop-down lists to retrieve data through an external data connection (a SharePoint list) in order to populate the lists.
For additional information on data connections, see Adding data connections for instructions on how to run the appropriate Wizard in Composer to set them up.
We will want to create connections to the following SharePoint lists:
- Countries
- Terms of Payment
- Currencies
- Reconciliation Accounts
Convert fields to drop-down lists
First we'll convert the Countries field in the form to a drop-down field.
- Click the Countries field.
- In the Properties pane, next to Element Type, click the drop arrow.
- Select Dropdown from the list.
You can repeat this process for each field (Terms of Payment, Currencies, Reconciliation Accounts,etc.) now, and then return to each one and add a Data Connection to it.
Set data sources for drop-down lists to external data sources
Continuing from the previous 3 steps where we converted the Countries field to a drop-down list, now we want to change the Countries field (and then the Terms of Payment, Currencies, and Reconciliation account fields) to use an external data connection to a SharePoint list from which it will derive the options displayed in the drop-down list.
- Click the field (Countries, Terms of Payment, Currencies, or Reconciliation Account).
- In the Properties pane for the field, next to Options, click [...] (the Options button).
- In the Options Editor, select From Data Connection.
- If you have already established a data connection, you can select it from the drop-down menu under Data Connection. Otherwise, click Add.
- If you clicked Add, configure the data connection by entering the following information:
- Name: The name for the data connection, without spaces.
- Type: Select SharePoint Library or List from the drop-down menu.
- SharePoint Site URL: Enter the http:// address for the SharePoint site you are using.
- Library or List: Select the Library or List from the drop-down menu.
- Fields: Select the fields to use for the connection. Here is an example using the TermsofPayment data connection:
Repeat this process for each of the following fields:
- Countries
- Terms of Payment
- Currencies
- Reconciliation Accounts
Tip: For the REGION/STATE field part of the CountriesandRegions data connection: In the Properties window for the drop down list, click Filterto filter the external list by the selected Country .
Data connection examples
Countries and Regions data connection example
Terms of Payment data connection example
Currency data connection example