<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Disable when the InfoPath form is attached ***Need urgent help***</title><link>https://www.infopathdev.com:443/forums/thread/27046.aspx</link><pubDate>Thu, 06 Mar 2008 13:54:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27046</guid><dc:creator>aoztuncer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27046.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=27046</wfw:commentRss><description>&lt;p&gt;Thank you..I&amp;#39;ll try this.&lt;/p&gt;</description></item><item><title>Re: Disable when the InfoPath form is attached ***Need urgent help***</title><link>https://www.infopathdev.com:443/forums/thread/27009.aspx</link><pubDate>Wed, 05 Mar 2008 16:03:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27009</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27009.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=27009</wfw:commentRss><description>&lt;p&gt;All you need is a field in your form to track form state.&lt;/p&gt;
&lt;p&gt;In the actions before submit set this field to submitted or whatever is appropriate.&lt;/p&gt;
&lt;p&gt;Then have another view which is a read-only copy.&amp;nbsp; In 2007 this is very easy, copy one view to another&amp;nbsp;and then mark the second read-only in the view properties. Iin 2003 convert all the fields to expression boxes.&lt;/p&gt;
&lt;p&gt;Create an open rule that checks state and if it is submited switch to the readonly view.&lt;/p&gt;</description></item><item><title>Disable when the InfoPath form is attached ***Need urgent help***</title><link>https://www.infopathdev.com:443/forums/thread/27006.aspx</link><pubDate>Wed, 05 Mar 2008 14:37:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:27006</guid><dc:creator>aoztuncer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/27006.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=27006</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I use the following function to send emails in my form.&lt;/p&gt;
&lt;p&gt;function sendEmail(to, cc, subject, body, attachment) &lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;try &lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;var appItem; &lt;/p&gt;
&lt;p&gt;var mailItem; &lt;/p&gt;
&lt;p&gt;appItem = new ActiveXObject(&amp;quot;Outlook.Application&amp;quot;); &lt;/p&gt;
&lt;p&gt;mailItem = appItem.CreateItem(0); &lt;/p&gt;
&lt;p&gt;mailItem.Recipients.Add(to); &lt;/p&gt;
&lt;p&gt;mailItem.Subject = subject; &lt;/p&gt;
&lt;p&gt;mailItem.Body = body;&lt;/p&gt;
&lt;p&gt;mailItem.Attachments.Add(attachment,1); &lt;/p&gt;
&lt;p&gt;mailItem.Display(); &lt;/p&gt;
&lt;p&gt;} &lt;/p&gt;
&lt;p&gt;catch(ex){ XDocument.UI.Alert(ex.description); &lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I pass &amp;quot;XDocument.URI&amp;quot; for attachment parameter, which attaches the form to the email. However, when the recipients open their emails, the form is still editable and they think they can change it and hit &amp;quot;Save&amp;quot; to update their forms. I want to disable the form when it is attached to an email so they will know that they cannot change anything on it. Is there a way to do it?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I welcome all your ideas.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item></channel></rss>