I have a map in collector (19.0.1) that I have linked with Survey 123. Once the survey is completed, the field crew update an attribute to change the symbol of the point so that they do not resurvey the same point. However, mistakes do happen (they click on a plot that they have already updated to 'Y') and as I want to make this as foolproof as I can, I would like to use an arcade expression so that the survey link only appears if the attribute in the feature service is 'N'. I used the following expression and it works within the browser of AGOL but not in the new collector application. What step am I missing? I have substituted our survey code for the word CODE as per our organization's requirements.
var Complete = $feature.Completed
var Surveylink = "arcgis-survey123://?itemID=CODE&field:Plot_Num={Plot_Num}&field:Block_Name={Block_Name}&field:FMU={FMU}&field:Year_Harv={Year_Harv}&field:Area={Area}¢er={POINT_Y},{POINT_X}"
var noSurvey = ""
iif(Complete=='Y',noSurvey,Surveylink)
In the popup then I have the following: ><a href="{expression/expr0}" target="_blank">Survey Link</a>:
We generally only use Collector and Survey123 offline. Could that be the issue?