Rules with and/or statement combination? - InfoPath Dev
in

InfoPath Dev

Rules with and/or statement combination?

Last post 09-16-2013 11:03 PM by monk_mst. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 09-15-2013 04:59 AM

    Rules with and/or statement combination?

    I want to change the formatting of a cell based on the conditions on the table cells that follows.

    It goes like this


    STATUS CELL

    column1       column2

    Cell1           Cell2"YES/NO"

    Cell3           Cell4"YES/NO"


    If a name is entered in column 1 then it checks whether column 3 is YES then changes the status of the cell to green else it stays red.

    So I used the following code:

    cell1 is blank and cell2 is blank or
    cell1 is not blank and cell2 is equal to YES and
    cell3 is not blank and cell4 is equal to YES

    then status cell is green.

    I cant seem to get the above to work and if someone could guide me on where I am wrong I would be really grateful.

    Regards,

    Monk

  • 09-15-2013 02:36 PM In reply to

    Re: Rules with and/or statement combination?

    Hi Monk_mst and welcome,

    I need to look at your form. Can you reply and attach it in the options tab?

    Thanks!

    Patrick Halstead
    Project Manager at Qdabra
  • 09-15-2013 09:43 PM In reply to

    Re: Rules with and/or statement combination?

     Hi Patrick,

     Thanks for your support in advance.

     Regards,

     Monk

  • 09-16-2013 11:25 AM In reply to

    Re: Rules with and/or statement combination?

     The logic will be a lot cleaner if you use a repeating structure and keep track of the Pass/Fail values for each row. Please have a look at the attached form. I populated the table using the Default Values dialog accessible from the Data tab in InfoPath 2010.

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 09-16-2013 11:03 PM In reply to

    Re: Rules with and/or statement combination?

    Thanks Jimmy,

    I think I understand the logic of what you have designed and it does make a lot of sense. This is my first attempt at a form through trial/error, please bear my ignorance if you can. Also, looking at the rules you have applied I have a lot to learn.

    Thanks again,

    Monk

Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.