<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Button Programming</title><link>https://www.infopathdev.com:443/forums/thread/51541.aspx</link><pubDate>Tue, 09 Feb 2010 09:32:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51541</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51541.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=51541</wfw:commentRss><description>&lt;p&gt;we can use conditional formatting to hide/show a section, if you want to show/hide it on a button action.&lt;/p&gt;
&lt;p&gt;have a field say hide_section_A set its default value to Hide.&lt;/p&gt;
&lt;p&gt;on the section right click and go to conditional formatting and give a condtion &lt;/p&gt;
&lt;p&gt;if hide_section_A is not equal to Show&lt;/p&gt;
&lt;p&gt;and check the hide this control checkbox.&lt;/p&gt;
&lt;p&gt;now double click on the button go to rule and in rules add -&amp;gt;&lt;/p&gt;
&lt;p&gt;on condition write a condtion&lt;/p&gt;
&lt;p&gt;if&amp;nbsp;&amp;nbsp;hide_section_A is not equal to Show&lt;/p&gt;
&lt;p&gt;&amp;nbsp;add action set value of a field &lt;/p&gt;
&lt;p&gt;hide_section_A = Show.&lt;/p&gt;
&lt;p&gt;also check the checkbox stop processing rules when this rule finishes&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and another rule &lt;/p&gt;
&lt;p&gt;if&amp;nbsp;&amp;nbsp;hide_section_A is not equal to Hide&lt;/p&gt;
&lt;p&gt;&amp;nbsp;add action set value of a field &lt;/p&gt;
&lt;p&gt;hide_section_A = Hide.&lt;/p&gt;
&lt;p&gt;also check the checkbox stop processing rules when this rule finishes&lt;/p&gt;
&lt;p&gt;on the button properties set the default value of the button(Fx) to&amp;nbsp; hide_section_A &lt;/p&gt;</description></item><item><title>Button Programming</title><link>https://www.infopathdev.com:443/forums/thread/51537.aspx</link><pubDate>Tue, 09 Feb 2010 05:59:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51537</guid><dc:creator>MikeNext</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51537.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=51537</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;&lt;p&gt;I am new to infopath.&amp;nbsp; Hopefully some kind soul out there can help. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I would like to create a button in infopath that can be used to open / close a section of a form.&lt;/p&gt;&lt;p&gt;Upon click the section should open and the button label should change to &amp;quot;close section&amp;quot; &lt;/p&gt;&lt;p&gt;Click it again, and I would like the section to close and the label to change to &amp;quot;open section&amp;quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Does anyone know how to do this?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Mike &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>