<?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: If/else conditions on rules</title><link>https://www.infopathdev.com:443/forums/thread/49219.aspx</link><pubDate>Thu, 19 Nov 2009 04:51:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49219</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49219.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49219</wfw:commentRss><description>&lt;p&gt;why dont u simply use data validation on that field &lt;/p&gt;
&lt;p&gt;in the data validations insert this condition also like &lt;/p&gt;
&lt;p&gt;if field1 is not equal to &amp;quot;your validations&amp;quot; and &lt;/p&gt;
&lt;p&gt;field2 is not blank&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>If/else conditions on rules</title><link>https://www.infopathdev.com:443/forums/thread/49208.aspx</link><pubDate>Wed, 18 Nov 2009 19:29:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49208</guid><dc:creator>Nanette</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49208.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=49208</wfw:commentRss><description>Hi guys
&lt;br /&gt;
&lt;br /&gt;
I need to do validation on a field, but the validation being done is dependant on whether or not another field has a value.
&lt;br /&gt;
&lt;br /&gt;
How would I do an if/else statement using rules?  The rules are carried out on a button click.
&lt;br /&gt;
&lt;br /&gt;
The statement I want to execute is:
&lt;br /&gt;
&lt;br /&gt;
if Field1 is not blank then&lt;br /&gt;
{&lt;br /&gt;
do validation&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
don&amp;#39;t do validation&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I thought of adding a rule with conditions to check if field1 is blank, and then I just tick &amp;quot;Stop processing rules when this rule finishes&amp;quot;.  And then I put a rule below that rule that does the validation.  This won&amp;#39;t work in my case, though, because I have other fields that need validating too, with the same rules, which would mean they never get executed, unless the first rule on the checkboxes fail.
&lt;br /&gt;
&lt;br /&gt;
Any suggestions?</description></item></channel></rss>