<?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: Data Validation on Sometimes Hidden Field</title><link>https://www.infopathdev.com:443/forums/thread/81009.aspx</link><pubDate>Wed, 25 Jul 2012 16:36:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81009</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81009.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=81009</wfw:commentRss><description>&lt;p&gt;Yeah, a lot of times I change the first drop down to &amp;quot;The expression&amp;quot; and sort of put my own XPath together, because my brain requires lots of parentheses to understand this stuff. In general, I assume that if I use an &amp;quot;OR&amp;quot; condition in IP, I have to make sure I have an entire expression on each side of it. We include the Employee Number is blank because once it has data in it, it is valid. I use it on either side of the OR because I am pretty sure that if I do this -&amp;nbsp;ConditionA AND ConditionB OR ConditionC - InfoPath will do this - (ConditionA AND ConditionB) OR ConditionC.&lt;/p&gt;</description></item><item><title>Re: Data Validation on Sometimes Hidden Field</title><link>https://www.infopathdev.com:443/forums/thread/81006.aspx</link><pubDate>Wed, 25 Jul 2012 16:07:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81006</guid><dc:creator>alexj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81006.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=81006</wfw:commentRss><description>&lt;p&gt;Splendid, that works!&lt;/p&gt;
&lt;p&gt;Could you possibly explain a bit how you figured that out?&amp;nbsp; I don&amp;#39;t quite understand how the multiple part condition works especially as there are no parentheses&lt;/p&gt;</description></item><item><title>Re: Data Validation on Sometimes Hidden Field</title><link>https://www.infopathdev.com:443/forums/thread/81001.aspx</link><pubDate>Wed, 25 Jul 2012 15:50:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:81001</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/81001.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=81001</wfw:commentRss><description>&lt;p&gt;No need to &lt;em&gt;ever&lt;/em&gt; apologize for a question - they are all valid.&lt;/p&gt;
&lt;p&gt;So, you need to add data validation to your Employee Number field - first, add a validation rule. The rule will have the following conditions:&lt;/p&gt;
&lt;p&gt;Employee Number is blank&lt;br /&gt;AND&lt;br /&gt;Purposes is equal to Training&lt;br /&gt;OR&lt;br /&gt;Employee Number is blank&lt;br /&gt;AND&lt;br /&gt;Purposes is equal to Conference&lt;/p&gt;
&lt;p&gt;For InfoPath 2010, you can add a validation rule to the Employee Number field by selecting the field in the Data Fields Task Pane or by clicking on a control bound to the field and selecting Manage Rules - Validation rule can be selected just like formatting or action. Let me know if you need more information.&lt;/p&gt;</description></item><item><title>Data Validation on Sometimes Hidden Field</title><link>https://www.infopathdev.com:443/forums/thread/80998.aspx</link><pubDate>Wed, 25 Jul 2012 15:39:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80998</guid><dc:creator>alexj</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80998.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=80998</wfw:commentRss><description>&lt;p&gt;I apologize for this question, as I have already seen an answer that seems quite intuitive&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/26cc5f3e-62d1-4562-a53e-82c8e045305f/"&gt;http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/26cc5f3e-62d1-4562-a53e-82c8e045305f/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, I can&amp;#39;t quite seem to wrap my head around how to actually do it&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The specific case is that I need to collect the employee number&amp;nbsp;only when employee is going to be training, but when they are training it must be completed&lt;/p&gt;
&lt;p&gt;&amp;nbsp;There is a dropdown box with a list of &amp;#39;Purposes&amp;#39;, which&amp;nbsp;include Training and Conference.&lt;/p&gt;
&lt;p&gt;The section containing the employee number field is set to &amp;#39;Hide when Purposes&amp;nbsp;not equal training&amp;nbsp;AND Purposes&amp;nbsp;not equal Conference&amp;#39; using a conditional formatting rule&lt;/p&gt;
&lt;p&gt;&amp;nbsp;So I need to set data validation to . . . &lt;/p&gt;
&lt;p&gt;(Purposes Is Equal To Training OR Purposes Is Equal To Conference)&amp;nbsp;then Employee Number should not be blank&lt;/p&gt;
&lt;p&gt;&amp;nbsp;But I am not getting how to actually do this&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Could someone help guide me how to set this up?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>