Form with readonly boolean field cannot be submitted - validation of readonly failed

XMLWordPrintable

      Environment:

      Camunda 7.16 with Spring Boot Starter

      Description:

      I think this might be a fairly similar issue to CAM-13803. If we have a form with a boolean field, and on a subsequent form (eg a review-type form) have the same field as boolean with a readonly constraint, you cannot submit the form. On submit of the form with the readonly boolean, you'll get a validation error:

        An error happened while submitting the task form : Cannot submit task form [id]: Invalid value submitted for form field '[field]': validation of readonly failed.

      Steps to reproduce (Required on creation):

      2-step sample BPMN file attached, prompts for various form field types on the first user step, shows them readonly on the second, submission of the second fails with the validation error as shown:

      Observed Behavior:

      Readonly form field validation incorrectly triggers for readonly boolean field

      Expected behavior:

      Form can be submitted without error

      Root Cause (Required on prioritization):

      Solution Ideas (Optional):

      Hints (optional):

            Assignee:
            Hariharan Parasuraman
            Reporter:
            Nick Burch
            Daniel Kelemen Daniel Kelemen
            Tassilo Weidner-Mühl Tassilo Weidner-Mühl
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: