Hi Mark,
at the end of the FormGenerate routine;
p_web.jQuery('#' & clip(loc:formname) ,'ntform','"disableSave"')
then when the conditions are met (presumably in the server side code of one or more fields)
p_web.jQuery('#' & clip(loc:formname) ,'ntform','"enableSave"')
cheers
Bruce