<?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 Submit Button After Submitting</title><link>https://www.infopathdev.com:443/forums/thread/94924.aspx</link><pubDate>Fri, 27 Dec 2013 15:43:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94924</guid><dc:creator>leoffneym</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94924.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94924</wfw:commentRss><description>&lt;p&gt;We had a similar problem.&lt;/p&gt;&lt;p&gt;There are two ways that I can think of as a fix.&amp;nbsp; One involves disabling the submit button until all validation has been passed.&amp;nbsp; The other involes adding a second subimtted field. Both ways work.&lt;/p&gt;&lt;p&gt;We have one form that has alot of validation on that users can miss.  Our problem was that if the form failed validation, the submitted field was still getting populated and disabling fields.&lt;/p&gt;&lt;p&gt;What we did to fix it was to have two fields for submitting (submitted1 and submitted2),&amp;nbsp;submitted1 gets set upon submitting and&amp;nbsp;submitted2 gets set after opening a form that has been submitted.&lt;/p&gt;&lt;p&gt;We solved it by adding a second bool field and using a rule on form open that checked to see if submitted1 was true, if yes, then set submitted2 to true.&amp;nbsp; We then used submitted2 as the field that would disable other fields.&lt;/p&gt;</description></item><item><title>Disable Submit Button After Submitting</title><link>https://www.infopathdev.com:443/forums/thread/94922.aspx</link><pubDate>Fri, 27 Dec 2013 14:38:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94922</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94922.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=94922</wfw:commentRss><description>I have a Boolean field called &lt;b&gt;submitted&lt;/b&gt;.  I have a rule that sets the field to 1 upon submit.  This process works perfectly fine....except... It only works depending on where I place it in the list of rules.
&lt;br /&gt;&lt;br /&gt;
Some other details: I&amp;#39;m sending this information to SharePoint.  Using browser-based forms.  Several validation fields.
&lt;br /&gt;&lt;br /&gt;
So upon submit:
1. Sets Report Status&lt;br /&gt;
2. Creates a report number&lt;br /&gt;
3. Submits data&lt;br /&gt;
4. Sets submitted=1&lt;br /&gt;
5. Sends out email&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
If I code it this way the submitted rule doesn&amp;#39;t get set.  However, if I switch the order to:
&lt;br /&gt;&lt;br /&gt;
1. Sets Report Status&lt;br /&gt;
2. Creates a report number&lt;br /&gt;
3. Sets submitted=1&lt;br /&gt;
4. Submits data&lt;br /&gt;
5. Sends out email&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
submitted is set to 1 BUT its set regardless if the form validates.  I need the &lt;b&gt;submitted&lt;/b&gt; field to set, iff the form is actually submitted.</description></item></channel></rss>