Details
-
Bug Report
-
Resolution: Fixed
-
L3 - Default
-
7.16.0-alpha4
-
None
Description
This Issue tracks the form-js issue 169
Environment (Required on creation):
- Any tasklist environment
- https://codesandbox.io/s/thirsty-dream-vh43x?file=/src/schema.json:0-860
Description
When running the example form, saving or submitting empty variables in select or number fields does not work if they are pre-filled
For submit, if
- a field is pre-filled with a process variable
- I clear the field value
- I click "Submit"
- Check the process in Cockpit
The process variable still has the value from before.
For save, if
- a field is pre-filled with a non-empty value (e.g. because it is backed by a process variable)
- I clear the field value
- I click "Save"
- I reload the form
The field value is no longer empty, but contains the default value again.
Expected behavior (Required on creation):
- I can submit empty values.
- empty values are saved and correctly applied again after reload.