Hello. I have a refuse cart survey developed using Survey123 Connect and ArcGIS for Enterprise. I have an initial select_one question with three possible answers - order new carts, order second carts, or order replacement carts. Each answer, when chosen, opens a set of questions relevant to that choice. We are wondering if we switch choices mid-stream, e.g., I (accidentally) selected new carts, then realize I should have chosen second carts, can the responses populating the original (new cart) questions be cleared or deleted automatically when I switch my initial choice (second carts)? We don't want to submit/save data into the service for carts we don't want to distribute, causing confusion. I hope this makes sense. Thanks in advance, Jay
Solved! Go to Solution.
Hi Jay!
I recommend looking over this blog post, specifically the "Dynamically hiding questions using body::esri:visible and relevant" section. I think relevant is what you want here, if I'm understanding correctly.
"The relevant column, like body::esri:visible, controls the visibility of a question, but it also clears the value in the question when the expression evaluates to false."
Hi Jay!
I recommend looking over this blog post, specifically the "Dynamically hiding questions using body::esri:visible and relevant" section. I think relevant is what you want here, if I'm understanding correctly.
"The relevant column, like body::esri:visible, controls the visibility of a question, but it also clears the value in the question when the expression evaluates to false."
Hi Katherine,
Excellent, let me look this over, but it sounds like what I am after.
Many thanks, Jay
Hi Katherine,
The relevance option worked! I had relevance on the questions already, but when we were working in the form - before submitting - the answers persisted regardless of which initial choice we made. Once submitted, the relevance evaluated to false on the questions that were no longer relevant, clearing the responses and not saving them in the service. Thank you again for your help.