structor icon indicating copy to clipboard operation
structor copied to clipboard

Warning when performing an action which will break enableWhen logic

Open mgunnerud opened this issue 4 years ago • 0 comments

When performing an action which will break the enableWhen behavior of a form, the user should be warned and guided to the enableWhens which broke as a result. The following "destructive" actions should be handled:

  • Deleting an item which is the "question" condition for enableWhen.
  • Moving an item which is the "question" condition for enableWhen down in the questionnaire hierarchy so the enableWhen dependent on the moved item is shown above the moved item in questionnaire.
  • Changing the type of an item which will invalidate the answer[x] property of enableWhen.

mgunnerud avatar Jan 22 '21 15:01 mgunnerud