<?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>Views</title><link>https://www.infopathdev.com:443/forums/42.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Switching views without using the InfoPath Button Control</title><link>https://www.infopathdev.com:443/forums/thread/82619.aspx</link><pubDate>Thu, 13 Sep 2012 14:09:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82619</guid><dc:creator>mswilson4040</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82619.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=82619</wfw:commentRss><description>&lt;p&gt;That is correct. JavaScript isn&amp;#39;t available for OOTB InfoPath. However, my company has a way of running a JavaScript file with an InfoPath form when publishing to a SharePoint site so in this case, JavaScript is available.&lt;/p&gt;&lt;p&gt;On demand = Ability to switch views on the click of a button when the form is rendered in a web page (SharePoint)&lt;/p&gt;&lt;p&gt;Normally, this would be done using the InfoPath Button, but we do not support that control as of yet. I am just exploring other ways to achieve this result.&lt;/p&gt;</description></item><item><title>Re: Switching views without using the InfoPath Button Control</title><link>https://www.infopathdev.com:443/forums/thread/82614.aspx</link><pubDate>Thu, 13 Sep 2012 07:30:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82614</guid><dc:creator>Gennady Vanin (Геннадий Ванин, Новосибирск)</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82614.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=82614</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;To the best of my knowledge Javascript is not available for code-behind of Infopath 2010 (with which you tagged your question) forms, only C# and VB.NET. So, your question is about using javascript to switch views of Infopath web part from javascript of asxp web part page?&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;What do you mean under &amp;quot;on demand&amp;quot;? From where and how?triggered by what?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;You can use rules for switching views in Infopath form without any code. The same is valid for a custom button - no need to use any code to switch views on button click &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Switching views without using the InfoPath Button Control</title><link>https://www.infopathdev.com:443/forums/thread/82554.aspx</link><pubDate>Tue, 11 Sep 2012 21:53:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82554</guid><dc:creator>mswilson4040</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82554.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=82554</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;My ultimate goal is to be able to switch views in InfoPath after it has been published to SharePoint and rendered in the broswer. Unfortunatly, our software doesn&amp;#39;t support the InfoPath button control as of right now and that is the only way I know how to do it. However, I am able to use JavaScript but I&amp;#39;m not entirely sure on the code I need to be able to do this. Another add-in is that we have our own button we can use. One of the options with the custom button control is that it allows us to run javascript. I guess what I&amp;#39;m looking for is a way of switching views on demand without using the InfoPath Button Control and if at all possible, avoid using code.&lt;/p&gt;&lt;p&gt;Any input would be great.&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;</description></item></channel></rss>