I have a form with a “Submit” button with javascript code that validates fields. Here is the code:if(validate(frm.RequestorName) && validateSenator() && validate(frm.MailDate) && validateCreateLabel())
{
// _getEditAppletData();
frm.submit();
frm.close();
}
Then in the WebQuerySave event I call an agent, here is the code:
@Command([ToolsRunMacro]; “SendCWEmail”);
@Command([FileCloseWindow])
I also have a $$Return field on the form with the value:
“”
So, my problem is after I click on Submit, it triggers the email agent but it does not bring me back to the OpenOrders form, instead it leaves me on a white blank screen. So, my question is, how do I get back to the form that is named in the $$Return field. This works when I take out the code in WebQuerySave. But, I need to call the agent after it submits the document, so I need to keep the code in WebQuerySave. Any suggestions?