If/else conditions on rules - InfoPath Dev
in

InfoPath Dev

If/else conditions on rules

Last post 11-18-2009 08:51 PM by Qazi Anis. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-18-2009 11:29 AM

    If/else conditions on rules

    Hi guys

    I need to do validation on a field, but the validation being done is dependant on whether or not another field has a value.

    How would I do an if/else statement using rules? The rules are carried out on a button click.

    The statement I want to execute is:

    if Field1 is not blank then
    {
    do validation
    }
    else
    {
    don't do validation
    }


    I thought of adding a rule with conditions to check if field1 is blank, and then I just tick "Stop processing rules when this rule finishes". And then I put a rule below that rule that does the validation. This won'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.

    Any suggestions?
  • 11-18-2009 08:51 PM In reply to

    Re: If/else conditions on rules

    why dont u simply use data validation on that field

    in the data validations insert this condition also like

    if field1 is not equal to "your validations" and

    field2 is not blank

     

     

    Qazi Anis
    Technical Architect
    Bitwise Inc
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.