Validation on a group of controls - InfoPath Dev Sign in | Join | Help in General InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » General » Validation on a group of controls Validation on a group of controls Last post 10-23-2005 09:19 PM by DavidCrabbe. 3 replies. Page 1 of 1 (4 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 10-20-2005 09:27 PM DavidCrabbe Joined on 10-12-2005 Australia Posts 51 Validation on a group of controls Reply Contact I'd like to validate that at least one selection within a repeating group has been selected. I've created the following group:<xsd:element name="Application"><xsd:complexType><xsd:sequence><xsd:element ref="my:Selected" minOccurs="0"/><xsd:element ref="my:ApplicationName" minOccurs="0"/></xsd:sequence></xsd:complexType></xsd:element> Is there a quick way to test that the Selected field is true for at least one item within the repeating group? If not I'll just loop around the group and test Selected for each item in turn. Not a major drama, just looking to see if there is a more intelligent way to do this. :)David. 10-21-2005 04:56 AM In reply to vt_asparagus Joined on 08-05-2005 USA Posts 285 Re: Validation on a group of controls Mark as Not AnswerMark as Answer... Reply Contact I think if you XPath query was something like XDocument.DOM.selectNodes("...").length > 0. Put whatever XPath query you want where "..." is. Jasonhttp://www.k2distillery.com/ 10-21-2005 06:57 AM In reply to franck Joined on 10-03-2005 USA Posts 310 Re: Validation on a group of controls Mark as Not AnswerMark as Answer... Reply Contact Hi,..and if you want to target a specific field in the nth instance of your repeating section, use something like:XDocument.DOM.selectSingleNode("/my:myFields/my:group1/my:group2[n]/my:field1");Regards,Franck Dauché 10-23-2005 09:19 PM In reply to DavidCrabbe Joined on 10-12-2005 Australia Posts 51 Re: Validation on a group of controls Mark as Not AnswerMark as Answer... Reply Contact Thanks again to both of you. I will have a play with both ideas and see what happens.Cheers,David. Page 1 of 1 (4 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.