Infopath IF statements - InfoPath Dev

InfoPath Dev

Use our Google Custom Search for best site search results.

Infopath IF statements

Last post 08-03-2018 02:11 AM by CoenVrey. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-02-2018 05:47 AM

    Infopath IF statements

     I am a first time Infopath user (still need to read a lot) and run in to this, this might be a syntax error on my side any idea????

    Expected value type: ,

    Actual value: string
    IF(../my:Selection="27/08/2018 from 10h00 to 12h00 (Bloemfontein)" and COUNT(../my:Selection)>=100, -->"Fully Booked"<--, "Available")

  • 08-02-2018 08:27 AM In reply to

    InfoPath doesn't have such a think as "IF" statements. We use rule conditions instead to determine whether to set a field's value. Looks like in this case you'd use two rules - the first could set the target field to Available, with no conditions, then the second could have your two conditions, and if they are true, set the field to Fully Booked. You could also use mutually exclusive conditions on the two rules, but if the field you are setting doesn't have any rules on it, it shouldn't hurt to take the simpler route. :-)
    Hilary Stoupa

  • 08-03-2018 02:11 AM In reply to

     Thanks Hilary will follow your comments

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