Short description should not be visible (both on UI or in XML form) on Incident form

yayatiaa
Tera Contributor

 

Hello All,

I have a requirement where a user, if they are a member of a certain group, should be able to see the short description. However, if they are not a member of that group, they should still be able to see the Short Description field, but the contents (of short description field) should be hidden in an asterisk format (similar to how passwords are hidden). Additionally, users who are not members of the group should not see the short description field contents in an XML file (when clicking on the "Show XML" button on the ServiceNow UI).

I could have tried using client scripts, but since the user requires content to be hidden in XML as well, I believe this involves backend/server-side manipulations.

Does anyone know how I can go about it?

1 REPLY 1

Sandeep Rajput
Tera Patron
Tera Patron

@yayatiaa If you wish to hide the fields in XML too then you need to define a field level ACL on the short description field on the incident table as follows.

 

Screenshot 2023-12-02 at 12.50.42 PM.png

 

Regarding showing *** on the form, unfortunately you will not be able achieve it using the above approach as completely hides the field from the form. You can achieve it by creating a custom short description field on the form and showing **** in the text using the client script. This field can be added near the original short description field in the form layout.