<?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>Data Validation Question</title><link>https://www.infopathdev.com:443/forums/thread/65514.aspx</link><pubDate>Mon, 28 Mar 2011 18:34:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65514</guid><dc:creator>dlcj21</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65514.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=65514</wfw:commentRss><description>&lt;p&gt;I was wondering if it was possible to do Data Validation against a list of values via the infopath ui instead of setting up a data validation for each value?&lt;/p&gt;
&lt;p&gt;For example I have a requirement that if a value of field1 is equal to a value on a list of&amp;nbsp;n number&amp;nbsp;of values (1, 2, 3, etc), then field2 is required.&lt;/p&gt;
&lt;p&gt;What I&amp;#39;ve done is set up data validation conditions on the field2 that looks as follows:&lt;br /&gt;IF Field2 is blank AND &lt;br /&gt;Field1 is equal to 1 OR&lt;br /&gt;IF Field2 is blank AND&lt;br /&gt;Field1 is equal to 2&lt;br /&gt;&lt;br /&gt;Screen Tip: Field2 Required&lt;br /&gt;Message: Please enter a value in Field2 &lt;/p&gt;
&lt;p&gt;This is ok for a few conditions but i have a list of 50 values.&amp;nbsp; There&amp;#39;s got to be a better way then to write 25 conditions (since you&amp;#39;re only limited to 5 lines to compare per conditions) on the field.&amp;nbsp; I added the 25 conditions so that I could get the requirement met, I&amp;#39;m just looking for a better way to do this if I have a similar requirement in the future to save some time.&lt;/p&gt;</description></item></channel></rss>