How to write a Client script for specific view of a form?

Hemasundar
Tera Contributor
 
2 ACCEPTED SOLUTIONS

Sandeep Rajput
Tera Patron
Tera Patron

@Hemasundar On the client script form, uncheck the global checkbox and enter the view name in the view field.

 

Screenshot 2023-04-18 at 10.49.05 PM.png

View solution in original post

Prince Arora
Tera Sage
Tera Sage

@Hemasundar ,

 

Please check the below screenshot:

 

Remove the global checkbox and provide the view name, global means it will work for all the views

 

PrinceArora_0-1681838422840.png

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.

 

View solution in original post

3 REPLIES 3

Sandeep Rajput
Tera Patron
Tera Patron

@Hemasundar On the client script form, uncheck the global checkbox and enter the view name in the view field.

 

Screenshot 2023-04-18 at 10.49.05 PM.png

Prince Arora
Tera Sage
Tera Sage

@Hemasundar ,

 

Please check the below screenshot:

 

Remove the global checkbox and provide the view name, global means it will work for all the views

 

PrinceArora_0-1681838422840.png

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.

 

DrewW
Mega Sage
Mega Sage

You need to use the UI Action Visibility related list for what you would like to do.

 

https://docs.servicenow.com/en-US/bundle/utah-platform-administration/page/administer/list-administr...