form-js icon indicating copy to clipboard operation
form-js copied to clipboard

Eagerly validate form input

Open nikku opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe

A form can be fed with input, and that input may be broken. Unfortunately we don't eagerly validate such broken input, i.e. aaa for a field that requires C-\d+ pattern validation.

The result is that a user MUST change the field or submit the entire form to learn about this error:

capture TcbhKl_optimized

Describe the solution you'd like

  • [ ] We should treat invalid external input same as user input and eagerly validate the form.

Describe alternatives you've considered

None.

Additional context

Suggested by @christian-konrad here.

nikku avatar Sep 02 '22 10:09 nikku

I have been going through the Form implementation. Is this one open for contribution?

griimick avatar Oct 05 '22 13:10 griimick

This and https://github.com/bpmn-io/form-js/issues/382 need to be considered together.

Skaiir avatar Nov 22 '22 06:11 Skaiir