Searching in a Repeating Section - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Searching in a Repeating Section

Last post 10-23-2025 11:35 AM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-23-2025 07:25 AM

    Searching in a Repeating Section

    For submission validation, I want to be able to test all occurrences of a repeating section to see if any meet a certain criteria: for example, do any of the dropdowns not have a selection, or do any numeric fields have a negative value. The best I've come up with is: count(xdXDocument:get-DOM()/my:myFields/my:Item[current()/my:Item_Name != ""]) count(xdXDocument:get-DOM()/my:myFields/my:Item[current()/my:Item_Quantity
  • 10-23-2025 11:35 AM In reply to

    Re: Searching in a Repeating Section

    I think part of your XPath got cut off, but I use filtered count XPaths for this kind of thing, too, sometimes, or the boolean function - for example, this returns true if there a no instances of the group where both of these fields are blank: boolean(not(my:group1/my:group2[my:field1 = "" or my:field2 = ""]))
    Hilary Stoupa

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