Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation for fields within AddressNL component #4420

Comments

@LaurensBurger
Copy link
Collaborator

LaurensBurger commented Jun 19, 2024

Thema / Theme

Form designer

Omschrijving / Description

to add to: #4418

Currently forms might be validating on the "city" and "postcode" fields. The AddressNL component does not seem to support validation on the fields within the component.

If this validation is lost these forms would have no way of using both the AddressNL component and BAG plugin.

@LaurensBurger LaurensBurger added triage Issue needs to be validated. Remove this label if the issue considered valid. enhancement labels Jun 19, 2024
@sergei-maertens
Copy link
Member

Which validations can you do now that you can't do in the AddressNL field?

@LaurensBurger
Copy link
Collaborator Author

Only allow form te be filled in by residents of "Sergei City". If i don't have authentication/prefill for a form i would apply validation to the city field to achieve this.
image

@sergei-maertens
Copy link
Member

Okay, so a regex validation on individual nested fields would suffice then, I presume? And of course being able to specify validation error messages.

@LaurensBurger
Copy link
Collaborator Author

Yes - that sounds sufficient

@joeribekker
Copy link
Contributor

Refinement: Allow regex on city and postal code.

@joeribekker joeribekker added owner: utrecht and removed triage Issue needs to be validated. Remove this label if the issue considered valid. labels Jun 24, 2024
stevenbal added a commit to open-formulieren/types that referenced this issue Jul 8, 2024
updated the addressNL componentschema to include components, where we define the validation for the fields under the addressNL component. It's defined under component to have a similar form as other formio components
stevenbal added a commit to open-formulieren/formio-builder that referenced this issue Jul 8, 2024
the following components can now be validated using regex:
* postcode
* house number
* street name
* city
stevenbal added a commit to open-formulieren/open-forms-sdk that referenced this issue Jul 9, 2024
stevenbal added a commit to open-formulieren/open-forms-sdk that referenced this issue Jul 9, 2024
stevenbal added a commit to open-formulieren/open-forms-sdk that referenced this issue Jul 9, 2024
stevenbal added a commit to open-formulieren/open-forms-sdk that referenced this issue Jul 9, 2024
stevenbal added a commit to open-formulieren/formio-builder that referenced this issue Jul 9, 2024
the following components can now be validated using regex:
* postcode
* city
stevenbal added a commit to open-formulieren/types that referenced this issue Jul 9, 2024
updated the addressNL componentschema to include components, where we define the validation for the fields under the addressNL component. It's defined under component to have a similar form as other formio components
stevenbal added a commit to open-formulieren/types that referenced this issue Jul 9, 2024
updated the addressNL componentschema to include components, where we define the validation for the fields under the addressNL component. It's defined under component to have a similar form as other formio components
stevenbal added a commit to open-formulieren/open-forms-sdk that referenced this issue Jul 29, 2024
stevenbal added a commit to open-formulieren/formio-builder that referenced this issue Aug 20, 2024
stevenbal added a commit to open-formulieren/formio-builder that referenced this issue Aug 20, 2024
* use prefix for AddressNL SubcomponentValidation and useManageValidatorsTranslations
* remove unnecessary waitFor blocks in AddressNL stories
* add aria-label to datamap
stevenbal added a commit to open-formulieren/formio-builder that referenced this issue Aug 20, 2024
stevenbal added a commit to open-formulieren/formio-builder that referenced this issue Aug 20, 2024
sergei-maertens pushed a commit to open-formulieren/formio-builder that referenced this issue Aug 20, 2024
the following components can now be validated using regex:
* postcode
* city
sergei-maertens pushed a commit to open-formulieren/formio-builder that referenced this issue Aug 20, 2024
sergei-maertens pushed a commit to open-formulieren/formio-builder that referenced this issue Aug 20, 2024
* use prefix for AddressNL SubcomponentValidation and useManageValidatorsTranslations
* remove unnecessary waitFor blocks in AddressNL stories
* add aria-label to datamap
sergei-maertens pushed a commit to open-formulieren/formio-builder that referenced this issue Aug 20, 2024
sergei-maertens pushed a commit to open-formulieren/formio-builder that referenced this issue Aug 20, 2024
the following components can now be validated using regex:
* postcode
* city
sergei-maertens pushed a commit to open-formulieren/formio-builder that referenced this issue Aug 20, 2024
sergei-maertens pushed a commit to open-formulieren/formio-builder that referenced this issue Aug 20, 2024
* use prefix for AddressNL SubcomponentValidation and useManageValidatorsTranslations
* remove unnecessary waitFor blocks in AddressNL stories
* add aria-label to datamap
sergei-maertens pushed a commit to open-formulieren/formio-builder that referenced this issue Aug 20, 2024
sergei-maertens pushed a commit that referenced this issue Aug 20, 2024
implemented optional custom regex validation on the AddressNL postcode and city fields. Previously this was possible before the AddressNL field existed as well
sergei-maertens added a commit that referenced this issue Aug 20, 2024
…-validation

✨ [#4420] Backend validation for AddressNL components
stevenbal added a commit to open-formulieren/open-forms-sdk that referenced this issue Aug 26, 2024
stevenbal added a commit to open-formulieren/open-forms-sdk that referenced this issue Sep 16, 2024
stevenbal added a commit to open-formulieren/open-forms-sdk that referenced this issue Sep 16, 2024
stevenbal added a commit to open-formulieren/open-forms-sdk that referenced this issue Sep 16, 2024
stevenbal added a commit to open-formulieren/open-forms-sdk that referenced this issue Sep 16, 2024
stevenbal added a commit to open-formulieren/open-forms-sdk that referenced this issue Sep 16, 2024
sergei-maertens pushed a commit to open-formulieren/open-forms-sdk that referenced this issue Oct 8, 2024
sergei-maertens pushed a commit to open-formulieren/open-forms-sdk that referenced this issue Oct 8, 2024
sergei-maertens added a commit to open-formulieren/open-forms-sdk that referenced this issue Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment