Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Hide part of a ssn field to show only last 4

Featured Replies

I'm trying to find a way to set a preference on a report to show an ssn as either a full, partial (only with last 4 displayed) or all x's. How would I go about doing this?

Set a global field for the preference and a calculation field for the result.

  • Author

How would I format the calculated field to display the results that I wanted? I'm relatively new to calcs so any help is appreciated.

Try =

Case (

gPreference = "Full" ; SSN ;

gPreference = "Partial" ; Right ( SSN ; 4 ) ;

"xxx-xx-xxxx"

)

  • Author

Is it possible to add the proceeding xxx-xx- to the SSN inside of the Case formula or do I need to create a combine field?

Ah. So how about =

Case (

gPreference = "Full" ; SSN ;

gPreference = "Partial" ; SerialIncrement ( "xxx-xx-0000" ; Mod ( SSN ; 10^4 ) ) ;

"xxx-xx-xxxx"

)

  • Author

Worked great! How the heck do you know all of this stuff?

SerialIncrement ( "xxx-xx-0000" ; Mod ( SSN ; 10^4 ) )

Why do you choose that over "xxx-xx-" & Right(SSN;4)?

We weren't told how the SSN's are stored (with hyphens, etc.) and I wanted to avoid the assumption that the last 4 characters were all digits.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.