<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: using OnAfterSubmit element</title><link>https://www.infopathdev.com:443/forums/thread/9149.aspx</link><pubDate>Mon, 19 Jun 2006 20:37:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9149</guid><dc:creator>.mond</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9149.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9149</wfw:commentRss><description>Hi,&lt;br /&gt;to edit the after submit functionality can you use JScript code or do you have to edit the xsf file?</description></item><item><title>Re: using OnAfterSubmit element</title><link>https://www.infopathdev.com:443/forums/thread/9148.aspx</link><pubDate>Fri, 24 Feb 2006 07:26:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9148</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9148.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9148</wfw:commentRss><description>Hi NewToInfoPath,&lt;br /&gt;Your last response includes a snipped of XSF text that is not JS code. It's part of the form template. I'm not sure what you are trying to do. Can you paste in the code for your OnAfterSubmit handler? We'll help you debug the if statement.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPath Dev Seattle</description></item><item><title>Re: using OnAfterSubmit element</title><link>https://www.infopathdev.com:443/forums/thread/9147.aspx</link><pubDate>Thu, 23 Feb 2006 22:57:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9147</guid><dc:creator>newtoinfopath</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9147.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9147</wfw:commentRss><description>Thanks for your response Matt.&lt;br /&gt;&lt;br /&gt;Well my problem is - how i can incorporate "onAfterSubmit" element into my IF statement. Apparently, the below example code from the help document, yeilds an error message. I need help to incorporate this into my js code.&lt;br /&gt;&amp;lt;xsf:submit&lt;br /&gt;   caption="Su&amp;amp;bmit"&lt;br /&gt;   disableMenuItem="no"&lt;br /&gt;   onAfterSubmit="KeepOpen"&lt;br /&gt;   showStatusDialog="yes"&amp;gt;&lt;br /&gt;&amp;lt;/xsf:submit&amp;gt;&lt;br /&gt;&lt;br /&gt;Has anybody used this?&lt;br /&gt;</description></item><item><title>Re: using OnAfterSubmit element</title><link>https://www.infopathdev.com:443/forums/thread/9146.aspx</link><pubDate>Wed, 22 Feb 2006 22:43:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9146</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9146.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9146</wfw:commentRss><description>Using information from this thread:&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://infopathdev.com/forums/topic.asp?TOPIC_ID=1668&gt;http://infopathdev.com/forums/topic.asp?TOPIC_ID=1668&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You can use different responses to perform different actions. You could word your confirmation like this:&lt;br /&gt;&lt;br /&gt;Press Yes to Submit the form and keep it open, press No to submit the form and open a new blank form, or press Cancel to cancel.&lt;br /&gt;&lt;br /&gt;The use the code from that thread with different if statemetns for different responses.  To achieve the Open a New Form Functionality, you could just import the template.xml or sampledata.xml back into the form and it should erase all data.  Anyway, you just need to clear all data that has been entered into the form so it appears as if a new form has been opened.&lt;br /&gt;&lt;br /&gt;I hope this makes sense!&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>using OnAfterSubmit element</title><link>https://www.infopathdev.com:443/forums/thread/5386.aspx</link><pubDate>Wed, 22 Feb 2006 16:40:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5386</guid><dc:creator>newtoinfopath</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5386.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5386</wfw:commentRss><description>I would like to give the user an option of choosing- if they want the form to be "kept open" or "open a new form" after submitting. Can somebody please help me with the code for the OnAfterSubmit- part of this?&lt;br /&gt;Appreciate any inputs...&lt;br /&gt;</description></item></channel></rss>