Input scope and Validation

O

Ofer Gal

Why doesn't Input scope work in Infopath?
I use IS_DIGITS and the user can enter whatever.

Also I tryed validation and it did did not work.
With a validation event I used Regex.IsMatch and it worked in windows, but
when the form was published in SharePoint, it was disregarded.

How do you make a SSN field digits only?
Making the field integer, is not the answer because leading zeros are earased.
 
S

Steve

Why doesn't Input scope work in Infopath?
I use IS_DIGITS and the user can enter whatever.

Have you got the "Recognize non-matching input" checkbox selected?
Also I tryed validation and it did did not work.
With a validation event I used Regex.IsMatch and it worked in windows, but
when the form was published in SharePoint, it was disregarded.

Are you doing this in code? If so, please post your code. The Data
Validation option in the GUI allows you to insert a custom REGEX pattern
without coding.

Also, are you publishing a web-enabled form? In that case, you can't use
managed code.
How do you make a SSN field digits only?
Making the field integer, is not the answer because leading zeros are
earased.

Right-click text box, select Properties.
Select Data Validation
If field1 matches pattern [select a pattern] -> select Social Security
number. Note that you have to type in the dashes as well, which is awkward.

HTH
 

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