Announcement

Collapse
No announcement yet.

Mask Social Security Number

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mask Social Security Number

    I am using Nitro App Builder and have a social security number field I'd like to mask in the column formatting. If the field contains "123456789", I would like to display
    "***-**-6789". What would I enter here:FormatSocial.jpg

  • #2
    Code:
    return '***-**-' + v.substr(5,4);

    Comment


    • #3
      You might want to consider adjusting the SS# data on the back-end rather than the front-end, so a clever user doesn't use Dev Tools to see the data you're suppressing in your renderer. Scott Forstie and Tim Rowe recently produced a short video demonstrating how to do this via column-level masking in SQL.

      Comment

      Working...
      X