You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Answers /data/fil, entering "b" (causing "option a" to be removed from /data/sel's available items)
Then the form state is updated so that the prior selection of "option a" is:
Cleared from /data/sel
Retained in memory until1 another selection is performed with the filtered options for /data/sel
At this point, the form's instance state is correct, but it allows either:
Next (A), if a user...
Answers /data/sel again, selecting "option b"
Then the form state is updated so that:
/data/sel is set to "option b"
The previous selection of "option a" will1 no longer be retained
Clears /data/fil (restoring "option a" as an available option for /data/sel)
Then the form state for /data/sel is unchanged from step 3
... OR ...
Next (B), if a user...
Clears /data/fil (restoring "option a" as an available option for /data/sel) without any further user action on /data/sel following step 1's affirmative selection of "option a"
Then the form state is restored to its state after step 1 (i.e. the value of /data/sel is again set to "option a")
Alternative behavior
Per the discussion thread, the alternative would be not to retain any memory that "option a" had been chosen (step 1), once that option is filtered out (step 2). Also per the discussion thread, this is the behavior in JavaRosa. Furthermore, it would be fair to say it is the obvious default behavior. It is unquestionably the behavior we'd implement if we skip asking the question posed by this issue.
Footnotes
This aspect is currently unhandled, but will be handled the same way regardless of the broader answer to the question posed by this issue. ↩↩2
The text was updated successfully, but these errors were encountered:
Breaking out an issue to track this discussion thread on #14.
Current (albeit incomplete) behavior
The intent of the behavior in #14 (which is incomplete, as called out in the comment) is this:
Given a form like:
If a user...
/data/sel
, selecting "option a"/data/fil
, entering "b" (causing "option a" to be removed from/data/sel
's available items)Then the form state is updated so that the prior selection of "option a" is:
/data/sel
/data/sel
At this point, the form's instance state is correct, but it allows either:
Next (A), if a user...
Answers
/data/sel
again, selecting "option b"Then the form state is updated so that:
/data/sel
is set to "option b"Clears
/data/fil
(restoring "option a" as an available option for/data/sel
)Then the form state for
/data/sel
is unchanged from step 3... OR ...
Next (B), if a user...
Clears
/data/fil
(restoring "option a" as an available option for/data/sel
) without any further user action on/data/sel
following step 1's affirmative selection of "option a"Then the form state is restored to its state after step 1 (i.e. the value of
/data/sel
is again set to "option a")Alternative behavior
Per the discussion thread, the alternative would be not to retain any memory that "option a" had been chosen (step 1), once that option is filtered out (step 2). Also per the discussion thread, this is the behavior in JavaRosa. Furthermore, it would be fair to say it is the obvious default behavior. It is unquestionably the behavior we'd implement if we skip asking the question posed by this issue.
Footnotes
This aspect is currently unhandled, but will be handled the same way regardless of the broader answer to the question posed by this issue. ↩ ↩2
The text was updated successfully, but these errors were encountered: