Pages

Tuesday, May 15, 2012

InfoPath patterns

We designed a declaration form for one of our customers. They only wanted their users to use the following pattern for entering the value of their declaration:

24.12

So no use of a comma. They wanted an error to appear if a user entered a comma. I used the validation rule  in combination with custom patterns.

I configured the following custom patterns:

00,00
\d?\d,\d\d

00,0
\d?\d,\d

00,000
\d?\d,\d\d\d

A pretty cool feature :-)

0 replies:

Post a Comment