Query String to populate form
I have a query string I am using to auto-populate a form. It works great until the cell has multiple values.
Here is the query string:
="https://app.smartsheet.com/b/form/611a48e1b24d445eb48e373c9e06e1fd?Internal%20Course=" + SUBSTITUTE([Course Name]@row, " ", "%20") + "&Course%20Start%20Date=" + SUBSTITUTE(Date@row, " ", "%20") + "&Time=" + SUBSTITUTE(Hours@row, " ", "%20") + "&Instructor=" + SUBSTITUTE(Instructor@row, " ", "%20") + "&CTC%20Host=" + SUBSTITUTE([CTC Host]@row, " ", "%20") + "&Remote%20Attendance%20Supported=" + SUBSTITUTE([Remote Attendance Supported]@row, " ", "%20") + "&Location=" + SUBSTITUTE(Location@row, " ", "%20")
Both the Instructor and Location columns can have more than one value. Instructor column is a Contact List. Location is a drop down list.
Thanks
Answers
-
To populate a multi-select column from a form URL query, you need to list each value separately. For instance, if you have a Names column, and want to populate it with 3 names, you would need to do it like this in the query string:
https://app.smartsheet.com/b/form/{formID}?Names=Jeff&Names=Andrew&Names=Jill
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Thanks Jeff, unfortunately the names are dynamic it would require me to update this for each line rather than have it be a column formula. Any suggestions on how to get it to pick up both names without specifying the name?
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives