Show/Hide Section using JScript

S

Si

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
 
G

Greg Collins [InfoPath MVP]

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.

--
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top