Implementing a regular expression on the InfoPath form field - InfoPath Dev
in

InfoPath Dev

Implementing a regular expression on the InfoPath form field

Last post 09-08-2008 09:48 PM by sandhyapati. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-08-2008 07:23 AM

    Implementing a regular expression on the InfoPath form field

    Hi,

    On my InfoPath form, I have field called "Business EMail Address" which stores Email address. I have a requirement where in the field should not allow any characters which are not valid in the EMail field of the Active Directory (AD). How do we implement a regular expression on an InfoPath form field? I tried implementing couple of regular expression using the "Custom Pattern" option but InfoPath did not accept those expression. Is there any different way for implementing the regular expression to the InfoPath field?

    Regards,

    Vipul Mehta

    Vipul Mehta
  • 09-08-2008 09:48 PM In reply to

    Re: Implementing a regular expression on the InfoPath form field

    Hi Mehta,

    Setting an input scope as a regular expression enables you to specify a regular expression that defines a custom pattern for restricting or biasing the input entered into the control. You can learn more about the regular expression syntax used by Microsoft Office InfoPath 2007 input scopes in the Microsoft Tablet PC Software Development Kit (SDK).

    To create a regular expression input scope setting:

    1. Click Custom in the Input Scope dialog box, and then click New.
    2. In the Name box, type the name of the regular expression input scope setting.
    3. In the Type list, click Regular Expression.
    4. In the Regular Expression box, type the regular expression formula.

    After a regular expression has been created in a form template, you can apply it to other controls on the form by selecting it from the Input scope list.

    Thanks,
    Sandhya


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