Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Disable Commas in a text field

Posted on by 71
Hi Everyone!
 
We have a requirement to enter a number in a text field but should not be able to accept a comma. 
 
I've tried using the whole number field and based from another blog, use the personal setting for number to disable commas. But this path will make the currencies not accept a comma as well.
 
Is there anyway to achieve this? Input mask is retired.
 
Kindly help.
 
Thank you in advance!
  • Verified answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    Disable Commas in a text field
    You need consider that using js code to prevent commas will be populated in the field.
    Please refer to the following link, which provide full code example:
    https://powerusers.microsoft.com/t5/Microsoft-Dataverse/Stop-user-using-special-characters-in-text-box-field/td-p/2269833
    I hope you can mark my answer verified if it is helpful! If you have any questions, please feel free to contact me.
    Regards,
    Leah
     

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans