IF ELSE OR statment in InfoPath form - InfoPath Dev
in

InfoPath Dev

IF ELSE OR statment in InfoPath form

Last post 05-27-2014 12:18 PM by bphall74. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-27-2014 06:01 AM

    IF ELSE OR statment in InfoPath form


    Folks,

    I'm trying to figure out how to write the following statement in my InfoPath form

     

    IF (field1 = 1, or field2 = 1, or field3 = 1...)
       Set FieldX to 1
    Else if (Field1 = 2, or field2 = 2, or field3 = 2...)
       Set fieldX to 2
    Else
       Set fieldX to 3
     Any Ideas?
  • 05-27-2014 11:11 AM In reply to

    Re: IF ELSE OR statment in InfoPath form

    Oh, I'd just use rules with conditions and make sure each rule has the checkbox set to not run additional rules if the conditions for this rule are met.

    Does that make sense?

    Hilary Stoupa

  • 05-27-2014 12:18 PM In reply to

    Re: IF ELSE OR statment in InfoPath form

     Yes and that's pretty much what I had, but it was a bit sloppy and knew it could be better.  However, I did manage to use this to fix my issue.

    xdMath:Min((../my:field17 | ../my:field18 | ../my:field19 | ../my:field20 | ../my:field21)[. != ""])

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