using eval with multiple conditions - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

using eval with multiple conditions

Last post 05-20-2022 04:39 PM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-19-2022 11:47 AM

    • Jakke
    • Not Ranked
    • Joined on 11-29-2011
    • Posts 4

    using eval with multiple conditions

    Hi, I've been using the eval function a lot lately to conditional concat a bunch of fields and text. example: eval(field1[. != ""]; 'concat(field1, field2, "text")') So if the field is not empty, it gets added. Very useful!! but now I want to use 2 conditions: so something like eval(field1[. != "" and . != "test"]; 'concat(field1, field2, "text")') so field1 must not be empty AND not be "test". is this possible? I also tried to nest another eval, where now the concat expression is, but that's not working somehow. tx!
  • 05-20-2022 04:39 PM In reply to

    Re: using eval with multiple conditions

    Hi - your suggested filter should be fine - it isn't clear to me if you are using a double-eval (outside a repeating element) or just eval (in a field inside) - attaching a sample with both. Right click the link and save the file locally, right click the saved file and select design, then preview.
    Hilary Stoupa

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