Relevant calculation causes the selected cascade choice to disappear for the first repeat after filling in information within a second repeat.
Describe the bug Relevant calculation causes the selected cascade choice to disappear for the first repeat after filling in information within a second repeat.
To Reproduce
- Create survey with this xls form: test.xlsx
- Select mon or tue;
- Test1 quesiton appeared;
- Select a dropdown value, i.e. "maybe";
- Create a new repeat;
- Select mon or tue in the second repeat, observe that "maybe" is cleared in test1 in the first repeat;
Screenshots

Thanks. Looks like a serious bug!
http://localhost:8005/?xform=00_test_bugs.xml
- [x] check removing calculation - issue does not occur so likely not caused by relevant
- [x] check removing relevant - haha, also does not occur, so it's some kind of interaction between calc and relevant
I cannot think of any use case where it makes sense to have a calculation on an autocomplete widget, so I am inclined to not spend time on this.
Looks like expected behavior to me. The calculation is re-run and evaluates to '' because neither none nor other is selected. I think this is similar to https://github.com/enketo/enketo-core/issues/880#issuecomment-1101038570. If you'd like a dynamic default you can use something like https://docs.getodk.org/form-logic/#dynamic-defaults-from-form-data. Calculations may be re-evaluated at any time.