Skip to content

Conversation

@kchobantonov
Copy link
Contributor

@kchobantonov kchobantonov commented Jan 24, 2026

A new configuration option, filterErrorKeywordsBeforeTouch, allows selective suppression of validation errors before a control is touched, based on AJV error keywords.

This option exists because in most real-world forms, only certain errors—most commonly required—should be hidden prior to user interaction. Other validation errors (such as minLength, pattern, or format) often provide useful guidance and should remain visible immediately.

Instead of hiding all validation errors before interaction, you can now explicitly choose which error types are suppressed and which are shown.

This option is only applied when enableFilterErrorsBeforeTouch is enabled.
If enableFilterErrorsBeforeTouch is false, filterErrorKeywordsBeforeTouch has no effect and all validation errors are shown immediately.

If enableFilterErrorsBeforeTouch is true and filterErrorKeywordsBeforeTouch is not provided, the default behavior applies: no validation errors are shown before the control is touched.

Once the control is touched, all validation errors are always displayed, regardless of these settings.

@netlify
Copy link

netlify bot commented Jan 24, 2026

Deploy Preview for jsonforms-examples ready!

Name Link
🔨 Latest commit cfe7210
🔍 Latest deploy log https://app.netlify.com/projects/jsonforms-examples/deploys/6974edc787c7ce0008a0595e
😎 Deploy Preview https://deploy-preview-2540--jsonforms-examples.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kchobantonov
Copy link
Contributor Author

@sdirix @lucas-koehler please review this PR. In the demo app there is a new settings to provide the new config setting which by default is set to an array of one element which is - "required"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant