<?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: Adding code to pre-defined "submit"</title><link>https://www.infopathdev.com:443/forums/thread/84689.aspx</link><pubDate>Fri, 23 Nov 2012 23:37:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84689</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84689.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=84689</wfw:commentRss><description>Hi - you can execute data connections in code - so I think the answer to your question is &amp;quot;yes&amp;quot; - if you submit via code, as long as you are using a built in IP data connection (which you are) your form shouldn&amp;#39;t have to be full trust - however, I&amp;#39;m not sure if any code you add that changes the focus may not require full trust.</description></item><item><title>Adding code to pre-defined "submit"</title><link>https://www.infopathdev.com:443/forums/thread/84545.aspx</link><pubDate>Mon, 19 Nov 2012 19:46:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:84545</guid><dc:creator>dandaoust</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/84545.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=84545</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m a first time poster, so I apologize if I leave out any information or have posted this in the wrong place.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using Infopath 2003 SP3 (with Office 2003) on Windows XP SP3.&amp;nbsp; My company won&amp;#39;t allow me to set-up a &amp;quot;certificate&amp;quot; to get my form to be &amp;quot;fully trusted&amp;quot;.&amp;nbsp; I need to submit the form through e-mail, so I&amp;#39;m stuck using the default submit options, by going in to Tools &amp;gt; Submitting Forms, and configuring the &amp;quot;E-mail&amp;quot; option...&lt;/p&gt;
&lt;p&gt;The issue I have is that we have an &amp;quot;Entrust&amp;quot; security component installed with Outlook which allows you to encrypt e-mails.&amp;nbsp; When sending any e-mail out of Outlook 2003, a &amp;quot;Confirm Message Security&amp;quot; window opens up, which allows you to encrypt the e-mail or digitally sign it... when you click send on it, the e-mail will send.&amp;nbsp; When I click my &amp;quot;Submit&amp;quot; button in my published form, the entrust window will open up (with&amp;nbsp;a window title of &amp;quot;Confirm Message Security&amp;quot;), but it opens up BEHIND my infopath form.&amp;nbsp; The only way to get it is to double click the Outlook icon (thus bringing forward any Outlook windows) or alt-tabbing.&amp;nbsp; This is obviously frustrating for users, especially the &amp;quot;less-than-IT-savy&amp;quot; ones.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;What I would like to do is get in to the Submit function and add a line to focus on the Entrust window that opens up, so it automatically goes to the front, but I&amp;#39;m not able to see the submit function in my script editor, since I&amp;#39;ve set it up using the Submitting Forms options in infopath.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m hoping that makes sense... if it does, is there a way for me to manually edit the function while still allowing infopath to generate the function concerning e-mails?&amp;nbsp; As I stated above, if I want to manually do the e-mailing with code, I need my form to be fully trusted... which won&amp;#39;t be possible.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you in advance for any advice!&lt;/p&gt;
&lt;p&gt;Dan&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>