Hi everyone!
I’m encountering a strange issue where calculations and notes do not update when I change values of their dependent question. (Survey is deployed and using Enketo).
- Question (D01) is a range question (min=1000000, max=5000000, step=500000.
- Question (D05) is a range question with skip logic where the max value is depending indirectly on the value of D01. Basically I have created 9 versions of D05 (D05_01 - D05_09) where D05_01 just shows up if in D01 the first value on the slider is chosen, D05_02 when the second value is chosen and so on. This is necessary because depending on the chosen value in D01, the max value of D05_0? needs to change (range can*t change dynamically). Works like a charm.
BUT: the associated notes (and calculations) do not disappear when I change the value on D01. Basically the old information is still shown and in the wrong position of the survey. I tried the solution with the “bind::odk:clear-on-hide” column (true), I tried to wrap the calculation with a “if(${D05_01} != ‘’, round(${remaining} div ${D05_01}, 0), ‘’)”. Nothing works. I need to use the notes as information for the participant or as headers to depict the calculated values (amount of EUR, #of projects)
I tried to attach the .xls and the screenshots in hope to make the problem clearer, but I get the error: Sorry, new users can not upload attachments. LOL. Not sure how to explain the problem without it. Is there anyway around this constraint?
Thanks in advance for your help!