Section | ||||||||
---|---|---|---|---|---|---|---|---|
|
Rule syntax and best practices to follow are discussed in the Writing Rules to Retrieve and Update Data in a Google Sheet topic.
Step 1: Obtain an access token
...
Populating Dropdown Options from a Google Sheet
Here is another example of a simple rule that populates a dropdown control named Colors with color options from a Google Sheet.
...
Create a Form with a dropdown control named Colors.
Use this rule to populate the dropdown options with the colors Red, Blue, Green and Orange. Note this rule uses http headers to provide authentication information. The Google Sheet is identified by the spreadsheet key and the worksheet name is passed as a query parameter. This is the recommended approach.
Replace <Google User ID> and <Google Account access token> with your information in the user and password headers.
Change <your spreadsheet key> and wsname= to the key for you Google Sheet and <the name of the worksheet> to reflect the name of the worksheet tab in your Google Sheet.
...