Integrate Validation
Learn how to bind and use the validation system when working with Form Controls and Umbraco CMS backoffice.
Validation Context
Validators
Form Control Validator
#validation = new UmbValidationContext(this);
#validate = () => {
this.#validation.validate().then(() => {
console.log('Valid');
}, () => {
console.log('Invalid');
});
}
render() {
return html`
<uui-form-validation-message>
<uui-input
...
required
${umbBindToValidation(this)}
></uui-input>
</uui-form-validation-message>
<uui-button @click=${this.#validate}>Validate</uui-button>
`;
}Integrate Umb-Property Elements
Server Validation and more
Last updated
Was this helpful?