-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
7.13.4, 7.12.10, 7.11.17, 7.14.0-alpha3
-
None
Steps to reproduce
Submit an embedded start form that prevents the submission of the form.
Expected behavior
The form is not submitted, no error message is shown
Observed behavior
The form is not submitted and an error message is shown
Reasoning
- A prevented submission of a form is not an error
- The developer should be able to decide whether an error is shown or not
Root cause
- The sdk-js throws an error when the submit is prevented [1]
- The Tasklist start process modal shows this error notification [2]
Solutions
- Skip error notification when submission is prevented
- Don't throw an error on preventing the form submission
[1] https://github.com/camunda/camunda-bpm-webapp/blob/master/camunda-bpm-sdk-js/lib/forms/camunda-form.js#L472-L476
[2] https://github.com/camunda/camunda-bpm-webapp/blob/bbfb11d0cd5a33c070eb2631aa11dbd955b1768b/ui/tasklist/client/scripts/process/plugins/action/modals/cam-tasklist-process-start-modal.js#L273-L276
This is the controller panel for Smart Panels app
- is related to
-
CAM-7550 Prevented Submissions for Embedded Forms produces non-configurable error
- Closed