RE: How do I stop a form save in the WebQuerrySave ? Mark Taylor 22.Sep.17 08:37 AM a Web browser Domino Web Access All ReleasesAll Platforms
The SaveOptions field should do what you need - from designer Help:
A WebQuerySave event runs the agent after field input validation formulas are run and before the document is actually saved to disk or mailed. The agent can modify the document or use the document data to perform other operations. The document is automatically saved after the agent runs. Do NOT have the agent explicitly save the document (for example, by calling NotesDocument.Save) because an explicit save could cause incorrect results.
A WebQuerySave agent can produce output to be sent back to the user. For example in a LotusScript agent, you can use the Print command to return raw HTML. If the agent produces output, then the form should not have a $$Return field because Domino will return only the agent output and ignore the field.
Examples for using this agent include:
Performing complex field validation. If the document does not pass validation, you can prevent Domino from saving the document by changing the value of the SaveOptions field to "0" on the form.