<?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: Changing default view on click event</title><link>https://www.infopathdev.com:443/forums/thread/56080.aspx</link><pubDate>Mon, 21 Jun 2010 20:26:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56080</guid><dc:creator>Aruna Akella</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56080.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=56080</wfw:commentRss><description>&lt;p&gt;You can achieve that by adding an attribute, and setting it to true just before email submit, and in the form open rules - check for that attribute, if it is true - then open the supervisor view. &lt;/p&gt;
&lt;p&gt;Hope that helps!&lt;/p&gt;</description></item><item><title>Changing default view on click event</title><link>https://www.infopathdev.com:443/forums/thread/56078.aspx</link><pubDate>Mon, 21 Jun 2010 19:23:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56078</guid><dc:creator>Methossa2</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56078.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=56078</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I found here(http://www.infopathdev.com/forums/p/11426/40459.aspx) how to change the default view on load, however I&amp;#39;m trying to set up my form to do so on the click of a button instead. Does anyone have any advice on how to do this? I&amp;#39;ve only been able to find resources dealing with Loading events.&lt;/p&gt;&lt;p&gt;Essentially, I&amp;#39;m trying to set it up so that when the user clicks a submit button, it changes the view to that of their supervisor and e-mail it to the supervisor as an attachment. I close the form immediately at the end to make sure that the initial user can&amp;#39;t access their supervisor&amp;#39;s section. My issue is the attachment for the supervisor opens up in the default view instead of the supervisor view I had switched it to. I removed the views from the toolbar listing to make sure the initial user doesn&amp;#39;t try shenanigans.&lt;/p&gt;&lt;p&gt;Thanks for any help/advice you have. No one at my office has really worked with Infopath, so I&amp;#39;m flying blind.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>