Share via

Auto complete phone number field on SharePoint list form

Anwesha Ghosh Dastidar 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.

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | Office Online Server
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments

Answer accepted by question author
  1. Baker Kong-MSFT 3,801 Reputation points
    2020-12-17T02:17:55.53+00:00

    Hi @Anwesha Ghosh Dastidar ,

    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.