<?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: Fix Validation Errors Before Running Actions</title><link>https://www.infopathdev.com:443/forums/thread/98192.aspx</link><pubDate>Mon, 30 Jun 2014 10:05:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98192</guid><dc:creator>stuck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98192.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=98192</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;Thanks for this. However, I managed to&amp;nbsp;add the Revision count elsewhere in the form&amp;nbsp;(when a radio button is selected). &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Fix Validation Errors Before Running Actions</title><link>https://www.infopathdev.com:443/forums/thread/98159.aspx</link><pubDate>Fri, 27 Jun 2014 09:05:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98159</guid><dc:creator>donstephen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98159.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=98159</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;This is indeed a tough problem.&amp;nbsp;A workaround I could think of is by using a&amp;nbsp;hidden Boolean field (false by default), and name the field isClicked, and set it to &lt;strong&gt;true&lt;/strong&gt; if the submit button is clicked. After adding this, add a condition to the RevisionCount rule which should only be triggered if isClicked is not equal to true. This way it would only run once.&lt;br /&gt;&lt;br /&gt;If you need to re-use the form, you can add a form load rule to set the isClicked value to false. This way, the RevisionCount rule could run again. Is this approach possible for you?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Fix Validation Errors Before Running Actions</title><link>https://www.infopathdev.com:443/forums/thread/98109.aspx</link><pubDate>Tue, 24 Jun 2014 18:02:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98109</guid><dc:creator>stuck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/98109.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=98109</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;I am stuck with a&amp;nbsp;very irritating problem. &lt;/p&gt;&lt;p&gt;I&amp;nbsp;have a&amp;nbsp;custom submit button which&amp;nbsp;Runs these actions:&lt;/p&gt;&lt;p&gt;------------------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;&lt;em&gt;Set a field&amp;#39;s value:&amp;nbsp;RevisionCount =&amp;nbsp;RevisionCount&amp;nbsp;+ 1 &lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;Submit&amp;nbsp;using a data connection: SharePoint Library Submit&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;Close this form: No Prompt&lt;/em&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;------------------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;I also&amp;nbsp;have a number of validation rules&amp;nbsp;which checks that fields are not blank etc.&lt;/p&gt;&lt;p&gt;The problem is, everytime I&amp;nbsp;click on Submit button and when there are validation errors, my RevisionCount is calculated (+1). This should not happen before all the validations have been corrected. Otherwise it keeps adding and adding everytime the submit button is pressed. &lt;/p&gt;&lt;p&gt;Please tell me there is a way around this as this is a big show stopper&amp;nbsp;for me to deploy this form.&lt;/p&gt;&lt;p&gt;Many thanks.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>