Query string is not working for multiple variables
Hi,
I am trying to pre-populate a form with multiple variables. I am trying to use a formula with the query string (see below). Only the first variable shows up correctly on the form. It is not picking up on the other 2. What am I doing wrong?
Best Answer
-
You need an & before each field name after the first and it looks like anything being populated after the initial field isn't having the special characters (in this case the space) percent encoded. Try this:
="form_url?" + SUBSTITUTE("Sales_Rep=" + [Sales_Rep]@row + "&Current_Career_Level=" + [Current_Career_Level]@row + "&Career_Level_Applying_For=" + [Career_Level_Applying_For]@row, " ", "%20")
Answers
-
You need an & before each field name after the first and it looks like anything being populated after the initial field isn't having the special characters (in this case the space) percent encoded. Try this:
="form_url?" + SUBSTITUTE("Sales_Rep=" + [Sales_Rep]@row + "&Current_Career_Level=" + [Current_Career_Level]@row + "&Career_Level_Applying_For=" + [Career_Level_Applying_For]@row, " ", "%20")
-
Perfect! It worked. Thank you so much for your help.
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.5K Get Help
- 448 Global Discussions
- 145 Industry Talk
- 481 Announcements
- 5.1K Ideas & Feature Requests
- 85 Brandfolder
- 152 Just for fun
- 73 Community Job Board
- 492 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 304 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!