<?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: Hide controls via Javascript (not the IDE)</title><link>https://www.infopathdev.com:443/forums/thread/3290.aspx</link><pubDate>Tue, 17 Oct 2006 07:21:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3290</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3290.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3290</wfw:commentRss><description>Hey Eric,&lt;br /&gt;&lt;br /&gt;Unfortunately InfoPath does not directly expose the control properties to any programming languages.  The only way to accomplish what you are doing is to have a secondary data source with boolean fields for each of the controls that you wish to change the visibility for.  Using conditional formatting that references the nodes on the 2DS you can then set the values in the 2DS to true/false depending on whether you want to show or hide the nodes.  This has been discussed in the forums several times before if you want to search for more info.</description></item><item><title>Hide controls via Javascript (not the IDE)</title><link>https://www.infopathdev.com:443/forums/thread/1595.aspx</link><pubDate>Mon, 16 Oct 2006 19:19:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1595</guid><dc:creator>Eric</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1595.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1595</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;Has anyone used Javascript to hide or show controls on a form?&lt;br /&gt;&lt;br /&gt;I'd like to have a little function that loops through a set of controls and sets the visibility based on some set of criteria I have.&lt;br /&gt;&lt;br /&gt;I'd prefer not to have to interact with the IDE and set rules on a view by view and control by control basis.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;-Eric&lt;br /&gt;</description></item></channel></rss>