Select to view content in your preferred language

URL parameter does not work with a particular survey

511
3
09-03-2024 01:37 PM
KerryKang
Frequent Contributor

Hello, 

I've posted this issue a few weeks ago, and still could not find a solution. The issue was that the Field Maps and Survey123 link that I built a couple of years ago suddenly started not working.

Betreff: Opening Survey123 form in Field Maps (cre... - Esri Community

  • Original Field Maps: saved as Classic Map Viewer
  • Original URL Parameter set up in the Map: Expression
  • Original urvey123: Version 3.12

and this is what I tried before while posting the first post ==> 

  • Updated Field Maps: saved as New Map Viewer
  • Published new survey from the original using Version V 3.19 (updated the form using the Survey123 tool)
  • Created URL parameter using Arcade with URL encode.

 

==> This is what I tried recently and I think I could isolate the issue 😨

Case 1. 

URL parameter with the problematic survey (published newly using the original XSL) with field value (passing it from the feature in Field Maps to Survey123 question)

URL: arcgis-survey123://?itemID=ABC&field%3AStructure_Name=1ST%20AVE%20RAMP%20WB%20%231%20WALL&callback=https%3A%2F%2Ffieldmaps.arcgis.app%2F%3F

==> NOT WORKING ==> The survey KEPT LOADING/NO RESPONSE

Ref:

o ABC: Survey Item ID that has an issue
o Structure_Name: Field name in the survey
o 1ST%20AVE%20RAMP%20WB%20%231%20WALL: Variable picked up from the feature in Field Maps

 

Case 2. 

URL parameter with the problematic survey (published newly using the original XSL) with callback only

URL: arcgis-survey123://?itemID=ABC&callback=https%3A%2F%2Ffieldmaps.arcgis.app%2F%3F

==> WORKING ==> The survey opens with no issue

Ref:

o ABC: Survey Item ID that has an issue

 

Case 3

URL parameter with another survey, using field value (passing it from the feature in Field Maps to Survey123 question

==> LOADED THE SURVEY SUCCESSFULLY WITH THE VARIABLE IN THE ASSESSOR QUESTION IN THE SURVEY FORM

URL: arcgis-survey123://?itemID=EFG&field%3A Assessor =1ST%20AVE%20RAMP%20WB%20%231%20WALL&callback=https%3A%2F%2Ffieldmaps.arcgis.app%2F%3F


o EFG: Another survey Item ID used for the test
o Assessor: Field name in the survey EFG
o 1ST%20AVE%20RAMP%20WB%20%231%20WALL: Variable picked up from the feature in Field Maps

 

so based on my observation, this specific survey (built from the certain XLS form) does not responding once it includes 'fields' parameters, as the exact URL with different item ID and field name worked.

 

I've contacted my local Esri Support but open to hear more suggestions and advice where else I can look into.

 

Thank you.

 

 

Kerry

0 Kudos
3 Replies
DougBrowning
MVP Esteemed Contributor

Do you have nested repeats or using position?  This happened to me https://community.esri.com/t5/arcgis-survey123-questions/latest-updates-cause-forms-with-nested-repe... 

I am not sure its your URL, could something with the form.  I have never once had to encode a URL.  I tend to use static URLs and not use Arcade except for fields to pass.

Not sure this is it but thought I would post just in case.

KerryKang
Frequent Contributor

Hello Doug, 

Thank you for your comments. My form with the issue has a repeat component while the other one that does not have issue does not. I will do further testing if this is the case.

 

Kerry

0 Kudos
DougBrowning
MVP Esteemed Contributor

Ok they say to change to integer but that did not work for me.  So you have position() in there?  If so in Connect let the form open for a bit and see if you get this in the top corner.  Note you must have the latest 123 to see this.

DougBrowning_0-1725471234059.png

For me I had to go back to the old school way.  Have a field with just a calc of 1 then use once(count(field)) instead.

0 Kudos