When conditions fit the criteria my QuerySave is prompting twice and then I get a prompt to save.Without condition violation it saves fine. What’s wrong with my code or design?
Action button to save-
FIELD SendTo:= NODFrom;
FIELD Orig:=Orig;
FIELD SaveOptions:= “1”;
@SetField(“NODTo”;Orig);
@SetField(“NODFrom”;@UserName);
@Command([MailSend]);
@PostedCommand([FileSave]);
@PostedCommand([FileCloseWindow])
My QuerySave -
Sub Querysave(Source As Notesuidocument, Continue As Variant)
If ( source.FieldGetText( "Disp_rad" ) <>"") And ( source.FieldGetText( "Signature1" ) = "") Then
Messagebox( "You must sign this document before returning.")
continue = False
End If
End Sub
Thanks in advance.