<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Removing Optional Section</title><link>https://www.infopathdev.com:443/forums/thread/31355.aspx</link><pubDate>Tue, 12 Aug 2008 00:17:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31355</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31355.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=31355</wfw:commentRss><description>&lt;p&gt;I would make it a regular section, not optional, and use conditional formatting to show/hide it. You could even use a set of option buttons to show/hide and base the conditional formatting off that. &lt;/p&gt;
&lt;p&gt;As far as a way to modify this functionality using code, you may want to look at &lt;a href="http://msdn.microsoft.com/en-us/library/aa944286.aspx"&gt;this&lt;/a&gt; on MSDN on the View.ExecuteAction method.&lt;/p&gt;</description></item><item><title>Re: Removing Optional Section</title><link>https://www.infopathdev.com:443/forums/thread/31353.aspx</link><pubDate>Mon, 11 Aug 2008 23:59:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31353</guid><dc:creator>DrewB83</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31353.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=31353</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Let me try to give you the scenario a little better then before.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So i have sections with read only data that i want to have the end user have the ability to hide when/if not needed.&amp;nbsp; Since the information in these are more like placeholder text its not going to erase anything since no data in these fields will be end user text.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;The way infopath does this right now is have you click on it and then click again to hide.&amp;nbsp; I want it to on click (without menu) hide the optional section.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope this helps :)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And thanks for your help :)&lt;/p&gt;</description></item><item><title>Re: Removing Optional Section</title><link>https://www.infopathdev.com:443/forums/thread/31352.aspx</link><pubDate>Mon, 11 Aug 2008 23:52:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31352</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31352.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=31352</wfw:commentRss><description>&lt;p&gt;Hi, Drew:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m sorry, I&amp;#39;m afraid I don&amp;#39;t quite understand what you want to do. You want to remove an optional section after it has been filled out? Removing it would also remove the data. How about just hiding it? You could add a helper field to your data source with a boolean data type, and give the user a button to click for showing or hiding the section. Clicking the button could set the boolean to true or false. Your optional section could have conditional formatting to hide the section if the field is true, show it if the field is false, or something along those lines. Does that make sense? Or did&lt;em&gt;&amp;nbsp;&lt;/em&gt;I misunderstand entirely?&lt;/p&gt;</description></item><item><title>Removing Optional Section</title><link>https://www.infopathdev.com:443/forums/thread/31344.aspx</link><pubDate>Mon, 11 Aug 2008 16:08:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31344</guid><dc:creator>DrewB83</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31344.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=31344</wfw:commentRss><description>&lt;p&gt;&lt;font face="times new roman,times" color="#0000ff" size="4"&gt;Hello,&lt;br /&gt;&lt;br /&gt;I am working with a informative tool that reports data and I want my end users to be able to remove the section control after they have done it but I do not want them to have to click the arrow then click remove I would prefer that on the click of the remove section arrow it takes away without the extra click necessary.&amp;nbsp; I would prefer that by doing this it does not change the show function on the section control so if they need to reference what they just did they can easily show.&amp;nbsp; Any instructions anyone has for me on this would be greatly appreciated.&amp;nbsp; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="times new roman,times" color="#0000ff" size="4"&gt;&amp;nbsp;Thanks&lt;/font&gt; &lt;/p&gt;</description></item></channel></rss>