I have a survey where if a user has (a) file(s) that contain existing geometry, they mark a select_one question "Yes" (the only option) and then are asked to attach the file(s) in a subsequent question (file_repeat). I have entered the following into the file_repeat question's required field, so the survey can't be submitted without adding an attachment: selected(${exist_geo},'yes').
In testing in Survey123 Connect, the survey displays as it should:
However, when filling out the survey on a browser after publishing in Survey123 Connect, after the user selects "Yes," the "Attachments" section does not toggle to "Required" and the user can submit the survey without attaching anything:
In the Excel spreadsheet, the "Field Type Information" for the required cell displays this data validation error:
I have tried:
Help!
Solved! Go to Solution.
Talked with Esri Tech Support and found that the issue is fixed if the appearance setting that I entered (minimal) is removed so the cell is empty. Not a huge deal for me to keep the question expanded. Just thought if anyone else was having this issue that I'd let people know of the solution!
Try
${exist_geo}='yes'
Unfortunately that gives the same behavior. Works in Survey123 Connect but not in the actual survey.
Sorry I do not know but the web forms do work differently.
I would try moving the check to the relevant column then using just yes in the required if that works for your workflow.
Thanks for your response. I've tried this but it doesn't work. 😞
Talked with Esri Tech Support and found that the issue is fixed if the appearance setting that I entered (minimal) is removed so the cell is empty. Not a huge deal for me to keep the question expanded. Just thought if anyone else was having this issue that I'd let people know of the solution!