<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Validating fields on submit but not on save</title><link>https://www.infopathdev.com:443/forums/thread/101313.aspx</link><pubDate>Thu, 19 Feb 2015 14:58:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101313</guid><dc:creator>Tyler Hyland</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101313.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=101313</wfw:commentRss><description>That did it.</description></item><item><title>Re: Validating fields on submit but not on save</title><link>https://www.infopathdev.com:443/forums/thread/101252.aspx</link><pubDate>Mon, 16 Feb 2015 22:59:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101252</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101252.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=101252</wfw:commentRss><description>&lt;p&gt;Since the field is in a 2DS, unless you manually modify the 2DS schema, it will be a string datatype. Try setting to &amp;quot;false&amp;quot; (lowercase string) and &amp;quot;true&amp;quot; instead of the true and false functions, and try in your validation checking for the strings &amp;quot;true&amp;quot; or &amp;quot;false&amp;quot; rather than using the functions - does that make sense?&lt;/p&gt;</description></item><item><title>Validating fields on submit but not on save</title><link>https://www.infopathdev.com:443/forums/thread/101251.aspx</link><pubDate>Mon, 16 Feb 2015 20:36:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:101251</guid><dc:creator>Tyler Hyland</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/101251.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=101251</wfw:commentRss><description>I&amp;#39;ve prepared an infopath form that will be used for general auditing tasks.  The form includes header information (e.g. audit description, audit type, physical location of audit, date, time) and one or more audit findings in a repeating table.  The form includes two buttons, a Save button and a Submit button.  The Save button allows the user to temporarily &amp;quot;save&amp;quot; the form to the library to complete at a later time.  The Submit button &amp;quot;submits&amp;quot; the form to the library to be reviewed by a manager.  

From the standpoint of the forms library, the only difference between the two buttons is that the Submit button sets a Boolean field in the main data source to true, which will ultimately cause a workflow associated with the forms library to execute, sending the form to a manager for review.  I&amp;#39;m automatically generating the name of the form using the audit type, location, date, and time fields.  As such, those fields must be populated prior to saving or submitting.  There are other fields, however, that I would like to be optional if the user saves the form but required before the user can submit the form.  Specifically, the audit description and the findings.  

To handle this, I added an xml resource file as a secondary data source.  In it, I&amp;#39;ve included a &amp;quot;IsSubmitting&amp;quot; field.  On form load, I set the &amp;quot;IsSubmitting&amp;quot; field to false.  I then assign a validation rule to the audit description field with a condition of &amp;quot;Audit Description is blank and IsSubmitting = true&amp;quot;.  This condition should fail when the form is first loaded because I&amp;#39;ve set the &amp;quot;IsSubmitting&amp;quot; field to false.  However, the condition is returning true and I can&amp;#39;t seem to figure out why.  I&amp;#39;ve attached the form for your review.</description></item></channel></rss>