<?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: data validation using custom pattern</title><link>https://www.infopathdev.com:443/forums/thread/46961.aspx</link><pubDate>Mon, 14 Sep 2009 21:41:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46961</guid><dc:creator>Mel Clemente</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46961.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=46961</wfw:commentRss><description>&lt;p&gt;You&amp;#39;ll get a red asterisk in the control if none of the data validations are met. One thing to remember, rules only fire when the field&amp;#39;s&amp;nbsp;(within&amp;nbsp;the rules)&amp;nbsp;value changes. Therefore, N will only become NA, if you manually select Z from your A dropdown. If you wish this rule to fire automatically when you open or preview the form, you must set it in &amp;quot;Open Rules&amp;quot; instead. You can do so by going to InfoPath&amp;#39;s Tools menu &amp;gt; Form Options &amp;gt; Rules.&lt;/p&gt;</description></item><item><title>Re: data validation using custom pattern</title><link>https://www.infopathdev.com:443/forums/thread/46960.aspx</link><pubDate>Mon, 14 Sep 2009 21:16:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46960</guid><dc:creator>bsieloff</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46960.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=46960</wfw:commentRss><description>&lt;p&gt;Thank you for the response.&amp;nbsp; 1 more variable to throw into the mix that I did not explain before:&lt;/p&gt;
&lt;p&gt;if A=Z&lt;/p&gt;
&lt;p&gt;N=&amp;quot;Non Applicable&amp;quot;&amp;nbsp; (or blank)&lt;/p&gt;
&lt;p&gt;If I use the &amp;quot;OR&amp;quot; statement in the validation then the field is forced to not be blank (red star in field).&amp;nbsp; I tried creating a rule that if A=Z then to set N to a default of &amp;quot;NA&amp;quot; but for some reason it never sets &amp;quot;N&amp;quot; to the letters &amp;quot;NA&amp;quot;&lt;/p&gt;</description></item><item><title>Re: data validation using custom pattern</title><link>https://www.infopathdev.com:443/forums/thread/46956.aspx</link><pubDate>Mon, 14 Sep 2009 20:42:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46956</guid><dc:creator>Mel Clemente</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46956.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=46956</wfw:commentRss><description>&lt;p&gt;Hello and welcome to the forum!&lt;/p&gt;
&lt;p&gt;For your second data validation (A=Y), you can actually separate your two conditions (7 or 8) using &amp;quot;OR&amp;quot; in the dropdown. So in this data validation, you will have a total of three conditions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;A = Y (and)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;N = 7/d/d/d/d/d/d (or)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;N = 8/d/d/d/d/d/d&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Hope that helps!&lt;/p&gt;</description></item><item><title>data validation using custom pattern</title><link>https://www.infopathdev.com:443/forums/thread/46950.aspx</link><pubDate>Mon, 14 Sep 2009 19:11:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46950</guid><dc:creator>bsieloff</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46950.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=46950</wfw:commentRss><description>&lt;p&gt;Greetings,&lt;/p&gt;
&lt;p&gt;I am using data validation and I want to compare against a certain pattern.&amp;nbsp; My requirements are: &lt;/p&gt;
&lt;p&gt;Field A is a drop down list&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If field &amp;quot;A&amp;quot; = &amp;quot;X&amp;quot; then field &amp;quot;N&amp;quot; must start with the number 4 and be 7 characters long.&amp;nbsp; EX: field &amp;quot;A&amp;quot; = &amp;quot;X&amp;quot; ; &amp;quot;N&amp;quot; = &amp;quot;4123456&amp;quot; :: &lt;/p&gt;
&lt;p&gt;that part does not seem to bad..&amp;nbsp; my custom pattern = 4/d/d/d/d/d/d&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;this is the part that is stumping me:&amp;lt;&amp;lt;&lt;/p&gt;
&lt;p&gt;If Field &amp;quot;A&amp;quot;=&amp;quot;Y&amp;quot; then field &amp;quot;N&amp;quot; can start with either a &amp;quot;7&amp;quot; or &amp;quot;8&amp;quot; and must be eight characters long: EX. field &amp;quot;A&amp;quot;=&amp;quot;Y&amp;quot; N=81234567 -&amp;gt;OK&amp;nbsp; or N=71234567 -&amp;gt;OK&lt;/p&gt;
&lt;p&gt;How do I&amp;nbsp;validate the first character in a custom pattern to be either (7 or 8)?&amp;nbsp; ie: (7or8)/d/d/d/d/d/d/d&lt;/p&gt;
&lt;p&gt;Thanks for your help&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>