<?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 on multiple fields</title><link>https://www.infopathdev.com:443/forums/thread/67863.aspx</link><pubDate>Wed, 29 Jun 2011 06:26:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67863</guid><dc:creator>eliasen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67863.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67863</wfw:commentRss><description>&lt;p&gt;Hi, and thanks for your suggestions.&lt;/p&gt;
&lt;p&gt;I have chosen to just have the same validation condition on both fields for now.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Data Validation on multiple fields</title><link>https://www.infopathdev.com:443/forums/thread/67862.aspx</link><pubDate>Wed, 29 Jun 2011 06:25:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67862</guid><dc:creator>eliasen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67862.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67862</wfw:commentRss><description>&lt;p&gt;Hi, and thanks for the link.&lt;/p&gt;
&lt;p&gt;I am comfortable writing code and use it a lot in our current forms. However, for this form, right now I have just set the validation condition on both fields and that seems fine for now.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item><item><title>Re: Data Validation on multiple fields</title><link>https://www.infopathdev.com:443/forums/thread/67861.aspx</link><pubDate>Wed, 29 Jun 2011 05:51:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67861</guid><dc:creator>Kaoru Okumura</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67861.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67861</wfw:commentRss><description>&lt;p&gt;Hi eliasen, &lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;border-collapse:separate;orphans:2;widows:2;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="text-align:left;font-size:12px;" class="Apple-style-span"&gt;&lt;span class="Apple-converted-space"&gt;I&amp;#39;m not sure if this would fit your requirement;&amp;nbsp;however to control in &lt;strong&gt;one place&lt;/strong&gt; instead of&amp;nbsp;&lt;/span&gt;two places, I would set as follows:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;border-collapse:separate;orphans:2;widows:2;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="text-align:left;font-size:12px;" class="Apple-style-span"&gt;1) A&lt;/span&gt;&lt;/span&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;border-collapse:separate;orphans:2;widows:2;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="text-align:left;font-size:12px;" class="Apple-style-span"&gt;ssuming we have FieldA and FieldB. set Data Validation on FieldB by &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;border-collapse:separate;orphans:2;widows:2;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="text-align:left;font-size:12px;" class="Apple-style-span"&gt;2) adding validation &amp;quot;FieldB needs input when FieldA is not blank&amp;quot; with condition&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;border-collapse:separate;orphans:2;widows:2;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="text-align:left;font-size:12px;" class="Apple-style-span"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldB is blank and&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;border-collapse:separate;orphans:2;widows:2;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="text-align:left;font-size:12px;" class="Apple-style-span"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;FieldA is not blank&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;border-collapse:separate;orphans:2;widows:2;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="text-align:left;font-size:12px;" class="Apple-style-span"&gt;3) and add one more validation &amp;quot;FieldB should be blank when FieldA is blank&amp;quot; with condition&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;border-collapse:separate;orphans:2;widows:2;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="text-align:left;font-size:12px;" class="Apple-style-span"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; FieldB is not blank and&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal;border-collapse:separate;orphans:2;widows:2;-webkit-border-horizontal-spacing:0px;-webkit-border-vertical-spacing:0px;-webkit-text-decorations-in-effect:none;-webkit-text-size-adjust:auto;-webkit-text-stroke-width:0px;" class="Apple-style-span"&gt;&lt;span style="text-align:left;font-size:12px;" class="Apple-style-span"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FieldA is blank&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Then, we get validation error for FieldB with red * mark (for FieldA is non-blank and FieldB is blank), or red dotted link border (for FieldA is blank and FieldB is non-blank), and data validation is controlled in one place.&lt;/p&gt;&lt;p&gt;FieldA does not get validation error with this style, but I think users can fix the issue with given validation message. This does not work if users really&amp;nbsp;need error message&amp;nbsp;both on FieldA and FieldB, but&amp;nbsp; just as a potential way&amp;nbsp;you may consider.... &lt;/p&gt;&lt;p&gt;Another style would be&amp;nbsp;: hide&amp;nbsp;submit button if the condition is not satisfied. also condition should be clearly written in the form,&amp;nbsp;but it seems still tricky...&amp;nbsp;&lt;/p&gt;&lt;p&gt;thank you!&lt;/p&gt;</description></item><item><title>Re: Data Validation on multiple fields</title><link>https://www.infopathdev.com:443/forums/thread/67831.aspx</link><pubDate>Tue, 28 Jun 2011 17:20:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67831</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67831.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67831</wfw:commentRss><description>&lt;p&gt;I typically advise against using code when it&amp;#39;s not absolutely necessary, but if your validation logic does get convoluted and needs to involve many fields, I have demonstrated a way to alleviate this using code:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/19504/67770.aspx#67770"&gt;http://www.infopathdev.com/forums/p/19504/67770.aspx#67770&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;But I want to stress that this will only be worth your time if you are already comfortable code and having code in your form won&amp;#39;t cause any deployment problems.&lt;/p&gt;</description></item><item><title>Re: Data Validation on multiple fields</title><link>https://www.infopathdev.com:443/forums/thread/67821.aspx</link><pubDate>Tue, 28 Jun 2011 14:33:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67821</guid><dc:creator>eliasen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67821.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67821</wfw:commentRss><description>&lt;p&gt;Right. Rookie mistake... should&amp;#39;ve told you that I use InfoPath 2007.&lt;/p&gt;&lt;p&gt;Anyways, no it won&amp;#39;t take long. It just bugs me that now if the rule changes I need to remember to change it in two places. And of course, should a third or fourth field come into play, things get nasty :)&lt;/p&gt;&lt;p&gt;Thanks for the quick reply.&lt;/p&gt;&lt;p&gt;-- &lt;br /&gt;eliasen, BizTalk MVP - NOT InfoPath MVP! :-)&lt;/p&gt;</description></item><item><title>Re: Data Validation on multiple fields</title><link>https://www.infopathdev.com:443/forums/thread/67819.aspx</link><pubDate>Tue, 28 Jun 2011 14:08:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67819</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67819.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67819</wfw:commentRss><description>&lt;p&gt;In InfoPath 2010 you can copy rules (including validation rules) between fields, but in other versions, yes that&amp;#39;s basically what you need to do.&amp;nbsp; Shouldn&amp;#39;t take more than about 2 minutes though, should it?&lt;/p&gt;</description></item><item><title>Data Validation on multiple fields</title><link>https://www.infopathdev.com:443/forums/thread/67815.aspx</link><pubDate>Tue, 28 Jun 2011 13:24:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67815</guid><dc:creator>eliasen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67815.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=67815</wfw:commentRss><description>&lt;p&gt;Hi all&lt;/p&gt;
&lt;p&gt;I have two textboxes bound to a data source field each.&lt;/p&gt;
&lt;p&gt;I need data validation on the form that states that either both values must be blank or both must be not-blank. So I cannot have that one field is blank while the other is not blank.&lt;/p&gt;
&lt;p&gt;Do I really have to specify the exact same data validation rule on both fields/controls?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;-- &lt;br /&gt;eliasen&lt;/p&gt;</description></item></channel></rss>