Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / April 2006

Tip: Looking for answers? Try searching our database.

Show/Hide Section using JScript

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Si - 03 Apr 2006 04:37 GMT
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
Greg Collins [InfoPath MVP] - 03 Apr 2006 18:48 GMT
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!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.