Hi there all you InfoPathDevvies out there!
Maybe I've just had a long day or something, but I need to show and hide a Section when certain things in my InfoPath 2010 Filler form are marked (or not marked) and I just can't get it to work with one of my sections.
When chkIncMgmt (a checkbox) is set to TRUE and txtSGpName (a text field) starts with either "CSU", "CCHD", or "CSS", I need Section 1 to become visible. When chkIncMgmt is set to TRUE and txtSGpName starts with anything else, I need Section 2 to become visible. Both Section 1 and Section 2 are set to "Include the section in the form by default". My rule for txtSGpName starting with anything else and turning on Section 2 works - but my rule for turning on Section 1 when txtSGpName starts with "CSU", "CCHD", or "CSS" does not.
My Formatting rule is defined to run when the following is true:
chkIncMgmt is not equal to TRUE AND
txtSGpName does not begin with "CSU" OR
txtSGpName does not begin with "CCHD" OR
txtSGpName does not begin with "CSS"
The requested action is to hide the control (Section 1).
To no avail, I've tried the nesting trick where I turn off the bottom 2 txtSGpName options and substitute the following for the "does not begin with 'CSU'" line:
The expression not(starts-with(../my:txtSGpName, "CSU")) OR not(starts-with(../my:txtSGpName, "CCHD")) OR not(starts-with(../my:txtSGpName, "CSS"))
With all the backward thinking you have to do in specifying when to hide a control, have I got something backwards? Or does anyone have any other ideas?
Many thanks, all!
nkstrou
An imprecisely defined requirement has an infinite number of possible solutions. Unfortunately, only about a maxiumum of 3 solutions are actually satisfactory to the end user.