The best thing to do is to create your own secondary data source, I like to call mine ViewOptions.xml, and add fields in there to store you hide/show values. Then set you conditional visibility to those fields in your ViewOptions data source.
I like to use values of 1 and 0 instead of true and false because I can use a rule that sets the value to 1-{current value} to toggle between visible and hidden. This way I don't need to test if true or false before setting a value. 1-0 = 1 and 1-1 = 0 (an exact toggle).
Hope this helps.

Signature
Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com
Hi,
Does anyone have a sample of how to show or hide a section from a
button event in JScript, the schema is set in BizTalk and cannot be
altered so a checkbox or similar will not work in this scenario.
Thanks,
Simon
Si - 04 Apr 2006 04:37 GMT
Perfect, thought I was missing something. Thanks Greg!