Forms : URL Query String with Multi Select Dropdown

Is there a way to use URL query string to pre-populate a dropdown multi select with more than one value in a form?
Best Answer
-
To populate a Multi-Select dropdown list with multiple values using the query string, you'll just need to add an & and list the field again with the second value, like so:
?Multi=Apple&Multi=Orange
So if I had more than two values, I'd need to list the field each time:
?Multi=Apple&Multi=Orange&Multi=Banana.... etc
Let me know if this works for you!
Cheers,
Genevieve
Need more information? π | Help and Learning Center
γγγ«γ‘γ― (Konnichiwa), Hallo, Hola, Bonjour, OlΓ‘, Ciao!π | Global Discussions
Answers
-
Are you not able to do that using the "default value" portion for that field when building the form?
-
Yes, but not usefull in that case because the value will not always be the same.
-
To populate a Multi-Select dropdown list with multiple values using the query string, you'll just need to add an & and list the field again with the second value, like so:
?Multi=Apple&Multi=Orange
So if I had more than two values, I'd need to list the field each time:
?Multi=Apple&Multi=Orange&Multi=Banana.... etc
Let me know if this works for you!
Cheers,
Genevieve
Need more information? π | Help and Learning Center
γγγ«γ‘γ― (Konnichiwa), Hallo, Hola, Bonjour, OlΓ‘, Ciao!π | Global Discussions
-
Understood. In that case please see Genevieve's response above. You can also replace sections with cell references as needed.
="url_string?Multi=" + [First Option]@row + "&Multi=" + [Second Option]@row + "rest_of_url_string.com"
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.9K Get Help
- 474 Global Discussions
- 207 Use Cases
- 517 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 83 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives