I am trying to get a button to ammend field data and send a mail message only when the form is saved, but the button only has a click object so the mail sends before saving, is there another way of doing this ? thanks Dave
@Command([EditDocument]);
@Command([EditGotoField];"Require");@SetField("Require";@Today)
@IsDocBeingSaved;@SetField("Approved";@Name([CN];@UserName));"";@MailSend("Dave Wilson/";"";""; "Please erect scaffold on Work order --"+ WorkOrder;WorkOrder;"By the date required";[IncludeDoclink]);
@Command([EditDocument]);
@Command([EditGotoField];"Require");@SetField("Require";@Today)
@IsDocBeingSaved;@SetField("Approved";@Name([CN];@UserName));"";@MailSend("Dave Wilson/";"";""; "Please erect scaffold on Work order --"+ WorkOrder;WorkOrder;"By the date required";[IncludeDoclink]);