Auto complete phone number field on SharePoint list form

Mikello 81 Reputation points
2020-12-16T21:55:26.12+00:00

I have a phone number field that I am trying to get users to fill in xxx-xxx-xxxx format. However the request is for an autocomplete feature that will automatically take the cursor to a 'dash' (-) after 3 digits followed by 3 more entries, another 'dash' and then 4 more digits. Anyway to achieve this using Javascript? Phone field name is EmpPhone.

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,328 questions
Microsoft Office Online Server
Microsoft Office Online Server
Microsoft on-premises server product that runs Office Online. Previously known as Office Web Apps Server.
637 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,567 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,604 questions
0 comments No comments
{count} votes

Accepted answer
  1. Baker Kong-MSFT 3,801 Reputation points
    2020-12-17T02:17:55.53+00:00

    Hi @Mikello ,

    Can you please have a look this JS plugin? It should meet the requirement:

    CDN: https://unpkg.com/jquery-input-mask-phone-number@1.0.15/dist/jquery-input-mask-phone-number.js
    Demo: http://jsfiddle.net/rajaramtt/7s3eLokc/25/

    Best Regards,
    Baker Kong


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.