<?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: Disable Save Confirmation on Cancel</title><link>https://www.infopathdev.com:443/forums/thread/36363.aspx</link><pubDate>Tue, 30 Dec 2008 09:19:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36363</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36363.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36363</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Here is another way to do on Save,&lt;/p&gt;
&lt;p&gt;If we write OnSaveRequest in code we can avoid saving the form if user click on Cancel using below code,&lt;/p&gt;
&lt;p&gt;[InfoPathEventHandler(EventType = InfoPathEventType.OnSaveRequest)]&lt;/p&gt;
&lt;p&gt;public void OnSaveRequest(SaveEvent e)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;e.IsCancelled = e.PerformSaveOperation();&lt;/p&gt;
&lt;p&gt;if(e.IsCancelled)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;e.ReturnStatus = true;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item><item><title>Re: Disable Save Confirmation on Cancel</title><link>https://www.infopathdev.com:443/forums/thread/36064.aspx</link><pubDate>Thu, 18 Dec 2008 18:01:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36064</guid><dc:creator>dishmael</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36064.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36064</wfw:commentRss><description>Using the buttons versus the default header/footer bar seems to be working.&amp;nbsp; Thanks for the help!&lt;br /&gt;</description></item><item><title>Re: Disable Save Confirmation on Cancel</title><link>https://www.infopathdev.com:443/forums/thread/36058.aspx</link><pubDate>Thu, 18 Dec 2008 17:00:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36058</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36058.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36058</wfw:commentRss><description>&lt;p&gt;Yes, you do, but it&amp;#39;s very simple and requires no code.&amp;nbsp; In the end, you will have a much more useful &amp;quot;close&amp;quot; button that can do any number of things you want...or simply just close it without the save prompt.&amp;nbsp; I just drag a button control onto the canvas, change the label to say &amp;quot;close,&amp;quot; and put a rule behind it to just close without saving.&amp;nbsp; It takes the user straight back to the library quickly.&lt;/p&gt;</description></item><item><title>Re: Disable Save Confirmation on Cancel</title><link>https://www.infopathdev.com:443/forums/thread/36051.aspx</link><pubDate>Thu, 18 Dec 2008 16:00:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36051</guid><dc:creator>dishmael</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36051.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36051</wfw:commentRss><description>Sorry, its the standard close button.&amp;nbsp; I had hoped I could control its behavior like I can with the submit button but it sounds like I need to create custom buttons to do that, correct?&lt;br /&gt;</description></item><item><title>Re: Disable Save Confirmation on Cancel</title><link>https://www.infopathdev.com:443/forums/thread/36047.aspx</link><pubDate>Thu, 18 Dec 2008 15:40:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36047</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36047.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36047</wfw:commentRss><description>&lt;p&gt;Does the button say cancel or close?&amp;nbsp; I don&amp;#39;t know of a cancel button anywhere.&amp;nbsp; If you are referring to the built-in close button that shows up in the toolbar on a browser-enabled form, then all you have to do is go into your form options and deselect the close button on the Browser tab.&amp;nbsp; That way, it won&amp;#39;t show up.&amp;nbsp; You can then put a custom close button in the form with a rule that simply closes the form without prompting to save.&lt;/p&gt;</description></item><item><title>Re: Disable Save Confirmation on Cancel</title><link>https://www.infopathdev.com:443/forums/thread/36044.aspx</link><pubDate>Thu, 18 Dec 2008 15:16:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36044</guid><dc:creator>dishmael</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36044.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36044</wfw:commentRss><description>It&amp;#39;s the default cancel button at the top and bottom of the form between the submit and print view buttons.&amp;nbsp; I had hoped I could control the behavior of the cancel button using rules without having to use VSTA.&lt;br /&gt;</description></item><item><title>Re: Disable Save Confirmation on Cancel</title><link>https://www.infopathdev.com:443/forums/thread/36040.aspx</link><pubDate>Thu, 18 Dec 2008 15:00:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36040</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36040.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36040</wfw:commentRss><description>&lt;p&gt;Are you using a button with a rule to close the form? The rule action to &lt;em&gt;Close the form&lt;/em&gt; has a checkbox that says &amp;quot;&lt;em&gt;If changes have not been saved, prompt the user to save&lt;/em&gt;&amp;quot;. You can check/uncheck this as you desire.&lt;/p&gt;</description></item><item><title>Disable Save Confirmation on Cancel</title><link>https://www.infopathdev.com:443/forums/thread/36036.aspx</link><pubDate>Thu, 18 Dec 2008 14:48:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:36036</guid><dc:creator>dishmael</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/36036.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=36036</wfw:commentRss><description>Is it possible to disable the save confirmation when clicking the cancel button?&amp;nbsp; I just want the form to close when someone clicks cancel.&lt;br /&gt;</description></item></channel></rss>