[Validation series] Trigger validation on static commands

Hi,

Yes, this would be really helpful, as currently I’m forced to go with “command:” binding on buttons that are only meant to validate fields and open other sections / modals of the page (they do not need to reach to the server).

1 Like

Sorry, this is outdated. As of 4.2, we have Validation in staticCommand | DotVVM Documentation. I updated the docs today, you are not crazy that you didn’t find it yesterday.

However, only server-side validation is currently implemented, so it isn’t going to help you if you don’t want to contact the server at all. You’ll need to implement the validation yourself, using dotvvm.validation.addErrors, see Client-side validation at Extensibility | DotVVM Documentation

1 Like