<?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: So-Called Simple Logic for Showing/Hiding a Section Not Working</title><link>https://www.infopathdev.com:443/forums/thread/73524.aspx</link><pubDate>Thu, 05 Jan 2012 16:14:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73524</guid><dc:creator>nkstrou</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73524.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=73524</wfw:commentRss><description>&lt;p&gt;Thanks, Anson - that did the trick.&amp;nbsp; You rock!&amp;nbsp; :)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;-nkstrou&lt;/p&gt;</description></item><item><title>Re: So-Called Simple Logic for Showing/Hiding a Section Not Working</title><link>https://www.infopathdev.com:443/forums/thread/73502.aspx</link><pubDate>Thu, 05 Jan 2012 01:38:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73502</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73502.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=73502</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;&lt;p&gt;I tried out your scenario real quick and think I got it to work.&amp;nbsp; You&amp;#39;ll need to do your nesting trick with the &amp;quot;begins with&amp;quot; checks in the same expression and the operators need to be &amp;quot;and&amp;quot; instead of &amp;quot;or&amp;quot;.&amp;nbsp; The other part that you&amp;#39;ll need to fix is that the first operator needs to be an OR.&lt;/p&gt;&lt;p&gt;So your rule should look something like this:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;chkIncMgmt is not equal to TRUE OR&lt;/li&gt;&lt;li&gt;The expression    not(starts-with(../my:txtSGpName, &amp;quot;CSU&amp;quot;)) and not(starts-with(../my:txtSGpName, &amp;quot;CCHD&amp;quot;)) and not(starts-with(../my:txtSGpName, &amp;quot;CSS&amp;quot;))&lt;/li&gt;&lt;li&gt;The requested action is to hide the control (Section 1).&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Hope that works for you!&lt;/p&gt;</description></item><item><title>So-Called Simple Logic for Showing/Hiding a Section Not Working</title><link>https://www.infopathdev.com:443/forums/thread/73501.aspx</link><pubDate>Thu, 05 Jan 2012 00:46:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73501</guid><dc:creator>nkstrou</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73501.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=73501</wfw:commentRss><description>&lt;p&gt;Hi there all you InfoPathDevvies out there!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Maybe I&amp;#39;ve just had a long day or something, but I need to show and hide a Section when certain&amp;nbsp;things in my InfoPath 2010 Filler&amp;nbsp;form are marked (or not marked) and I just can&amp;#39;t get it to work with one of my sections.&lt;/p&gt;
&lt;p&gt;When&amp;nbsp;chkIncMgmt (a checkbox)&amp;nbsp;is set to TRUE and&amp;nbsp;txtSGpName (a text field)&amp;nbsp;starts with either &amp;quot;CSU&amp;quot;, &amp;quot;CCHD&amp;quot;, or &amp;quot;CSS&amp;quot;, I need Section 1 to become visible.&amp;nbsp; When chkIncMgmt is set to TRUE and txtSGpName&amp;nbsp;starts with&amp;nbsp;anything else, I need Section 2 to become visible.&amp;nbsp; Both Section 1 and Section 2 are set to&amp;nbsp;&amp;quot;Include the section in the form by default&amp;quot;.&amp;nbsp; My rule for txtSGpName starting with anything else and turning on Section 2 works - but&amp;nbsp;my rule for turning on Section 1 when txtSGpName starts with &amp;quot;CSU&amp;quot;, &amp;quot;CCHD&amp;quot;, or &amp;quot;CSS&amp;quot; does not.&lt;/p&gt;
&lt;p&gt;My Formatting rule is defined to run when the following is true:&lt;/p&gt;
&lt;p&gt;chkIncMgmt&amp;nbsp;is not equal to&amp;nbsp;TRUE AND&lt;/p&gt;
&lt;p&gt;txtSGpName does not begin with &amp;quot;CSU&amp;quot; OR&lt;/p&gt;
&lt;p&gt;txtSGpName does not begin with &amp;quot;CCHD&amp;quot; OR&lt;/p&gt;
&lt;p&gt;&amp;nbsp;txtSGpName does not begin with &amp;quot;CSS&amp;quot;&lt;/p&gt;
&lt;p&gt;The requested action is to hide the control (Section 1).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To no avail,&amp;nbsp;I&amp;#39;ve tried the nesting trick where I turn off the bottom 2 txtSGpName options and substitute the following for the &amp;quot;does not&amp;nbsp;begin with &amp;#39;CSU&amp;#39;&amp;quot; line:&lt;/p&gt;
&lt;p&gt;The expression&amp;nbsp;&amp;nbsp;&amp;nbsp; not(starts-with(../my:txtSGpName, &amp;quot;CSU&amp;quot;))&amp;nbsp;OR not(starts-with(../my:txtSGpName, &amp;quot;CCHD&amp;quot;))&amp;nbsp;OR not(starts-with(../my:txtSGpName, &amp;quot;CSS&amp;quot;))&lt;/p&gt;
&lt;p&gt;With all the backward thinking you have to do in specifying when to hide a control, have I got something backwards?&amp;nbsp; Or does anyone have any other ideas?&lt;/p&gt;
&lt;p&gt;Many thanks, all!&lt;/p&gt;
&lt;p&gt;nkstrou&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>