Need help in client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2024 08:31 PM
Hi Team
can any one please help me , in this request
Based on the type of request , Infrasturure request should populate .
can any one please provide me script for this .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2024 09:39 PM
It's bit confused , could you please provide script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2024 09:50 PM
Hi @nameisnani ServiceNow is all about Best Practice. I would suggest you to always prefer OOTB solution if possible. I'm sure you will get more complex requirement than this in future. So confusion cannot be the reason to not implementing the OOTB solution.
Cheers!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2024 09:43 PM
Hi @nameisnani ,
You can use Catalog OnChange Client Script
Select the type : Onchange
Select the Variable Name: type_of_request// use you backend value

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2024 10:06 PM
I think this a good template to follow. Although you don't need a variable for type. The "newValue" contains the value for type of request so it become redundant to call it twice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2024 10:04 PM