Masking

D

David Gerstman

One other InfoPath question.
If I am going to require a social security number in a certain field can I
set up a mask like 999-99-9999 to show that I want numeric characters and
have the dashes automatically filled in?
 
S

Scott L. Heim [MSFT]

Hi,

InfoPath does not have built-in functionality to create an "Input Mask" as
you would see, say, in a Microsoft Access database; however, there are a
couple of options:

- Create your own ActiveX control that performs the functionality you desire
- Use InfoPath's "Data Validation" functionality on the text box and
specify the "Does Not Match Pattern" option where you would then enter the
pattern you need

Again, the second option above is not a true "Input Mask" as most would
think of this term but it would get you close to the same behavior.

I hope this helps!

Best Regards,

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 
D

David Gerstman

Thanks Scott. I actually, eventually, found the validation option. In our
version there was a built in Soc Sec Number and built in phone number. I'm
not sure that they act as advertised though; I haven't tested them rigorously
yet.
David
 
Top