The Zurich release has arrived! Interested in new features and functionalities? Click here for more

On the change template creation form i want to hide/restrict all fields that do not currently exist on the Change form

Rajesh PanneerS
Tera Contributor

Users are able to see all the fields in the change request template creation form. In the below screenshot, Activity due field is not available in the change form but it is visible here. So my requirement is to show only the fields visible on the change form. Is it possible to hide or make these fields read only

find_real_file.png

1 ACCEPTED SOLUTION

Hi Rajesh,



Thank you for confirming. The templates do not respect UI policies because they are evaluated on the client side and can be variable depending on almost any condition. The template is imported on the server side. So - short answer "no".



I know that's not the answer you were looking for, but it is an answer. If you would be so kind... please mark it as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.


If you are viewing this discussion from your "inbox", use the "mark as correct" option under actions. If you are viewing it directly from the thread use the Correct Answer link (red with a star).


Thank you


View solution in original post

16 REPLIES 16

Chuck Tomasi
Tera Patron

Hi Rajesh,



You can restrict read access on those fields using ACLs so users cannot see the fields and they will not be available to pick them.



This does require you to manually set ACLs to sync with the fields on your form and keep them updated as new fields are added/removed from your form view(s) which can be tedious and possibly prone to conflict.



Reference:


Using Access Control Rules - ServiceNow Wiki


Security Best Practices - ServiceNow Wiki


Contextual Security - ServiceNow Wiki


Hi Chuck,



So the ACL should be on the sys_template table and then i should create one for each read only field. Can you please provide an example ?


The ACL should be on the table your template points to (e.g. change_request.)


Hi Chuck,



But creating an ACL will hide the fields not only on the Change request template creation form right?