Skip to main content

Notifications

Announcements

No record found.

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

Disable Commas in a text field

(0) ShareShare
ReportReport
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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,433 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans