<?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: Sending a non-active view via email?</title><link>https://www.infopathdev.com:443/forums/thread/106905.aspx</link><pubDate>Mon, 06 Jun 2016 15:06:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106905</guid><dc:creator>iLoveData</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106905.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=106905</wfw:commentRss><description>You have changed my world with this response. I was originally looking for a way to hide the submit button on a submitted form but this is a much better solution and allows for a read only version on submit. Thank you so much for sharing.</description></item><item><title>Re: Sending a non-active view via email?</title><link>https://www.infopathdev.com:443/forums/thread/90447.aspx</link><pubDate>Wed, 05 Jun 2013 21:19:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90447</guid><dc:creator>Read Kalinka</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90447.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=90447</wfw:commentRss><description>&lt;p&gt;YAY! I really did cheer...people in the office are looking at me strangely now. :)&lt;/p&gt;

&lt;p&gt;No matter, as I have finally got my IP 2010 form functional now! I will pass on my findings, which may prove to be interesting.&lt;/p&gt;

&lt;p&gt;I have a lot of information that needs to be populated on my form, so I spent time formatting it so it could be just submitted as is, without having to recreate another view.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;1. Right click on the background, select View Properties and under the General tab/Layout Settings set a custom layout width.&lt;/p&gt;

&lt;p&gt;2. Statically set all object widths with pixels not percentage as Joy_T described.&lt;/p&gt;

&lt;p&gt;3. I have 1 table which includes all of my form content, and I created a new section below it. Cut and pasted the table into the section.&lt;/p&gt;

&lt;p&gt;4. Copy and paste the section. Now I have 2 sections with my form displaying twice. ( Note that not all controls store duplicate data, specifically the Option Button object. )&lt;/p&gt;

&lt;p&gt;5. For the Date Picker object and for the Option Buttons, I replaced those in the 2nd section with text fields which pull values from the 1st section.&lt;/p&gt;

&lt;p&gt;6. Using Hilary&amp;#39;s solution, I created a boolean field called IsEmailing and set it to FALSE. (note the default capitalization of FALSE and TRUE)&lt;/p&gt;

&lt;p&gt;7. Select Section 1 and create a Formatting Rule. Condition: IsEmailing is equal to TRUE. Rule Type: Formatting, select Hide this control.&lt;/p&gt;

&lt;p&gt;8. Select Section 2 and create a Formatting Rule. Condition: Is Emailing is equal to FALSE. Rule Type: Formatting, select Hide this control.&lt;/p&gt;

&lt;p&gt;9. Under the Data tab on the toolbar, select Submit Options and select &amp;#39;Perform custom action using Rules. Now select Form Submit in the Rules grouping&lt;/p&gt;

&lt;p&gt;10. Now to create 3 action rules... Rule 1 - Condition: IsEmailing = FALSE, Rule Type: Action, Run these actions: Set a field&amp;#39;s value IsEmailing=true (lower caps)&lt;/p&gt;

&lt;p&gt;11. Rule 2 - Condition: None, Rule Type: Action, Rune these actions: Submit using Email Data Connection&lt;/p&gt;

&lt;p&gt;12. Rule 3 - Condition: IsEmailing = TRUE, Rule Type: Action, Run these actions: Set a field&amp;#39;s value IsEmailing=false (lower caps)&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;My hang up was with the errors that it was generating after trying to submit it via preview. What I discovered is that when setting the field values for IsEmailing, I used TRUE instead of true and FALSE instead of false....arg.&lt;/p&gt;

&lt;p&gt;I do have multiple merged cells in my form, I haven&amp;#39;t seen a need&amp;nbsp;to create a separate table for each line...yet.&lt;/p&gt;

&lt;p&gt;Considering the large numbers of forms I have to generate to be accessible to users in a SharePoint environment, I needed to find a workaround in IP.&lt;/p&gt;

Thanks to ErnestoM for pointing me in the right direction, Joy_T and g21cincy for you responses and 3 cheers for Hilary!</description></item><item><title>Re: Sending a non-active view via email?</title><link>https://www.infopathdev.com:443/forums/thread/90410.aspx</link><pubDate>Tue, 04 Jun 2013 16:09:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90410</guid><dc:creator>Joy_T</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90410.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=90410</wfw:commentRss><description>&lt;p&gt;I have been able to finally keep the formatting correct for an email-submitted browser form!&amp;nbsp; See fun and exciting instructions below, with explanations in parentheses.&lt;/p&gt;
&lt;p&gt;1. Ensure that the width of every field in the form&amp;nbsp;is a numeric&amp;nbsp;pixel width and not a percentage (reason: percentage widths will not format properly when emailed)&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;Each line of the form has to be created as a separate table (reason: when the browser form is submitted via email, it does not like merged cells and will completely mess up the formatting)&lt;/p&gt;
&lt;p&gt;3. Any date-picker contained in the form has to be recreated separately in its own section as just the data for the email submission, using the guidelines from earlier in this conversation post (regarding section hiding and such).&amp;nbsp; This will&amp;nbsp;thereby make sure that the date-picker field itself will not be part of the email submission (since the date picker field will also completely mess up the formatting)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;To elaborate, in one instance I have one field that is a date picker, called &amp;quot;Date&amp;quot;; this field with title are now in their own section, which I have called &amp;quot;DatePicker_Section&amp;quot;.&lt;/p&gt;
&lt;p&gt;I have created a second section directly beneath this, containing a text field called &amp;quot;DateValue&amp;quot;, in a section called &amp;quot;DateValue_Section&amp;quot;.&amp;nbsp; The &amp;quot;DateValue&amp;quot; field is set as a locked Date formatted text field (and not a date picker field), with the formula set to equal the value of the &amp;quot;Date&amp;quot; field.&lt;/p&gt;
&lt;p&gt;I then used the sections and rules outlined earlier in this handy post from Hilary Stoupa, setting it up so that the DatePicker_Section is visible when the form is being filled out, but that the DateValue_Section is visible when the form is submitted via email.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Following the many painstaking hours it took to make all these changes, my form is now properly submitting and emailing without messing up any of the formatting. :)&lt;/p&gt;</description></item><item><title>Re: Sending a non-active view via email?</title><link>https://www.infopathdev.com:443/forums/thread/90290.aspx</link><pubDate>Thu, 30 May 2013 18:39:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90290</guid><dc:creator>Read Kalinka</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90290.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=90290</wfw:commentRss><description>&lt;p&gt;It will take me some time to set this up as I would have to define the HTML code in the body of the email. I will let you know how that goes. Thanks for the info.&lt;/p&gt;</description></item><item><title>Re: Sending a non-active view via email?</title><link>https://www.infopathdev.com:443/forums/thread/90248.aspx</link><pubDate>Wed, 29 May 2013 19:06:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90248</guid><dc:creator>g21cincy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90248.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=90248</wfw:commentRss><description>&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;&lt;font color="#000000"&gt;The following is the code that I use to send data via email from InfoPath browser forms.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Dim Nav As XPathNavigator = Me.CreateNavigator()&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Dim EmailFrom As String = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/dfs:myFields/my:Email/my:EmailFrom&amp;quot;, NamespaceManager).Value&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Dim SubjectOfMessage As String = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/dfs:myFields/my:Email/my:EmailSubject&amp;quot;, NamespaceManager).Value&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Dim FullName As String = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;&lt;a href="mailto:XPath/@FullName"&gt;XPath/@FullName&lt;/a&gt;&amp;quot;, NamespaceManager).Value&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Dim DateVariable As String = Date.Parse(MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;&lt;a href="mailto:XPath/@Date"&gt;XPath/@Date&lt;/a&gt;&amp;quot;, NamespaceManager).Value)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Dim fromAddress As MailAddress = New MailAddress(EmailFrom) &lt;br /&gt;Dim toAddress As MailAddress = New MailAddress(&amp;quot;&lt;a href="mailto:Name@somecompany.net"&gt;Name@somecompany.net&lt;/a&gt;&amp;quot;)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Dim msgmail As MailMessage = New MailMessage(fromAddress, toAddress)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;msgmail.To.Add(&amp;quot;&lt;a href="mailto:Name@somecompany.net"&gt;Name@somecompany.net&lt;/a&gt;&amp;quot;)&amp;nbsp; &amp;#39;Additional email address to send email to&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;msgmail.Subject = SubjectOfMessage + &amp;quot;Static text in subject line&amp;quot;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;msgmail.IsBodyHtml = True&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;msgmail.Body = &amp;quot;&amp;lt;html&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Full Name:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;quot; + FullName + &amp;quot;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;quot; + _ &lt;br /&gt;&amp;quot;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Date:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;quot; + DateVariable + &amp;quot;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/html&amp;gt;&amp;quot;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Dim client As SmtpClient = New SmtpClient(&amp;quot;Email_Server&amp;quot;) &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;client.Credentials = New System.Net.NetworkCredential(&amp;quot;UserName&amp;quot;, &amp;quot;Password&amp;quot;) &lt;br /&gt;client.Send(msgmail)&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;</description></item><item><title>Re: Sending a non-active view via email?</title><link>https://www.infopathdev.com:443/forums/thread/90243.aspx</link><pubDate>Wed, 29 May 2013 18:24:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90243</guid><dc:creator>Read Kalinka</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90243.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=90243</wfw:commentRss><description>&lt;p&gt;No I haven&amp;#39;t.&amp;nbsp;Everything in my web based form&amp;nbsp;is functioning&amp;nbsp;properly. When&amp;nbsp;it&amp;#39;s submitted using an email data connection, the form data that is&amp;nbsp;received in the body of the email message is fine.&amp;nbsp;&lt;/p&gt;&lt;p&gt;It is only when I add a date picker input object in the form when&amp;nbsp;it causes&amp;nbsp;the column where the object resides to autostretch&amp;nbsp;after it is submitted. I ended up just replacing that with a date formated text field as a workaround.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Ideally, I would really like to find&amp;nbsp;a solution that would allow me to use that object.&lt;/p&gt;&lt;p&gt;I am presently trying&amp;nbsp;to set up an non-active view to see if that will fix the formatting issue.&amp;nbsp;&lt;/p&gt;&lt;p&gt;If&amp;nbsp;I did want to&amp;nbsp;format in HTML, where would I define that?&lt;/p&gt;</description></item><item><title>Re: Sending a non-active view via email?</title><link>https://www.infopathdev.com:443/forums/thread/90220.aspx</link><pubDate>Wed, 29 May 2013 14:14:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90220</guid><dc:creator>g21cincy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90220.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=90220</wfw:commentRss><description>&lt;p&gt;Have you tried sending the email programmatically using code behind the view? That&amp;#39;s how I usually send emails and formatting everything in HTML.&lt;/p&gt;</description></item><item><title>Re: Sending a non-active view via email?</title><link>https://www.infopathdev.com:443/forums/thread/90157.aspx</link><pubDate>Mon, 27 May 2013 19:35:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90157</guid><dc:creator>Read Kalinka</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90157.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=90157</wfw:commentRss><description>Hi Hillary,

&lt;p&gt;I came across your post a few weeks ago thanks to Ernesto Machado, but I wanted to do some of my own troubleshooting to find out what is causing my form data to auto-stretch in the body of an email message after submitting it via an email data connection.&lt;/p&gt;

&lt;p&gt;What I discovered is that ( without the use of sections, buttons and rules) placing the following input objects ( Date Picker, Date &amp;amp; Time Picker and Multiple Selection Box ) in your form are not translated properly when the form is submitted. I also tried statically setting all column and input object widths but still no success. Any other input objects that I used, the form data in the body of the email is fine.&lt;/p&gt;

&lt;p&gt;Strange though, when I uploaded my form to my server for the first time without any data connections defined (using Date Pickers), it gives the option to email the form for review. When it is received, it looks exactly as it should. &lt;/p&gt;

&lt;p&gt;So in your solution you mention the use of 2 sections. If I wanted the fill section and the email section to be the same how would I set that up?&lt;/p&gt;

&lt;p&gt;Also, I was able to set up a boolean field called isEmailing, but why is that necessary?&lt;/p&gt;

&lt;p&gt;I am a little unclear with this, if you could clarify your solution it would be greatly appreciated.&lt;/p&gt;

&lt;p&gt;Many Thanks.&lt;/p&gt;</description></item><item><title>Re: Sending a non-active view via email?</title><link>https://www.infopathdev.com:443/forums/thread/88895.aspx</link><pubDate>Fri, 12 Apr 2013 14:11:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88895</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88895.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=88895</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;No - your section can be bound to an existing field - you won&amp;#39;t have to add any new fields for this.&lt;/p&gt;</description></item><item><title>Re: Sending a non-active view via email?</title><link>https://www.infopathdev.com:443/forums/thread/88884.aspx</link><pubDate>Thu, 11 Apr 2013 19:51:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88884</guid><dc:creator>ebonymb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88884.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=88884</wfw:commentRss><description>&lt;p&gt;Hi Hillary,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m skiddish about adding a section to my template to be used as an Email view.&amp;nbsp; Wouldn&amp;#39;t this cause problems in the schema for forms published using an older template?&lt;/p&gt;</description></item><item><title>Re: Sending a non-active view via email?</title><link>https://www.infopathdev.com:443/forums/thread/84109.aspx</link><pubDate>Thu, 01 Nov 2012 19:01:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84109</guid><dc:creator>MegantheNewbie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84109.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=84109</wfw:commentRss><description>&lt;p&gt;Ok, got that done. Leads me to another question - In order for this solution to work both sections (the data entry section and the email section) need to be two separate sections, correct? Is there a way I can copy all the sections I currently have that I want to put into a larger section that will be my &amp;#39;data entry&amp;#39; section and keep the formatting? I can&amp;#39;t seem to get it to work.&lt;/p&gt;</description></item><item><title>Re: Sending a non-active view via email?</title><link>https://www.infopathdev.com:443/forums/thread/84103.aspx</link><pubDate>Thu, 01 Nov 2012 18:10:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84103</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84103.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=84103</wfw:commentRss><description>You can just add it on the data source task pane - if IP 2010, under the Data tab on the ribbon, make sure &amp;quot;Show Fields&amp;quot; is selected - your data source will display in a task pane on the right. Right click the group where you want to add the field and select &amp;quot;Add&amp;quot; - then you can type in a name for the field and select a data type (use True/False here).</description></item><item><title>Re: Sending a non-active view via email?</title><link>https://www.infopathdev.com:443/forums/thread/84102.aspx</link><pubDate>Thu, 01 Nov 2012 18:04:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84102</guid><dc:creator>MegantheNewbie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84102.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=84102</wfw:commentRss><description>&lt;p&gt;Thank you Hilary, &lt;/p&gt;
&lt;p&gt;I&amp;#39;m going to try your solution. Could you provide a bit more detail on adding&amp;nbsp;the boolean field &amp;quot;isEmailing&amp;quot;? Is it a field I can insert using the &amp;#39;Insert Controls&amp;#39; menu or is there some other way I should do it? I don&amp;#39;t want it to be visible on the form. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks again for your help!&lt;/p&gt;
&lt;p&gt;-Megan&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Sending a non-active view via email?</title><link>https://www.infopathdev.com:443/forums/thread/83964.aspx</link><pubDate>Fri, 26 Oct 2012 22:26:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83964</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83964.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=83964</wfw:commentRss><description>&lt;p&gt;So, if you read the beginning of this thread - if you switch views in a form and try to email it in the same ruleset (i.e., all in the same button click) your end user will get a blank email. I&amp;#39;ve laid out an alternate suggestion above.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve never had a form that switched views in the same action as sending an email &lt;em&gt;not&lt;/em&gt; send a blank email - so I&amp;#39;m super surpised this was ever working for you prior to making your rule change....&lt;/p&gt;</description></item><item><title>Re: Sending a non-active view via email?</title><link>https://www.infopathdev.com:443/forums/thread/83963.aspx</link><pubDate>Fri, 26 Oct 2012 22:20:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83963</guid><dc:creator>MegantheNewbie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83963.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=83963</wfw:commentRss><description>&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Here&amp;nbsp;is one&amp;nbsp;of the 4 rules&amp;nbsp;in my submit button. All are set up similarly, the only difference being&amp;nbsp;the data connections submitted to, based on what is contained in the form.&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Function: Set a field&amp;#39;s value: field Submit_Date = today()&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Function: Set a field&amp;#39;s value: field Submit_Status = &amp;quot;Submitted&amp;quot;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Submit using data connection: SharePoint Library Submit&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Switch to view: Approved&lt;/span&gt;&lt;u&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Submit using data connection: HRG Notification&lt;/span&gt;&lt;/u&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Submit using data connection: CES&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Submit using data connection: Email confirm to submitter&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Switch to view: Submitted&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;The form switches views the first time so that it cleanly displays in the emails that are subsequently sent out using the data connections (that is my assumption – I did not set this part up, it’s part of what I inherited). The form switches views the second time to ‘submitted’ so that the submitter gets an instant confirmation that the form was successfully completed &amp;amp; sent away. I also inherited this – but I’ve heard that before it was in place the test group would submit the same form numerous times because they weren’t sure it was sent to anyone but themselves.&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;The underlined data connection is the new one. It is based on a contact selector set up like this:&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Group: HRG&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Repeating Group: Person&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&lt;span style="mso-tab-count:2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Field: DisplayName&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&lt;span style="mso-tab-count:2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Field: AccountID&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&lt;span style="mso-tab-count:2;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Field: AccountType&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;It is linked to a secondary data source Context:&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;siteUrl&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;provideAllFields&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;isStartWorkflow&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&lt;span style="mso-tab-count:1;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;isRunAtServer&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;I think the last 3 are supposed to be Boolean but when I click the ‘show details’ checkbox they all show ‘string’. Perhaps that’s why the HRGs aren’t receiving a copy of the form via email? &lt;/span&gt;
&lt;p&gt;Thanks, &lt;/p&gt;
&lt;p&gt;Megan&lt;/p&gt;</description></item></channel></rss>