InfoPath form - redirect to new page on submit

%3CLINGO-SUB%20id%3D%22lingo-sub-73311%22%20slang%3D%22en-US%22%3EInfoPath%20form%20-%20redirect%20to%20new%20page%20on%20submit%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-73311%22%20slang%3D%22en-US%22%3E%3CP%3EI%20thought%20this%20should%20be%20simple%2C%20but%20I'm%20having%20trouble%20finding%20a%20solution.%20I%20have%20a%20survey%20form%20that%20was%20customized%20in%20InfoPath%202013.%20The%20home%20page%20of%20my%20SharePoint%20site%20has%20a%20form%20web%20part%20that%20displays%20a%20blank%20customized%20form%20at%20all%20times.%20I%20created%20another%20page%20that%20I%20wanted%20users%20to%20see%20when%20they%20submit%20the%20form...%20I%20was%20hoping%20I%20could%20just%20embed%20a%20redirect%20script%20on%20the%20confirmation%20page%20that%20would%20bring%20up%20the%20survey%20page%20again%20a%20couple%20seconds%20after%20the%20confirmation%20page%20appears.%20I%20couldn't%20figure%20out%20a%20way%20to%20do%20that%20in%20InfoPath%2C%20so%20I%20enlisted%20the%20help%20of%20our%20SharePoint%20support%20team.%20Their%20solution%20was%20to%20create%20a%20new%20view%20of%20the%20form%20in%20InfoPath...%20so%20basically%20everything%20happens%20on%20the%20site%20home%20page.%20When%20users%20fill%20out%20the%20survey%20and%20submit%2C%20the%20%22submit%22%20form%20appears.%20There%20is%20a%20redirect%20script%20embedded%20on%20my%20home%20page%2C%20and%20every%2010%20seconds%20the%20page%20%22refreshes.%22%20The%20problem%20with%20that%20is%20that%20a%20user%20could%20be%20in%20the%20middle%20of%20filling%20out%20the%20survey%20(3%20quick%20questions)%20when%20the%20page%20redirects%2C%20and%20they%20have%20to%20start%20over.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20I've%20described%20the%20situation...%20if%20anyone%20knows%20of%20a%20solutions%2C%20please%20share.%20Nothing%20too%20complicated%20please%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-73311%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-105324%22%20slang%3D%22en-US%22%3ERe%3A%20InfoPath%20form%20-%20redirect%20to%20new%20page%20on%20submit%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-105324%22%20slang%3D%22en-US%22%3E%3CP%3EI%20ran%20into%20the%20same%20thing%20when%20trying%20to%20leverage%20the%20source%20parameter%20in%20the%20infopath%20form%20url.%20I%20found%20this%20article%20%3CA%20href%3D%22https%3A%2F%2Fsharepoint.stackexchange.com%2Fquestions%2F41291%2Fredirect-a-user-after-submitting-an-infopath-form%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsharepoint.stackexchange.com%2Fquestions%2F41291%2Fredirect-a-user-after-submitting-an-infopath-form%3C%2FA%3E%26nbsp%3Bthat%20recommends%20this%20script...%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CSPAN%20class%3D%22tag%22%3E%3CSCRIPT%3E%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%20%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22atn%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3Btype%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%3D%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22atv%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%22text%2Fjavascript%22%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22tag%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%0A%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22kwd%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3Bfunction%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%20%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22typ%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3BRedirectIfFormIsClosed%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B()%7B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%0A%20%20%20%20%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22kwd%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3Bvar%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pln%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%20elem%20%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%3D%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pln%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%20document%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B.%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pln%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3BgetElementById%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B(%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22str%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B'DialogFinalMessage'%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B)%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%0A%20%20%20%20%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22kwd%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3Bif%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%20%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B(%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pln%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3Belem%20%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B!%3D%3D%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%20%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22kwd%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3Bnull%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%20%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3B%26amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pln%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%20elem%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B.%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pln%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3Bchildren%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B.%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pln%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3Blength%20%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%20%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22lit%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B0%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B)%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%20%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%7B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pln%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%20%20%20%20%20%20%20%20window%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B.%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pln%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3Blocation%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B.%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pln%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3Bhref%20%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%3D%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%20%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22typ%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3BGetSource2%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B()%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%0A%20%20%20%20%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%7D%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%0A%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%7D%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%0A%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22typ%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3BExecuteOrDelayUntilScriptLoaded%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B(%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22typ%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3BRedirectIfFormIsClosed%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%2C%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%20%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22str%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%22inplview.js%22%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22pun%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B)%26amp%3Bamp%3Bamp%3Bamp%3Blt%3B%2FSPAN%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%0A%26amp%3Bamp%3Bamp%3Bamp%3Blt%3BSPAN%20class%3D%22tag%22%26amp%3Bamp%3Bamp%3Bamp%3Bgt%3B%3C%2FSCRIPT%3E%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3BSo%20basically%20then%20you%20can%20define%20the%20Thank%20You%20URL%20using%20source%3D%20and%20if%20you%20don't%20want%20to%20use%20source%20you%20simply%20replace%20the%20variable%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CSPAN%20class%3D%22typ%22%3EGetSource2%3C%2FSPAN%3E%3CSPAN%20class%3D%22pun%22%3E()%3C%2FSPAN%3E%3C%2FPRE%3E%3CP%3Ewith%20your%20Thank%20You%20URL.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENote%3A%20I%20ended%20up%20using%20a%20second%20view%20and%20didn't%20try%20the%20above.%20Maybe%20I%20will%20try%20it%20out%20now%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-73849%22%20slang%3D%22en-US%22%3ERe%3A%20InfoPath%20form%20-%20redirect%20to%20new%20page%20on%20submit%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-73849%22%20slang%3D%22en-US%22%3E%3CP%3EOk%2C%20so%20rather%20than%20an%20auto%20refresh%20then%2C%20you%20need%20an%20event%2C%20followed%20by%20a%20delay%20and%20then%20the%20action%20of%20refreshing%20the%20page.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20your%20SharePoint%20support%20team%20not%20create%20an%20onclick%20event%20using%20Javascript%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-73840%22%20slang%3D%22en-US%22%3ERe%3A%20InfoPath%20form%20-%20redirect%20to%20new%20page%20on%20submit%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-73840%22%20slang%3D%22en-US%22%3E%3CP%3EThat's%20correct%2C%20the%20submit%20view%20does%20nothing%2C%20it's%20basically%20a%20thank%20you%2Fconfirmation%20message.%20Client%20doesn't%20want%26nbsp%3Bthe%20user%20to%20have%20to%20click%20on%20anything%20to%20go%20back%20to%20the%20form%2C%20he%20wants%20it%20to%20be%20automatic.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-73839%22%20slang%3D%22en-US%22%3ERe%3A%20InfoPath%20form%20-%20redirect%20to%20new%20page%20on%20submit%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-73839%22%20slang%3D%22en-US%22%3E%3CP%3ENo%20worries%20Allison.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20in%20actual%20fact%20the%20submit%20view%20does%20nothing%3F%20Just%20has%20some%20information%20on%20it%3F%3CBR%20%2F%3E%3CBR%20%2F%3ERather%20than%20have%20auto%20refresh%20on%20the%20page%2C%20could%20you%20not%20add%20a%20link%20or%20button%20the%20user%20would%20need%20to%20click%20on%20which%20then%20refreshes%20the%20page%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-73838%22%20slang%3D%22en-US%22%3ERe%3A%20InfoPath%20form%20-%20redirect%20to%20new%20page%20on%20submit%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-73838%22%20slang%3D%22en-US%22%3E%3CP%3EWhat%20you've%20described%20is%20what%20we've%20already%20done.%20My%20apologies%2C%20I%20probably%20didn't%20explain%20very%20well.%20The%20home%20page%20of%20the%20SharePoint%20site%20is%20just%20a%20form%20web%20part%20showing%20the%20InfoPath%20form%20(edit%20view).%20When%20users%20clicks%20on%20the%20submit%20button%2C%20the%20submit%20view%20appears%20in%20the%20web%20part.%20The%20problem%20is%20getting%20it%20to%20automatically%20go%20back%20to%20the%20edit%20view%20after%20a%20few%20seconds.%20The%20developer%20placed%20a%20redirect%20script%20on%20the%20homepage...%20but%20what%20that%20does%20is%20refreshes%20the%20page%20every%2010%20seconds%20or%20so%2C%20and%20a%20user%20could%20be%20in%20the%20middle%20of%20filling%20out%20the%20survey%20when%20the%20screen%20refreshes.%20Plus%20it's%20annoying%20to%20see%20the%20screen%20blink%20every%2010%20seconds!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-73754%22%20slang%3D%22en-US%22%3ERe%3A%20InfoPath%20form%20-%20redirect%20to%20new%20page%20on%20submit%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-73754%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Allison%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJust%20want%20to%20clarify%20first....%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20have%20one%20form%20with%203%20questions.....on%20clicking%20submit....you%20want%20a%20secondary%20form%20to%20appear%20on%20screen%20(you%20mentioned%20a%20submit%20form)%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20this%20is%20correct%20-%20is%20there%20any%20issue%20with%20saving%20the%20details%20from%20both%20survey%20and%20submit%20forms%20in%20the%20same%20list%3F%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20not%2C%20why%20not%20just%20create%20another%20view%20in%20infopath%20called%20'submit'%2C%20add%20in%20your%20form%20fields%20for%20this%20form%20as%20required....%3CBR%20%2F%3EOn%20your%20survey%20form%2C%20on%20the%20submit%20button%20(on%20click)%20change%20the%20view%20to%20the%20submit%20view%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20have%20misunderstood%2C%20apologies.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

I thought this should be simple, but I'm having trouble finding a solution. I have a survey form that was customized in InfoPath 2013. The home page of my SharePoint site has a form web part that displays a blank customized form at all times. I created another page that I wanted users to see when they submit the form... I was hoping I could just embed a redirect script on the confirmation page that would bring up the survey page again a couple seconds after the confirmation page appears. I couldn't figure out a way to do that in InfoPath, so I enlisted the help of our SharePoint support team. Their solution was to create a new view of the form in InfoPath... so basically everything happens on the site home page. When users fill out the survey and submit, the "submit" form appears. There is a redirect script embedded on my home page, and every 10 seconds the page "refreshes." The problem with that is that a user could be in the middle of filling out the survey (3 quick questions) when the page redirects, and they have to start over.

 

I hope I've described the situation... if anyone knows of a solutions, please share. Nothing too complicated please :)

6 Replies

Hi Allison,

 

Just want to clarify first....

You have one form with 3 questions.....on clicking submit....you want a secondary form to appear on screen (you mentioned a submit form)?

 

If this is correct - is there any issue with saving the details from both survey and submit forms in the same list?

If not, why not just create another view in infopath called 'submit', add in your form fields for this form as required....
On your survey form, on the submit button (on click) change the view to the submit view?

 

If I have misunderstood, apologies.

What you've described is what we've already done. My apologies, I probably didn't explain very well. The home page of the SharePoint site is just a form web part showing the InfoPath form (edit view). When users clicks on the submit button, the submit view appears in the web part. The problem is getting it to automatically go back to the edit view after a few seconds. The developer placed a redirect script on the homepage... but what that does is refreshes the page every 10 seconds or so, and a user could be in the middle of filling out the survey when the screen refreshes. Plus it's annoying to see the screen blink every 10 seconds!

No worries Allison.

 

So, in actual fact the submit view does nothing? Just has some information on it?

Rather than have auto refresh on the page, could you not add a link or button the user would need to click on which then refreshes the page?

That's correct, the submit view does nothing, it's basically a thank you/confirmation message. Client doesn't want the user to have to click on anything to go back to the form, he wants it to be automatic.

Ok, so rather than an auto refresh then, you need an event, followed by a delay and then the action of refreshing the page.

 

Can your SharePoint support team not create an onclick event using Javascript?

I ran into the same thing when trying to leverage the source parameter in the infopath form url. I found this article https://sharepoint.stackexchange.com/questions/41291/redirect-a-user-after-submitting-an-infopath-fo... that recommends this script... 

<script type="text/javascript">
function RedirectIfFormIsClosed(){
    var elem = document.getElementById('DialogFinalMessage');
    if (elem !== null && elem.children.length > 0) {        window.location.href = GetSource2();
    }
}
ExecuteOrDelayUntilScriptLoaded(RedirectIfFormIsClosed, "inplview.js")
</script>

 So basically then you can define the Thank You URL using source= and if you don't want to use source you simply replace the variable 

GetSource2()

with your Thank You URL.

 

Note: I ended up using a second view and didn't try the above. Maybe I will try it out now :)