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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Social Security Number...
Power Apps
Unanswered

Social Security Number field Format for Dynamics CRM

(0) ShareShare
ReportReport
Posted on by 19

I'm trying to create a field in Dynamics CRM that will hold a Social Security number value. Not sure what the best method would be. 

 

Ideally I would prefer the field to hold numbers-only, then get reformatted as XXX-XX-XXXX upon save in Dynamics. Is this possible? 

I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    You could write a bunch of JS to do that masking, but really it would only look secure and could be easily circumvented by a user who knows just a little bit about web browsers.

     

    Instead, Id suggest that you use Field level security to hide the real value. This will actually provide real security, though it will not display with hyphens or enforce the presence of hyphens (link).

     

    ... You can also (separately) enforce the presence of hyphens (so when entering a value users can just enter 9 numbers and they hyphens will magically appear) using input masking (link).

  • Verified answer
    gulshankhurana Profile Picture
    1,397 Moderator on at

    Hi @gsfortis 

     

    The input mask control would have been useful however it's been retired/deprecated now. An alternative would be to use a PCF control. You can either build your own control or there are various input mask controls that you can download from the following website:

    https://pcf.gallery

     

    I hope you'll find this information useful. If you appreciate my efforts then please give a Thumbs Up to my reply. If it helps you resolve the issue then please accept it as a solution.

     

    Kind regards

    Gulshan

  • GilVTL Profile Picture
    19 on at

    I think this is the answer I was looking for-- just not the answer I wanted. 

     

    The deprecated Input Mask Control is what I want, and I'm sad it's already retired. I didn't find any pre-built PCF solutions for the format I want (not for an American SSN), and I just don't think building my own is within my skillset.  

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard