CardinalKit/builder

enableBehavior not added to JSON if set to "any"

Opened this issue · 0 comments

Description

If a question's enable when condition behavior is set to "At least one condition must be fulfilled", the enableBehavior property is not added to the resulting JSON. However, if it is set to "All conditions must be fulfilled" this property is added to the JSON.

Reproduction

  1. Create a new survey.
  2. Add three questions.
  3. Create enable when rules on the third question dependent on answers to both of the prior questions.
  4. Set the behavior to "At least one condition must be fulfilled".
  5. Check the resulting JSON for the "enableBehavior" property, which should appear and be set to "any".

Expected behavior

The enableBehavior property should appear and be set to "any".

Additional context

cc: @PSchmiedmayer

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines