Validating a field against all rows in a repeating table - InfoPath Dev
in

InfoPath Dev

Validating a field against all rows in a repeating table

Last post 04-16-2012 09:47 AM by Anson Hidajat. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 04-13-2012 11:40 AM

    Validating a field against all rows in a repeating table

    Let's say I want to validate my entry in textbox1 agaist the results in a repeating table that contains one column. The validation rule must validate textbox1 against EVERY row in the single column (textbox2) to see if it's a match or not.

    For some reason this just won't work. It throws the validation error EVERY time, whether it matches or not.

  • 04-14-2012 03:02 PM In reply to

    Re: Validating a field against all rows in a repeating table

    I've attached a sample xsn.  Is this closer to what you were looking for?
    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

  • 04-16-2012 07:54 AM In reply to

    Re: Validating a field against all rows in a repeating table

    No, that's backwards. That validation rule is written on the repeating table field (field2). I need it to trigger on the textbox field that isn't in the repeating table. The repeating table will be hidden in the form, so red hashes or screentips on the repeating table won't do.

     Need someone to see a validation error if the entries in field1 (not in repeating table, filled out by user) don't match the values in field 2 (in repeating table, data pulled from web service on form load for validation purposes from another system). It just seems to throw the validation error every time though, whether it matches or not.

  • 04-16-2012 09:47 AM In reply to

    Re: Validating a field against all rows in a repeating table

    Ah I think I understand now.  I added a new version of the template.  Check it out and see if its closer to what you want.
    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

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