Input Validation - how to stop Save & Close action when verification done in QuerySave?
Posted on 2006-07-17
I was doing my field verification under each field - and had a Save & Close action with the following formula:
Now I have moved my field verification to Lotus Script in the QuerySave of the form ( so it is all in the one area and it is now conditional on other fields ).
BUT ;) now when I choose Save & Close the QuerySave runs -- telling me what fields I am missing and the document is closed by the action - not allowing the user to fill in these required fields.
Here is the validation in Lotus Script QuerySave event:
Elseif doc.LeWrapUp(0) = "" Then
Messagebox("Please enter WrapUp code." )
I could make seperate "Save" and "Close" buttons - but surely there is a better way?? How can I stop the action if the LS requirements are not met? Thanks for your help,