<?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: Emailing a form</title><link>https://www.infopathdev.com:443/forums/thread/13462.aspx</link><pubDate>Tue, 23 Aug 2005 01:41:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13462</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13462.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13462</wfw:commentRss><description>Well, button controls won't be read-only since they don't have a text input field. For the others, you should be able to click properties on the text field and set to read-only.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Emailing a form</title><link>https://www.infopathdev.com:443/forums/thread/13461.aspx</link><pubDate>Mon, 22 Aug 2005 20:46:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13461</guid><dc:creator>drobins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13461.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13461</wfw:commentRss><description>just wondering if i can set a section to read only rather than going through and setting each individual control to read only based on the value of the true/false field</description></item><item><title>Re: Emailing a form</title><link>https://www.infopathdev.com:443/forums/thread/13460.aspx</link><pubDate>Mon, 22 Aug 2005 20:02:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13460</guid><dc:creator>drobins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13460.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13460</wfw:commentRss><description>Unfortunately the only option i'm given with that is to hide the section. I want the section to be visible but read only.</description></item><item><title>Re: Emailing a form</title><link>https://www.infopathdev.com:443/forums/thread/13459.aspx</link><pubDate>Mon, 22 Aug 2005 19:38:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13459</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13459.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13459</wfw:commentRss><description>Hi DRobins&lt;br /&gt;Put the control in a section. Double click on the section and go to Display tab. Click conditions and add a condition based on the true-false field you have in your main data source.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: Emailing a form</title><link>https://www.infopathdev.com:443/forums/thread/13458.aspx</link><pubDate>Mon, 22 Aug 2005 16:53:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13458</guid><dc:creator>drobins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13458.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13458</wfw:commentRss><description>I was able to figure out how to email....not what i can't seem to figure out is how to make the first section read only.&lt;br /&gt;&lt;br /&gt;I have two sections on the form. The first section contains 4 fields and a submit button.&lt;br /&gt;&lt;br /&gt;the second section has 2 fields and a submit button.&lt;br /&gt;&lt;br /&gt;When the first submit button is clicked it will make the first section read only and leave the secnd section editable.&lt;br /&gt;&lt;br /&gt;could someone provide some sample code for how to do this. I figure it would be having the submit button change the value of a field to true or false but i can't seem to hide a control. is there a way to set a variable in code then have the button click change the value and then if the value of that variable to true then set the section to read only?</description></item><item><title>Re: Emailing a form</title><link>https://www.infopathdev.com:443/forums/thread/13457.aspx</link><pubDate>Fri, 19 Aug 2005 17:44:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13457</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13457.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13457</wfw:commentRss><description>What is the error message that you are getting when you try to open the attachment?&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Re: Emailing a form</title><link>https://www.infopathdev.com:443/forums/thread/13456.aspx</link><pubDate>Fri, 19 Aug 2005 13:08:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13456</guid><dc:creator>drobins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13456.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13456</wfw:commentRss><description>Thanks for the response.&lt;br /&gt;&lt;br /&gt;I used the above code and was able to attach the form. But now i can't open the form from the email&lt;br /&gt;&lt;br /&gt;any ideas?</description></item><item><title>Re: Emailing a form</title><link>https://www.infopathdev.com:443/forums/thread/13455.aspx</link><pubDate>Thu, 18 Aug 2005 03:44:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13455</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13455.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13455</wfw:commentRss><description>Here is the code for setting the attachment name,&lt;br /&gt;&lt;br /&gt;//Get a refenrence to the email data connection&lt;br /&gt;var oEmail = XDocument.DataAdapters("Email Connection name");&lt;br /&gt;oEmail.To = "To address";&lt;br /&gt;oEmail.CC = "cc address";&lt;br /&gt;oEmail.Subject	= "subject";&lt;br /&gt;oEmail.Intro	= "Email body";&lt;br /&gt;&lt;br /&gt;//Setting the attachment name sends whole form xml as an attachment to the email&lt;br /&gt;oEmail.AttachmentFileName = getNodeValue("Name of the file to be attached");&lt;br /&gt;//Next lines sends the email&lt;br /&gt;oEmail.Submit();&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Re: Emailing a form</title><link>https://www.infopathdev.com:443/forums/thread/13454.aspx</link><pubDate>Wed, 17 Aug 2005 20:17:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13454</guid><dc:creator>drobins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13454.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13454</wfw:commentRss><description>Sorry,&lt;br /&gt;&lt;br /&gt;I just started using infopath and i am kind of lost.&lt;br /&gt;&lt;br /&gt;can you give an example of script for attaching the form when the user clicks the submit button. I would prefer the code method.</description></item><item><title>Re: Emailing a form</title><link>https://www.infopathdev.com:443/forums/thread/13453.aspx</link><pubDate>Wed, 17 Aug 2005 20:12:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13453</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13453.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13453</wfw:commentRss><description>If you set the attachment name to the Email connection then the form will be sent as an Attachment. &lt;br /&gt;You can set attachment name when you create the Email data connection, it is the last textbox in the Email dataconnection wizard.&lt;br /&gt;&lt;br /&gt;You can also do this in the code. EmailAdapter has an AttachmentName property, you can set the attachment name to that field.&lt;br /&gt;&lt;br /&gt;Hope this Helps!&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Re: Emailing a form</title><link>https://www.infopathdev.com:443/forums/thread/13452.aspx</link><pubDate>Wed, 17 Aug 2005 19:05:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13452</guid><dc:creator>drobins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13452.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13452</wfw:commentRss><description>how do i attach the form to the email. When the first person clicks submit I want it to attach the form to an email make that section read only and email to the next person. So the next person can open the form and fill out the next section?</description></item><item><title>Re: Emailing a form</title><link>https://www.infopathdev.com:443/forums/thread/13451.aspx</link><pubDate>Wed, 17 Aug 2005 19:00:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13451</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13451.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13451</wfw:commentRss><description>Hi Drobins, &lt;br /&gt;Welcome to the Forum!&lt;br /&gt;Yes you can do that. You need to maintain a field in the xml that says that, that particular  section is already filled. For ex:- isFilled atribute to the first two sections. And set isFilled to true when user clicks on submit button.&lt;br /&gt;&lt;br /&gt;Hope this Helps!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Emailing a form</title><link>https://www.infopathdev.com:443/forums/thread/12527.aspx</link><pubDate>Wed, 17 Aug 2005 18:12:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12527</guid><dc:creator>drobins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12527.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12527</wfw:commentRss><description>I have a form with three sections 2 sections have submit buttons. What i would like to do is When the first section is filled out the first submit button is clicked it will make the first section read only then attach the form to an email and send it off to the next person, who will then fill out the next section click the second submit button which will then make the second section read only and attach the file to an email for the final review.&lt;br /&gt;&lt;br /&gt;Can this be done?</description></item></channel></rss>