Do you dijit.form.Form
widget as your form? If so, I suggest connecting to the Form
event onValidStateChange
. The docs for this event specifically indicate your use case:
onValidStateChange Defined by dijit.form._FormMixin Stub function to connect to if you want to do something (like disable/enable a submit button) when the valid state changes on the form as a whole. Deprecated. Will be removed in 2.0. Use watch("state", ...) instead.
The best way to see which events are available for a given widget is to look at the API Documentation for the widget that interests you in the "Event Summary" heading. The dojocampus reference documentation often does not contain examples of links to some of the more obscure widget features.
source share