F
foomonkey
I want to be able to close InfoPath after the form has been submitted.
It seems I need to implement an event handler for the OnSubmitRequest
event. I found this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/xdevtOnLoad.asp
This form is being submitted to a SharePoint site but I just want to
add a little script to close the form when it is done. The article
above and others seem to imply that if I override OnSubmitRequest, I am
responsible for all Submit logic. Is there a way to take advantage of
the built-in submit logic to Sharepoint and just add my code on the
end? Something like:
function XDocument::OnSubmitRequest(eventObj)
{
// do the built in save stuff here...
// then my code.
Application.ActiveWindow.Close(true);
}
Thanks.
Andrew
It seems I need to implement an event handler for the OnSubmitRequest
event. I found this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/xdevtOnLoad.asp
This form is being submitted to a SharePoint site but I just want to
add a little script to close the form when it is done. The article
above and others seem to imply that if I override OnSubmitRequest, I am
responsible for all Submit logic. Is there a way to take advantage of
the built-in submit logic to Sharepoint and just add my code on the
end? Something like:
function XDocument::OnSubmitRequest(eventObj)
{
// do the built in save stuff here...
// then my code.
Application.ActiveWindow.Close(true);
}
Thanks.
Andrew