This is the solution to recirect the Infopath webpart to custom URl, after submit the form.
Step1: Create a page and add Infopath Webpart.
Step2: Refer the Infopath Form in Infopath Webpart.
Step3: Add a content Editor Webpart to the Infopath webpart page and add below code.
script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js" type="text/javascript"
/script
script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js" type="text/javascript"
/script
script src="http://ajax.googleapis.com/ajax/libs/scriptaculous/1.8.3/scriptaculous.js" type="text/javascript"
/script
script type="text/javascript"
( function($)
{
$(document).ready(
function()
{
if($('#DialogFinalMessage').children().length>0)
{
window.location.href = "custom url";
}
}
);
} ) ( jQuery );
/script
Is this ajax with javascript?
ReplyDeleteIt's a JQuery added in the content editor web part.
ReplyDelete