Select to view content in your preferred language

Survey123 Error

63
2
Jump to solution
yesterday
Gabrielle_Byczek
Emerging Contributor

I am unable to open the survey via other applications

Why is this if, it public and in my name as the owner?

Gabrielle_Byczek_0-1744653969733.pngGabrielle_Byczek_1-1744654013593.png

 

I am trying create  a pop up on a public facing map:

 

<div style="text-align:center;">
<span style="font-size:large;">Street Name:&nbsp; {NAME}</span>
</div>
<div style="text-align:center;">
&nbsp;
</div>
<div style="text-align:center;">
<a target="_blank" rel="noopener noreferrer" href="https://survey123.arcgis.com/share/6ba82fca211c4484af4c9b0faf8f9bc2? portalUrl=https://gis.memphistn.gov/portal&amp;field:Parent_GUID_text={GlobalID}&amp;field:From_Street={FROMST...}">ADOPT THIS STREET</a>
</div>

 

Survey that works:  

 

https://survey123.arcgis.com/share/6ba82fca211c4484af4c9b0faf8f9bc2?portalUrl=https://gis.memphistn....

0 Kudos
1 Solution

Accepted Solutions
TylerGraham2
Frequent Contributor

I notice the URL isn't going through an encoder.  You probably need to use Concatenate and UrlEncode to get it to work. I've attached an example of how I use those functions to create 3 different properly encoded links in a pop up to create a new survey, update a draft, and edit an existing survey in Survey123.  

Here's a link to the arcade function reference, just search for UrlEncode and Concatenate to get more info on their function.  Just note that in my arcade script below there's a note about q:where needing to be formatted a certain way because the encoder doesn't output the properly formatted parameter. You may or may not experience that issue with your field: parameters. Just a heads up. 

View solution in original post

0 Kudos
2 Replies
TylerGraham2
Frequent Contributor

I notice the URL isn't going through an encoder.  You probably need to use Concatenate and UrlEncode to get it to work. I've attached an example of how I use those functions to create 3 different properly encoded links in a pop up to create a new survey, update a draft, and edit an existing survey in Survey123.  

Here's a link to the arcade function reference, just search for UrlEncode and Concatenate to get more info on their function.  Just note that in my arcade script below there's a note about q:where needing to be formatted a certain way because the encoder doesn't output the properly formatted parameter. You may or may not experience that issue with your field: parameters. Just a heads up. 

0 Kudos
Gabrielle_Byczek
Emerging Contributor

Thank you so much! I got it to work by removing the ? question mark and readding it again! I will definiely save this information!

0 Kudos