What is view in client script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2024 07:38 AM
Hi All,
What is view in client script. please any one provide me details on this one.
Thanks,
Vinuth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2024 07:41 AM
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:
mark my response as helpful 👍and accept the solution ✅if it helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2024 07:43 AM
See the description of 'View' here:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2024 07:45 AM
It is mentioned in docs clearly.
what's your confusion?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2024 07:45 AM
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