<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Submit button problems</title><link>https://www.infopathdev.com:443/forums/thread/66166.aspx</link><pubDate>Wed, 27 Apr 2011 16:23:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66166</guid><dc:creator>dms.WebDev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66166.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=66166</wfw:commentRss><description>&lt;p&gt;I solved this by creating the following rule.&amp;nbsp; Hopefully it will help someone else who is a newbie.&lt;/p&gt;
&lt;p&gt;Note that although I have 11 required fields&amp;nbsp; I chose to set rules on only the 4 fields that are likely to be the culprits.&lt;/p&gt;
&lt;p&gt;Set Condition:&lt;br /&gt;&amp;nbsp;txtField1 is blank or &lt;br /&gt;&amp;nbsp;txtField2 is blank or &lt;br /&gt;&amp;nbsp;txtField3 is blank or &lt;br /&gt;&amp;nbsp;txtField4 is blank or &lt;/p&gt;
&lt;p&gt;Action:&lt;br /&gt;&amp;nbsp;Set a field&amp;#39;s value: Status = &amp;quot;Request&amp;quot;&lt;br /&gt;&amp;nbsp;Show dialog box message: &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;quot;Actual travel dates or Event dates are blank.&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;Please revisit section A1 and B1 to ensure START and END dates are entered and click Submit button again.&lt;br /&gt;&amp;nbsp;&amp;nbsp;(A message box will follow this message: &amp;quot;Some Rules were not applied&amp;quot; . Click OK to close it and continue.)&amp;quot;&lt;/p&gt;
&lt;p&gt;The problem with this will be if any of the other 7 required fields are blank, the submit button resorts to its old behavior so I may have to go back and add all fields to the rule.&amp;nbsp; There is a limit of 5 conditions on a rule so I suppose I would have to create 3 sets of rules to accomodate all 11 text fields being blank.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Also it might be better to remove the &amp;quot;Cannot be blank&amp;quot; check mark in a fields properties to avoid the 2nd message popping up (if a rule/condition catches it that is).&lt;/p&gt;</description></item><item><title>Submit button problems</title><link>https://www.infopathdev.com:443/forums/thread/66162.aspx</link><pubDate>Wed, 27 Apr 2011 15:21:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:66162</guid><dc:creator>dms.WebDev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/66162.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=66162</wfw:commentRss><description>&lt;p&gt;I have a button control that submits&amp;nbsp;a Travel Request&amp;nbsp;form to SharePoint 2007 form library.&amp;nbsp; A custom C# workflow is attached to the form once it&amp;#39;s submitted and is driven by the forms Status.&amp;nbsp; When the Submit button is clicked, the form&amp;#39;s Status changes to Awaiting Approval&amp;nbsp; and the button becomes hidden and other buttons (approve or reject) appear.&amp;nbsp; Other buttons come and go as the status changes.&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Back to the first button that appears, the Submit button: if there are Data Validation errors on submit button click, the form does not submit and the status still changes.&amp;nbsp; This is confusing to the user because they have to find and fix the error to submit the form, but the button goes away.&amp;nbsp; If they click the built in submit button from the menu bar, they are prompted to save the form&amp;nbsp; and name it which is not desirable because it will override the&amp;nbsp;auto generated file name in place.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;How do I write a rule that does this:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If data validation errors then don&amp;#39;t change the status and don&amp;#39;t submit the form&lt;/p&gt;</description></item></channel></rss>