<?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: Field value to subject line</title><link>https://www.infopathdev.com:443/forums/thread/41159.aspx</link><pubDate>Thu, 30 Apr 2009 14:42:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41159</guid><dc:creator>Crazy Vinnie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41159.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=41159</wfw:commentRss><description>&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;font face="Lucida Console"&gt;Thanks for the fast replies everyone. I came up with the same solution as Jimmy after reading Madhuri’s reply.&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 10pt;"&gt;&lt;font face="Lucida Console"&gt;Thanks a lot.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Field value to subject line</title><link>https://www.infopathdev.com:443/forums/thread/41156.aspx</link><pubDate>Thu, 30 Apr 2009 14:36:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41156</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41156.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=41156</wfw:commentRss><description>&lt;p&gt;I believe it would actually be &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Email.Subject = &lt;strong&gt;XDocument&lt;/strong&gt;.DOM.selectSingleNode(&amp;quot;&lt;font face="Lucida Console"&gt;/my:myFields/my:field6&amp;quot;&lt;/font&gt;).text;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;without the &amp;quot;this,&amp;quot; but otherwise that should work if the XPath is correct.&lt;/p&gt;</description></item><item><title>Re: Field value to subject line</title><link>https://www.infopathdev.com:443/forums/thread/41152.aspx</link><pubDate>Thu, 30 Apr 2009 14:09:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41152</guid><dc:creator>madhuri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41152.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=41152</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;To set the data of field6 to&amp;nbsp;Email subject&amp;nbsp;&lt;/p&gt;
&lt;p&gt;add below line &lt;/p&gt;
&lt;p&gt;Email.Subject = thisXDocument.DOM.selectSingleNode(&amp;quot;&lt;font face="Lucida Console"&gt;/my:myFields/my:field6&amp;quot;&lt;/font&gt;).text;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Field value to subject line</title><link>https://www.infopathdev.com:443/forums/thread/41149.aspx</link><pubDate>Thu, 30 Apr 2009 13:59:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:41149</guid><dc:creator>Crazy Vinnie</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/41149.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=41149</wfw:commentRss><description>&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Lucida Console"&gt;Beginner, using IP 2003&lt;/font&gt;&lt;/p&gt;&lt;font face="Lucida Console"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Lucida Console"&gt;I have added a button to email my form using a simple code.&lt;/font&gt;&lt;/p&gt;&lt;font face="Lucida Console"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Lucida Console"&gt;function SendEmailBtn::OnClick(Event)&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Lucida Console"&gt;{&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Lucida Console"&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; &lt;/span&gt;var Email = Application.ActiveWindow.MailEnvelope;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;span style="mso-tab-count:2;"&gt;&lt;font face="Lucida Console"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Lucida Console"&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; &lt;/span&gt;Email.To = &amp;quot;&amp;quot;;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Lucida Console"&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; &lt;/span&gt;Email.Subject = &amp;quot;&amp;quot;;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Lucida Console"&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; &lt;/span&gt;Email.Visible = true;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Lucida Console"&gt;}&lt;/font&gt;&lt;/p&gt;&lt;font face="Lucida Console"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Lucida Console"&gt;I need the subject line to populate from a text field within the form. I believe the path for the field is “/my:myFields/my:field6”. Being new to InfoPath, I could have this wrong. &lt;/font&gt;&lt;/p&gt;&lt;font face="Lucida Console"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNoSpacing" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Lucida Console"&gt;If anyone could edit my code to show me how to accomplish what I need that would be great.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>