Skip to content
Discussion options

You must be logged in to vote

Hi Ben,

Thanks for bringing this up – here’s a demo:
https://stackblitz.com/edit/github-ys6hcrvh?file=builder.config.js

A bit of background on how this currently works:

By default, the builder does not validate config fields internally. Validation is expected to happen externally in the @save event. For example, imagine the builder loads with a required form-level setting already empty. If the user never interacts with that field, there would otherwise be no indication that it needs to be filled in. Because of this, the intended flow is to validate the received data inside your @save handler before persisting it.

This is also why there’s currently no first-class API for adding validation …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Ben-Gallienne
Comment options

Answer selected by Ben-Gallienne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants