Stream: questionnaire
Topic: enableWhen using a disabled question
Paul Lynch (Jul 27 2020 at 22:51):
If an item A has enableWhen, and enableWhen.question points to another item B that happens to be disabled, what should be be the effect on item A's enableWhen? We're thinking that it should act as if item B's question has no answer (even item B did have an answer before it got disabled).
Lloyd McKenzie (Jul 28 2020 at 05:54):
That sounds reasonable - do you want to submit a tracker for us to clarify?
Paul Lynch (Jul 28 2020 at 14:15):
Drew Mitchell (Jul 28 2020 at 22:03):
Something else to consider: what if item B had an initial value set? Should item B, while disabled, be treated as having that initial value or no answer?
Paul Lynch (Jul 28 2020 at 22:26):
If you submit a form, a disabled field should not be sent with an initial value, so for consistency, I would think the enableWhen should also not see the initial value of a disabled field.
Yunwei Wang (Jul 30 2020 at 15:13):
Agree
Last updated: Apr 12 2022 at 19:14 UTC