Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Limit access to the "preview this record" button by roles

RimaJ
Tera Contributor

Hello community,

I have been experiencing some difficulties with the "preview this record" button in records (please refer to the attachments). I would like to limit access to the button based on roles, making it either read-only for users or not visible.

Thank you for your assistance.

capture_1.PNG

5 REPLIES 5

RimaJ
Tera Contributor

hello @Sumanth16 

The script is indeed a good idea, but I'm unsure about what exactly to put in the section $('view.incident.caller_id'). I want to hide the one in front of the item field on the sc_req_item form. Thank you for your suggestion.