<?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: Close an InfoPath Form</title><link>https://www.infopathdev.com:443/forums/thread/116338.aspx</link><pubDate>Mon, 22 May 2017 13:48:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116338</guid><dc:creator>veney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116338.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116338</wfw:commentRss><description>&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Hi Hilary,&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;Thank you for your advice and support.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;/span&gt;&lt;/font&gt;&lt;font size="3"&gt;Based on your information, I created a new
view to close/exit the form via a button.&lt;/font&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font size="3"&gt;&amp;nbsp;
&lt;/font&gt;&lt;/span&gt;&lt;font size="3"&gt;If the condition:&lt;/font&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font size="3"&gt;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;font size="3"&gt;field1 !=
field2 then switch to the close form view (which displays a Close form button)
enabling the user to close and exit the InfoPath form.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Again, Thanks for Your Help/Support!&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;font face="Calibri"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;font size="3"&gt;- Rodman&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&amp;nbsp;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Close an InfoPath Form</title><link>https://www.infopathdev.com:443/forums/thread/116328.aspx</link><pubDate>Fri, 19 May 2017 15:03:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116328</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116328.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116328</wfw:commentRss><description>I&amp;#39;m pretty sure this is a limitation of the InfoPath object model - kinda like how you can&amp;#39;t use a rule to change a view based on a field change and also can&amp;#39;t do that in code. I&amp;#39;m pretty sure you&amp;#39;ll get an &amp;quot;Invalid context for OM call&amp;quot; error.</description></item><item><title>Re: Close an InfoPath Form</title><link>https://www.infopathdev.com:443/forums/thread/116327.aspx</link><pubDate>Fri, 19 May 2017 14:47:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116327</guid><dc:creator>veney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116327.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116327</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hilary,&lt;/p&gt;&lt;p&gt;Thank you for your response.&amp;nbsp; I now remember that&amp;nbsp; I was using a button in the 2007 version to close the form.&amp;nbsp; &amp;nbsp;Is there a way I can close a form based on field conditions.&amp;nbsp; If there is a way via code can you provide a sample of th4 code that could be used?&lt;/p&gt;&lt;p&gt;Thanks in Advance,&lt;/p&gt;&lt;p&gt;Rodman&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Close an InfoPath Form</title><link>https://www.infopathdev.com:443/forums/thread/116326.aspx</link><pubDate>Fri, 19 May 2017 14:40:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116326</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116326.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116326</wfw:commentRss><description>I&amp;#39;m wondering if your rules are on a field instead of a button? Buttons have the Close the form action - but fields do not....</description></item><item><title>Close an InfoPath Form</title><link>https://www.infopathdev.com:443/forums/thread/116323.aspx</link><pubDate>Fri, 19 May 2017 13:41:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116323</guid><dc:creator>veney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116323.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116323</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;Using InfoPath 2010, I am trying to close a form based on a
condition.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/font&gt;&lt;font size="3"&gt;I tried to create an action rule,
based on a condition for example: &lt;/font&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;font size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/span&gt;&lt;font size="3"&gt;if
field 1 is not equal to field2 then close/exit InfoPath.&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;I was not able to find a “Close the form” InfoPath Action
which does exist in&amp;nbsp;InfoPath 2007.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Can anyone suggest/provide a solution?&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Thanks in Advance,&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Rodman Veney&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&amp;nbsp;&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>