Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-14185

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

    XMLWordPrintable

Details

    Description

      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):

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              hariharan.parasuraman Hariharan Parasuraman
              NickBurch Nick Burch
              Daniel Kelemen Daniel Kelemen
              Tassilo Weidner Tassilo Weidner
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce