Hide the specific fields in preview record.

Ashok32
Tera Contributor

Hi,

I have a Requirement like 

if the User having admin Role then he/She can only able to see the Specific fields in the Preview the Record.

 

Can any one help me how can i achieve this .

 

Thanks in Advance.

1 ACCEPTED SOLUTION

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi @Ashok32 ,

 

Create a new view with name "sys_popup"

and configure form layout for that reference field table.

Then create view based client script / ui policy to hide or show the fields based on condition.

Reference :-

Hide field on open record preview 

How to hide Variables from RITM Preview? 


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

View solution in original post

5 REPLIES 5

Damini Sheth
Tera Contributor

Hi, 
you can use the read ACL on that fields with admin role conditions.

Hi Damini Sheth,

 

i need to restrict the admin when he click on 'i' icon then it shows the preview of the field.so he cant able to see all the fields in preview record.How to do this.

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi @Ashok32 ,

 

Create a new view with name "sys_popup"

and configure form layout for that reference field table.

Then create view based client script / ui policy to hide or show the fields based on condition.

Reference :-

Hide field on open record preview 

How to hide Variables from RITM Preview? 


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

Hi @Gunjan Kiratkar 

i need to hide the fields based on Roles. How to I configure ACL on views.