Passing value from main form to url

940
1
07-03-2019 02:59 PM
OussamaMerhi
New Contributor II

 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}

Find attached the excel sheet

Tags (1)
0 Kudos
1 Reply
EmmaDuncan1
New Contributor

Oussama Merhi‌ I have done this recently (with the help of a fantastic blog https://community.esri.com/groups/survey123/blog/2018/06/08/html-links-for-survey123-to-just-about-a...)

I did it in a two step process as suggested in the blog, first create the URL, then create the http hyperlink

concat("arcgis-survey123://?itemID=ec998f5e1d984bc5bb139c6e85040e7f&field:province=",${Province})

concat('<a href="',${Survey123URL},'">237 Daily Report</a>')

Once tested and working I made the first field type hidden

You can parse more than one parameter quite easily with this method, for example

concat("arcgis-survey123://?itemID=ec998f5e1d984bc5bb139c6e85040e7f&field:province=",${Province},"&field:village=",${Village})

0 Kudos