Data validation

K

Karen

Hi,

Is there a way to validate that the data entered in one field exists as an
entry in another field which is part of a repeating table? I tried using
"contains", but that just does a string search, so if they had entered "Plan
A" in the field of the repeating table and "Plan" in the field that I'm
checking, it won't flag it as a validation error.

Thanks in advance.

Regards,
Karen
 
S

SMS

Hi,

Is there a way to validate that the data entered in one field exists as an
entry in another field which is part of a repeating table?  I tried using
"contains", but that just does a string search, so if they had entered "Plan
A" in the field of the repeating table and "Plan" in the field that I'm
checking, it won't flag it as a validation error.

Thanks in advance.

Regards,
Karen

I created a dummy field, which was concatenation of all the repeating
fields using the below link:
http://blogs.msdn.com/infopath/archive/2006/04/05/569338.aspx

And creates a field with data "Plan;Plan A;"

Now I search for "Plan;" (using contain function) and since the
semicolon indicates end of word, it wouldn't pick up Plan A
 
S

Steve

I created an input TextBox field1 and a repeating table with TextBoxes
field2, field3, and field4.

For the data validation for field1, I specified that:
if field2 does not contain field1 and
if field3 does not contain field1 and
if field4 does not contain field1
then show this error alert: No match!

This all works as expected. If the term in field1 is in any of the other
fields, it validates. Note that this matches any string or portion of
string. So if I enter "test" in field1 and "testing", "tested", etc in the
other fields, I get a match.

Interesting exercise. I hope that this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top