What is view in client script.

vinuth v
Tera Expert

Hi All,

What is view in client script. please any one provide me details on this one.

vinuthv_0-1722868635759.png

 

Thanks,

Vinuth

 

4 REPLIES 4

Satishkumar B
Giga Sage
Giga Sage

@vinuth v 

View: Specifies the View to which the script applies. The View field is visible when Global is not selected. A script can only act on fields that are part of the selected form View. If the Viewfield is blank the script applies to the Defaultview.

 

Refer below article:

https://developer.servicenow.com/dev.do#!/learn/learning-plans/washingtondc/new_to_servicenow/app_st....

 

mark my response as helpful 👍and accept the solution if it helps you

Bert_c1
Kilo Patron

Ankur Bawiskar
Tera Patron
Tera Patron

@vinuth v 

It is mentioned in docs clearly.

what's your confusion?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Deepak Negi
Mega Sage
Mega Sage

Hi

 

As there are multiple views can be created for respective roles, the "View" in Client Script specifies that the client script will be applicable to that view only.

The view field only becomes available when Global is unchecked. If Global is checked that means the client script will work for all views for the form

 

Thanks

Deepak