The CreatorCon Call for Content is officially open! Get started here.

Hide field on open record preview

Community Alums
Not applicable

Hi,

How to hide field on preview icon open record . I used ui policy so it was hidden on form but how to hide on open record preview. Can anyone help me on this please.

Thanks in advance.

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

Create a new view with name "sys_popup"

and configure form layout for that reference field table.

 

Below article should help:

https://servicenowguru.com/scripting/client-scripts-scripting/javascript-popup-boxes-servicenow/

Best Regards
Aman Kumar

View solution in original post

2 REPLIES 2

Steven Young
Tera Guru

you would need to create a new "view" for the table in question.  the new view would be called "sys_popup"

if your table doesn't a "sys_popup" it'll used the default view for the popup.
so you'll need to create a new view called "sys_popup" and only add the fields you want on this view.

Aman Kumar S
Kilo Patron

Create a new view with name "sys_popup"

and configure form layout for that reference field table.

 

Below article should help:

https://servicenowguru.com/scripting/client-scripts-scripting/javascript-popup-boxes-servicenow/

Best Regards
Aman Kumar