Masking field value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-11-2026 10:00 PM
on form where active field set to true then firstname and lastname need to be get masked how to do the same ... which should be work in workspace as well as in native UI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-11-2026 10:10 PM
but why?
you can use field level READ ACLs on those 2 fields and handle this if you don't want the fields to be seen on Form + List
Something like this, also add proper role
š” If my response helped, please mark it as correct ā and close the thread šā this helps future readers find the solution faster! š
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-11-2026 11:14 PM
There is no role provided for requirement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-11-2026 11:17 PM
you can use snc_internal role which every internal user has
š” If my response helped, please mark it as correct ā and close the thread šā this helps future readers find the solution faster! š
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-12-2026 06:57 PM
Hope you are doing good.
Did my reply answer your question?
š” If my response helped, please mark it as correct ā and close the thread šā this helps future readers find the solution faster! š
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-11-2026 10:11 PM
Hello @darshan-pra
Enable Masking on the Fields
Navigate to System Definition > Dictionary
Open the firstname field
Set Attributes:
masked=trueRepeat for lastname
This enables masking capability for the fields.
Create Read ACL with Condition (Active = true)
Create a Read ACL for:
Table: your table (e.g., sys_user or custom table)
Field: firstname
Operation: read
Scripted ACL condition:answer = !current.active;
Meaning:
When active = true ā read access denied ā field is masked
When active = false ā read access allowed ā value visible
Repeat the same ACL for lastname.
This approach works in both Native UI and Workspace.
If this response proves useful, please mark it as Accept as Solution and Helpful. Doing so benefits both the community and me. šš
