I have a web form that worked fine in Notes 5.11, but now that we’ve upgraded to 6.5 it refuses to save the actual notes document when saved via the web. I have other actions that are going on when the form is edited and saved,and those are still working. Only the @Command([FileSave]) seems to be disregarded. I’ve searched the forum and tried their suggestions but so far nothing has helped. in my save button I have the following:
@Command([FileSave]);
@Command([FileCloseWindow]);
@Command([ToolsRunMacro]; “UpdateEntry”)
any help would be greatly appreciated.
Subject: Saving a Web Form
Basic save on web:@Command([FileSave]);
@Command([CloseWindow]);
However, depending on access levels, web users may not be able to run agents.
Have you tried running the agent from the WebQueryClose?
Subject: RE: Saving a Web Form
Web users are enabled to run the agent,and I can see the result of the agent (it updates an external database). I have not tried running it from the WebQueryClose, but when I take out the code to run the agent,and leave in only the FileSave and FileCloseWindow it still does not save the actual notes document.
thank you for you quick reply!
Subject: RE: Saving a Web Form
Are you doing any js validation from the onsubmit that would cause save to stop?
Subject: RE: Saving a Web Form
Yes, I am doing a ton of javascript and when it finds errors it should stop the save process. The messages aren’t popping up though, but I will try removing it and see what happens.
Subject: RE: Saving a Web Form
You were right, Lisa. The JS was preventing the form from submitting. I removed it and the form works perfect again. I will dig into Notes 6 javascript and see what’s changed. Thank you for your help.