Skip to main content
Dynamics 365 general forum
Suggested answer

Hide last 4 digits in account number field in model driven app

editSubscribe (0) ShareShare
ReportReport
Posted on by 120

Hi Team,

I have a account number field in my model driven app. once Account number field enter and save. After in view it could hide last 4 digits.like(123456****)

please help 

  • Suggested answer
    Community Member Profile Picture
    Community Member UG Leader on at
    RE: Hide last 4 digits in account number field in model driven app

    Hi Haritha222,

    Unfortunately, there are no OOB features can achieve it.

    If you are using Field Level Security, you can make one field accessible only to the user or teams who have permission to do:

    Users who do not have read access to a particular data field will only get to see series of * strings in place of the actual value like ‘****’.

    Field Level Security in Microsoft Dynamics 365 (CRM) - Encore Business Solutions

    Or you can refer the following steps, which achieves its purpose indirectly:

    1.Create another number field.

    2.Using js code to truncates the value before the last four digits of the account number field.

    3.using * replace last four digits.

    4.Populate new number field with replaced value.

    5.Show the new number field in the view.

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Sundar…

Industry experts answer burning questions directly from our amazing Community…

Enabling Copilot Case and Conversation…

Agents can easily recap an ongoing chat, transcribe a voice conversation…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,030 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,562 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans