Select to view content in your preferred language

Clearing a cascading Select not working in Edit mode

105
3
4 weeks ago
Trippetoe
Frequent Contributor

Hello.

I have a survey that has a standard cascading select so that selecting a value in Question 1 (let's say "State" is the question) impacts the possible options in Question 2 ( and "State capital" is the question).

When a survey response is first created, I am seeing the expected behavior when selecting and clearing the value in Question 1. For example, if I've selected, say "Oregon", in Question 1, and then "Salem" is selected in Question 2. If i then clear "Oregon" from Question 1 answer, "Salem" is cleared from Question 2.

However, if the survey has already been submitted and the user is coming back to edit their responses, the expected 'auto-clearing' of Question 2 does not happen when Question 1 is cleared. And worse, when selecting a new value in Question 1, the value in Question 2 does not update. So, its possible to have the value "Alabama" in Question 1 and "Salem" in Question 2.

This seems like a bug to me. Has anyone else seen this behavior?

I am using Survey123 Connect 3.19.116 and viewing the survey in Survey123 Android 3.19.121

Thank you

0 Kudos
3 Replies
DougBrowning
MVP Esteemed Contributor

When coming back from a draft or sent often calculations do not refire when changes are made. I get this in my forms a lot.  You could try using relevant on them and those do seem to refire usually.  This way when they clear Q1 the rest will revert back to not showing and get a blank value.

Trippetoe
Frequent Contributor

Thanks for your suggested workaround. I'll give it a try. There's already a complicated relevant statement on the field. Might as well add some additional complexity 😉 

I've filed a bug report with Esri about this behavior, and i'm working with the Esri technician to identify what's going on. I'll let you know what i learn about this.

0 Kudos
Trippetoe
Frequent Contributor

It's looking like this is a bug. Interestingly, if you use the "Inbox" to open the survey, the cascade works as expected - for example, clearing out Q1 clears out Q2. However, if you use the "Sent" folder, the cascade does not work as expected - clearing out Q1 has no effect on Q2. In fact, I can't change the value of Q2 at all.

0 Kudos