Disable button If...
If (
//validation of form input
, DisplayMode.Disabled // disable the submit button
, DisplayMode.Edit // else allow submit
)
If (
//validation of form input
, DisplayMode.Disabled // disable the submit button
, DisplayMode.Edit // else allow submit
)