Disable submit button when validation failed

Hello community,

is there a way to bind the property "disabled" of a form button to the validation? For example, I would like to disable the "Save" button when there is any fail in validation. Many thanks.

image

I don't want to rewrite the validation in the button's property.

regards,
hw

Hi @haidong,

This can be done with the TemplateForm like by setting the Disabled property of the button to ${!form0.valid} where form0 is the Name of the form:

it works like a charm :grinning: thanks