<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Hiding a control through dynamic scripting</title><link>https://www.infopathdev.com:443/forums/thread/57236.aspx</link><pubDate>Fri, 23 Jul 2010 12:23:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57236</guid><dc:creator>sivarao.n</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57236.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=57236</wfw:commentRss><description>&lt;p&gt;Hi Shanthi, &lt;/p&gt;
&lt;p&gt;Thanks for your post. It will very usefull post.&lt;/p&gt;
&lt;p&gt;But some it is not working for me, i am facing one issue.&amp;nbsp;i.e &amp;nbsp;If i use expression with out quotes like xdExtension:isValid() everything working fine.&lt;/p&gt;
&lt;p&gt;But when i am trying to publish the infopath form i am getting error message like Unsupported expression.&lt;/p&gt;
&lt;p&gt;If i use expression&amp;nbsp;with in quotes like &amp;nbsp;&amp;quot;xdExtension:isValid1()&amp;quot; this time we are not getting any error message but&amp;nbsp;expression is not at all fireing.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know how to slove this problem.&lt;/p&gt;
&lt;p&gt;If you have any&amp;nbsp;idea can you please&amp;nbsp;help me.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Siva.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>UI-specific Information and Datasources</title><link>https://www.infopathdev.com:443/forums/thread/37408.aspx</link><pubDate>Tue, 20 Jan 2009 18:55:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37408</guid><dc:creator>kerplunk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37408.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=37408</wfw:commentRss><description>&lt;p&gt;A related strategy that I have used is to set up a UI state document similar to this&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;view1 state=&amp;quot;&amp;quot; someOtherState=&amp;quot;&amp;quot;&amp;gt; &lt;br /&gt;
&amp;lt;pane1 state=&amp;quot;&amp;quot;/&amp;gt; &lt;br /&gt;
&amp;lt;pane2 state=&amp;quot;&amp;quot;/&amp;gt; &lt;br /&gt;
&amp;lt;/view1&amp;gt; &lt;/code&gt;&lt;/p&gt;&lt;p&gt;Add the document as a Receive data connection. Despite the nature of the connection you can still write to the DOM. However, your changes will only last as long as the current session, which is often what you want. I think this is cleaner than some other solutions I&amp;#39;ve seen, and I&amp;#39;ve had good success with it.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Cheers &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Hiding a control through dynamic scripting</title><link>https://www.infopathdev.com:443/forums/thread/37049.aspx</link><pubDate>Wed, 14 Jan 2009 07:44:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37049</guid><dc:creator>hidemaster</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37049.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=37049</wfw:commentRss><description>&lt;p&gt;Thanks that was very useful for a beginner like me&lt;/p&gt;</description></item><item><title>Re: Hiding a control through dynamic scripting</title><link>https://www.infopathdev.com:443/forums/thread/13171.aspx</link><pubDate>Sat, 12 Mar 2005 22:48:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13171</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13171.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13171</wfw:commentRss><description>Yes it is possible to Hide/Disable a control through Scripting.&lt;br /&gt;Here are the steps &lt;br /&gt;First write a method that returns a boolean value in your script.&lt;br /&gt;For ex:&lt;br /&gt;function isValid()&lt;br /&gt;{&lt;br /&gt;   return true;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Now go to Infopath form Double click on the control that you want to make conditionally visible/disable&lt;br /&gt;- Go to Display tab&lt;br /&gt;- Click on Conditional formatting button.&lt;br /&gt;- Select expression in the First dropdown&lt;br /&gt;- give this expression in the text box "xdExtension:isValid()" if you want to do some activity when script returns true&lt;br /&gt;- Check Hide or Disable checkbox and click on Ok button&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPathDev India</description></item><item><title>Hiding a control through dynamic scripting</title><link>https://www.infopathdev.com:443/forums/thread/12435.aspx</link><pubDate>Sat, 12 Mar 2005 08:32:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12435</guid><dc:creator>amish</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12435.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12435</wfw:commentRss><description>Hi Folks ,&lt;br /&gt;          I am back with a new problem which i am not able to resolve.&lt;br /&gt;I tried finding it on net but was not able to find anything relevant to condtional formatting using scripts.&lt;br /&gt;&lt;br /&gt;Here is the Problem : &lt;br /&gt;&lt;br /&gt;Is it possible to Hide/Disable a control through scripting(jscript) in infopath?&lt;br /&gt;&lt;br /&gt;I know that at design time we can Hide/Disable controls but what abt controlling the behaviour(Hiding/Disabling) through scripts?&lt;br /&gt;&lt;br /&gt;Thanks in advance.&lt;br /&gt;&lt;br /&gt;Amish&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Amish</description></item></channel></rss>