open-formulieren / open-forms

Smart and dynamic forms
https://open-forms.readthedocs.io
Other
36 stars 26 forks source link

Fields with (regex) validation should offer validation choice #4647

Open LaurensBurger opened 2 months ago

LaurensBurger commented 2 months ago

Thema / Theme

Form designer

Omschrijving / Description

As a form designer i want to change fields with validation to validate on blur instead of change. At the moment i need to change this in the json of the component (but i never want these fields to validate while the user is still busy entering data in these fields.)

Ideally i would like to see a choice in the validation tab which makes me aware of this option and allows me to set the validation moment, instead of editing the json.

image

joeribekker commented 1 month ago

Refinement: This sparks the discussion on check_logic (again) to trigger less but we all agree that adding onblur/onchange as a choice to the user it will make life more complicated and make things behave unexpected.

@LaurensBurger question: Can you find ANY example where a text-field is used to perform some logic? Because we can probably use onblur by default for text-fields only?

joeribekker commented 1 week ago

@LaurensBurger ping