open-formulieren / open-forms

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

AddressNL validation on city & postcode issues #4699

Open LaurensBurger opened 1 month ago

LaurensBurger commented 1 month ago

Product versie / Product version

2.8.0

Customer reference

No response

Omschrijf het probleem / Describe the bug

The custom error mesaage is not displayed image image image

The position of the postcode error is "wrong" image

Validation triggers on "change" so any interaction with the component image

Validation of City / Postcode only occurs on submit (back-end), which seems odd compared to any other component in OF.

Validation of City / Postcode does not scroll/focus the browser to the component - but the "required" validation does.

sergei-maertens commented 1 month ago

Note: the SDK hasn't been updated yet, only the backend aspect has been "finished" so far (there's a notice in the changelog for this).

joeribekker commented 1 month ago

Refinement: Circling back next week to see if SDK solves things.

joeribekker commented 1 week ago

@LaurensBurger an you retest this on our test environment again?

LaurensBurger commented 1 week ago

2.8.1 Validation triggers after first interaction with any of the fields

With validation (regex) set the whole component will "trigger" after loading. This keeps happening even when removing the validation Only completely removing the component and using a new one will solve this validation trigger.

The component does not show when it's made visible with simpel logic. It does hide with the same logic reversed. Uncaught TypeError: Cannot read properties of undefined (reading 'render') Target container is not a DOM element.

cannot continue a form when addressNL is not filled in, even when not required: image

joeribekker commented 5 days ago

We know this component needs more work. We're not picking this up now explicitely but in a larger adressnl ticket #4431