<?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>Suggestions how to trap a Cancel event when user clicks Cancel button</title><link>https://www.infopathdev.com:443/forums/thread/93511.aspx</link><pubDate>Mon, 07 Oct 2013 20:22:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93511</guid><dc:creator>ClamBake</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93511.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=93511</wfw:commentRss><description>&lt;p&gt;Hi All:&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve done some searching in the forums and it appears my solution may be in custom coding. However, my experience with InfoPath is approaching the intermediate level (I think :) ).&amp;nbsp; Here is my challenge:&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve created a simple data entry form in InfoPath 2007 that captures basic information.&amp;nbsp; There are no underlying data connections to databases or anything of the sort. The user completes the form and then clicks&amp;nbsp;a submit button&amp;nbsp;which runs a series of rules.&amp;nbsp; The&amp;nbsp;form is then attached to an email and sent.&amp;nbsp; The email recipient&amp;nbsp;opens the form in their email and they are&amp;nbsp;presented&amp;nbsp;a different view.&amp;nbsp; (Their&amp;nbsp;view contains&amp;nbsp;a pair of approve/deny buttons.&amp;nbsp; Each of these buttons also&amp;nbsp;contain rules I created.)&amp;nbsp; Throughout the process&amp;nbsp;as&amp;nbsp;these buttons are clicked, a hidden field&amp;nbsp;value is set before the form is submitted via&amp;nbsp;the&amp;nbsp;email data connections&amp;nbsp;I&amp;#39;ve defined.&amp;nbsp; The rules that are applied for these buttons follow this order:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Set field value = &amp;quot;submitted&amp;quot;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Submit using a data connection: [my email submit connection]&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Show dialog box message &amp;quot;Request submitted&amp;quot;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Close the form: No Prompt&lt;br /&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Therefore, based on the above rule order, how can I trap for the instances when the user&amp;nbsp;clicks the Cancel button in response to the submission using the email data connection?&amp;nbsp; As you see, clicking Cancel in the email dialog box does not provide me a way of resetting the field value from &amp;quot;submitted&amp;quot; back to something else.&amp;nbsp; And because of that, the form will not submit unless a new one is completed and the user then clicks Send in the dialog box.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Anyone have any tricks they can share?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Thanks everyone! &lt;/p&gt;</description></item></channel></rss>