InfoPath 2013: Custom rule to check and format telephone number

How I want the telephone number formatted: (919) 555-1212

Steps:

  1. First create a Text(string) Phone Number field. See the Field Properties below for the example.

    Field_Properties

  2. Click Manage Rules in the ribbon

    Manage Rules

  3. Click the arrow on the New button and then click Action

    Rule_Action

  4. Click the FX button
    Rule_Action_Details
  5. Rule_Action_Coditions
  6. Rule_Validation_Coditions

Written by Paul

Amassed 8 years of experience in the information technology field. Extensive hands-on skills attained in a wide range of technologies. Proven ability of delivering fast, accurate results. Worked in various capacities in the information technology field including: programmer, programmer analyst, technical analyst and quality assurance specialist.

2 Comments

Fred

How I want the telephone number formatted:

Thank you for posting this. I am trying to add this field to my form but it still allows words to be typed in the field. Any help would be much appreciated. Thanks looking forward to hearing from you.

Reply
Paul

Hey Fred,

I am not next to a computer right now but I would suggest creating a data validation rule with a custom pattern that only allows the Characters you want. When I get home later I will have a look.

Reply

Leave a Reply

Follow me on Twitter

-->
%d bloggers like this: