<?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>email custom view - active view</title><link>https://www.infopathdev.com:443/forums/thread/24532.aspx</link><pubDate>Sun, 18 Nov 2007 23:31:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:24532</guid><dc:creator>Eamon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/24532.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=42&amp;PostID=24532</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;have multiple views in my InfoPath 2007 form. I have a submit via &lt;br /&gt;email data connection, with the &amp;quot;Send only the active view of the form &lt;br /&gt;and no attachment&amp;quot; option set. &lt;/p&gt;
&lt;p&gt;My problem is, my emails only seem to attach the view that is active &lt;br /&gt;at the time of the submit. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I have tried switching views prior to the submit action - the switch &lt;br /&gt;to view works, but if I switch to a different view the email body is &lt;br /&gt;missing. It is as though it has realised I&amp;#39;ve switched views, but won&amp;#39;t&lt;br /&gt;show any view if it isn&amp;#39;t the view that was active at the time the &lt;br /&gt;submit action was fired.&lt;/p&gt;
&lt;p&gt;All three views can appear in the email body - but only if I hit the &lt;br /&gt;Submit button while on that particular view (i.e. without switching &lt;br /&gt;the views via a Rule/Code). &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried switching views in both a Rule (custom action using Rules) &lt;br /&gt;and in the OnSubmitRequest (custom action using Code). &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;This is confusing. Any help would be great. &lt;/p&gt;</description></item></channel></rss>