Showing/hiding form sections

Sometimes you will want to show only certain form sections to different types of users. This can be based on a number of variables, but often it will be based on the roles a user has or the groups they belong to.

For this requirement, an onLoad client script can be used. This will ensure that before the form is available to the user, the required form sections can be hidden.  

Get Mastering ServiceNow Scripting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.