ServiceNow Interview Questions and Answers – User Shared Q&A (Set 4)
Manasa 2023-06-29 10:37:48
What are the features you like and don't like in client scripts? What do you think would make it even better if X were given in a certain way?
2025-09-24 10:56:09
Client scripts are powerful for UX and quick validation, but they become risky when logic is duplicated, when DOM hacks are used, or when ordering between UI Policies and scripts is unclear. Improvements around single-source validation, better list APIs, and built-in debugging would make them far safer and more maintainable
0 Helpfuls
0 Helpfuls
Manasa 2023-06-29 10:40:13
If we are making the field read only with client script , can ITIL user can edit from list view ?
Rakhi 2023-07-11 07:40:14
Yes, they can. We generally make fields read only via onLoad/onChage client script and it works only for form view not for list view.
2 Helpfuls
0 Helpfuls
Madhuri 2023-06-29 10:43:31
How do you debug client scripts in ServiceNow? Can you explain the techniques or tools you would use?
Tirupati 2023-08-03 22:09:48
We can debug Client script by keeping alerts
var cat = g_form.getValue('catgory');
alert(cat);
.....
.....
0 Helpfuls
0 Helpfuls
Madhuri 2023-06-29 10:44:00
What is the difference between synchronous and asynchronous client scripts? When would you use each type?
Kevin 2023-07-11 07:51:56
There is not exact concept called Synchronous/Asynchronous client script.
However, if you use GlideAjax (which makes async call) in client script to get data then you can say it is Asynchronous client script. And client scripts that do not use GlideAjax, you could say those are synchronous.
0 Helpfuls
0 Helpfuls
Madhuri 2023-06-29 10:44:35
Can you describe a scenario where you used a client script to enhance the user experience in ServiceNow? What was the problem you were trying to solve, and how did the client script address it?
0 Helpfuls
Madhuri 2023-06-29 10:52:21
tell me some limitations and considerations when using client scripts in ServiceNow.
Uday 2024-01-17 11:54:08
We can use DOM manipulation.
0 Helpfuls
0 Helpfuls
Mahi 2023-07-04 20:04:21
How to trigger a UI action from list view to perform its functionality only on the selected records?
Sandhya 2023-07-09 10:58:56
Hi Mahi,
In UI action, you can use g_list object. It has method g_list.getChecked() which returns sys_id's of all selected records. Once you get sys_id's of all selected records then you can glide into those records and perform required operation further.
0 Helpfuls
0 Helpfuls
Mahi 2023-07-04 20:08:43
What all things are copied when you clone a widget?
Satyam 2023-08-14 23:50:03
Everything other than name and ID.
1 Helpfuls
0 Helpfuls
Mahi 2023-07-04 20:11:16
How do you create a new type of change?
Praveen K 2023-09-22 22:19:06
Check this documentation link - https://docs.servicenow.com/en-US/bundle/vancouver-it-service-management/page/product/change-management/task/create-a-change-model.html
0 Helpfuls
0 Helpfuls
Mahi 2023-07-04 20:13:55
When you integrate two systems, how to get the parameters dynamically?
Kajol 2023-07-09 12:12:47
There are two ways to send parameter in integration.
1. You can append parameter in URL, which later can be extracted by other system. Remember that this method is not secure as everyone can see what data you are sending.
2. You can add parameter in request body.
0 Helpfuls
0 Helpfuls
Fuel My Passion
Loving the content? Well, of course you are. Here’s your chance to indirectly fuel the chaos that keeps this website running. Your contribution helps keep the wheels turning and allows me to continue pretending to be a responsible adult—while cranking out more content for you. Thanks for supporting my delusional dreams and helping me keep this website alive!
Buy Me a Coffee
Support with UPI
If you prefer making a UPI payment to support the website maintenance cost, scan the QR code below: