Passing value from the main form to the url

64
1
07-03-2019 02:55 PM
OussamaMerhi
New Contributor II

I am trying to pass a parameter form  the main form to another form as link. it works well when you set a value

concat('<a href="arcgis-survey123://?itemID=ec998f5e1d984bc5bb139c6e85040e7f&field:province=Basrah">237 Daily

Report</a>')

Now I want to replace Basrah with the value entered in the main form

concat('<a href="arcgis-survey123://?itemID=ec998f5e1d984bc5bb139c6e85040e7f&field:province={Province}">237 Daily Report</a>')

The proble it fills in province a text {Province} without getting the value in {Province}

Tags (1)
Reply
0 Kudos
1 Reply
Jim-Moore
Esri Regular Contributor

Hi Oussama

You're almost there! Please try something like this (note the commas and single quotes):

concat('<a href="arcgis-survey123://?itemID=ec998f5e1d984bc5bb139c6e85040e7f&field:province=',${Province},'">237 Daily Report</a>')

With concat() the values to concatenate must be separated by commas. The concat() function is described here: https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm

Also to reference another question in a calculation, use the ${question_name} syntax.

Hope this helps, please let me know how it goes.

Best regards,

Jim

Reply
0 Kudos