Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Masking postal code and phone in crm365

(0) ShareShare
ReportReport
Posted on by 315

Is there any way to mask a field on keypress in crm365 ?it seems that addOnKeyPress which was added in 2016 is also deprecated in 365 .

I have a unsupported 2011 code that I am trying to make it work in 365.

*This post is locked for comments

  • Maryam Profile Picture
    Maryam 315 on at
    RE: Masking postal code and phone in crm365

    thank you so much i think this is what i was looking for. I have an unsupported way to solve the issue for now but hopefully something comes out soon

  • Verified answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Masking postal code and phone in crm365

    Hi Maryam,

    Custom controls (based on CCF) are being introduced in Dynamics 365 Customer Engagement, and I am pretty sure that there will be custom controls created by the community and Microsoft that can be used for different purposes.

    To date (as far as I know), this is still not available, but I am hoping for an upcoming release that will enable this feature.

    In the meantime, hopefully one of the solutions above will help you get the functionality you are looking for.

  • Maryam Profile Picture
    Maryam 315 on at
    RE: Masking postal code and phone in crm365

    Thanks Syed.

    Seems a great way to fix masking on the password. But I am looking to see if there is any existing solution in a supported way to mask a phone or postal code fields on the keypress not using addOnKeyPress(As this is depricated in CRM365)

  • Maryam Profile Picture
    Maryam 315 on at
    RE: Masking postal code and phone in crm365

    Thanks Aric,for you suggestion.

    I saw this before but I read addOnKeyPress is a deprecated function in CRM365 :(((

    This is exactly what I need but I am not sure why they are going to remove it. In the SDk it said use Custom Control as a replacement so I was looking to see if there is anything available or any one has a solution.

  • Maryam Profile Picture
    Maryam 315 on at
    RE: Masking postal code and phone in crm365

    Thanks For the response.

    Unfortunately at the moment we can not use onchange  since client have it on the Keypress. 

    I tried to fix or replace the unsupported code. 

    I already change the document.getelementbyid to parent.document.getelementbyid and added "_i" to fix the unsupported code later I have to figure out a way to change to  supported. This is why I ask if there is any supported way to support do this.

  • Suggested answer
    Syed Ibrahim Profile Picture
    Syed Ibrahim 6,257 on at
    RE: Masking postal code and phone in crm365

    Hi maryam,

    Please refer the below link.

    alagunellaikumar.blogspot.sg/.../password-masking-in-crm-2015.html

    This helps you

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Masking postal code and phone in crm365

    Hi Maryam,

    This should be supported.

    Take a look at the following link:

    msdn.microsoft.com/.../gg334266.aspx

    Hope this helps.

  • Suggested answer
    RE: Masking postal code and phone in crm365

    Hi,

    what are your exact requirements?

    Couldn't an onChange event resolve your problem?

    Or maybe a custom ribbon button?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans