Prevent ordinary users from changing the view of a record to "Sys_popup"

Vinicius5
Tera Contributor

Hey guys!

 

I have a problem, users are managing to change the view of the tables to "Sys_popup". The problem with this is that, when viewing the record form through this view, they are able to submit/save/update the records without some mandatory fields filled in, as these fields do not appear and are not mandatory in the "Sys_popup" view, only in the "Default_view" .

 

Because of this, I would like to have a solution to not allow users to change the view to the "Sys_popup" view.

1 ACCEPTED SOLUTION

Johns Marokky
Tera Guru

Hi @Vinicius5 ,

There is one more way. See if you are ok with that and check it if solves your problem. This doesn't include any coding.

You can Type views in the navigator and open views under System UI --> Views and Search for sys_popup.

I think the below record will take you directly to that view.

https://<instance_name>.service-now.com/sys_ui_view.do?sys_id=c7402b100a0a0b8400cf971d83ee4384&syspa...

 

In this, you can Hide this view or give roles like only admin can see this view. See the attached screenshot for reference.

Screenshot 2023-02-11 at 4.11.36 PM.png

Try this and see if it works out for you.

 

Mark helpful and accept the solution if it helps in Solving your query.

 

Regards,

Johns

 

View solution in original post

4 REPLIES 4

Sai Kumar B
Mega Sage
Mega Sage

Hello @Vinicius5 

  • You can create "View rule" with conditions or Advance script load forms in specific view.
  • You can create one view rule for ordinary users. 
  • You can refer to the following sample view record change those highlighted fields accordingly as per your requirement. In the below view rule users with itil role can view incident form only in jvr view they can't choose another view.

SaiKumarB_0-1676105579929.png

For more information on View rules, you can refer to the following documentation links
Create a view rule 
Control when the system displays a view 

If I could help you with my response you can mark it as helpful and correct as it benefits future viewers
Thanks,
Sai Kumar B
Community Rising Star 2023 & 2022

 

Johns Marokky
Tera Guru

Hi @Vinicius5 ,

There is one more way. See if you are ok with that and check it if solves your problem. This doesn't include any coding.

You can Type views in the navigator and open views under System UI --> Views and Search for sys_popup.

I think the below record will take you directly to that view.

https://<instance_name>.service-now.com/sys_ui_view.do?sys_id=c7402b100a0a0b8400cf971d83ee4384&syspa...

 

In this, you can Hide this view or give roles like only admin can see this view. See the attached screenshot for reference.

Screenshot 2023-02-11 at 4.11.36 PM.png

Try this and see if it works out for you.

 

Mark helpful and accept the solution if it helps in Solving your query.

 

Regards,

Johns

 

Does this change have any side effects? I just need to hide the "Sys_popup" view from the user's selection by the form.

Hi @Vinicius5 ,

It just basically hides this view from the form. So none of the new users can select it.

 

Regards,

Johns