web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dataverse Table Phone ...
Power Apps
Unanswered

Dataverse Table Phone Number formatting and validation.

(0) ShareShare
ReportReport
Posted on by 65

Hello!

I am having trouble finding online how to format and validate phone numbers. 

Validation: make sure the inputted number is exactly 10 digits

Formatting: the inputted number xxxxxxxxxx is formatted to (xxx)xxx-xxxx

 

Thanks, if anyone could help that would be great, I tagged the three below because they have been very helpful in past problems with Power Apps.

@EricRegnier 

@dpoggemann 

@ChrisPiasecki 

 

I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @JasonSealy ,

     

    Could you please tell me:

     

    How does the user enter numbers? Canvas app or Model driven app?

     

    Best Regards,

    Bof

  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @JasonSealy ,

     

    You can use JavaScript validation on Form level by using Regex. 

    You can refer these steps: Blog | Logic and code will vary for you

    You can also use Plugins when records Imported

     

    Hope this helps

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @JasonSealy ,

    Check out @EricRegnier response from a while back, is this helpful?  https://powerusers.microsoft.com/t5/Microsoft-Dataverse/How-to-validate-phone-field-on-model-driven/td-p/601147 

  • JasonSealy Profile Picture
    65 on at

    Hello @v-bofeng-msft,

    1.) I was wondering if this data input could be done directly into the table itself (like how it would be done in excel) and not through an app.

    2.) Is it bad practice to do it this way? If it is bad practice why is that?

    For my purposes I think model-driven app is the right choice and I will look into doing that.

     

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @JasonSealy ,

     

    1.) I was wondering if this data input could be done directly into the table itself (like how it would be done in excel) and not through an app.

    You could do it in excel.

    vbofengmsft_0-1685496182515.png

     

    2.) Is it bad practice to do it this way? If it is bad practice why is that?

    It can be done by JS , please check @Ethan_R and @dpoggemann 's answer.

     

    Best Regards,

    Bof

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard