ServiceNow UI Action Interview Questions 2026
What is UI action?
UI actions include the buttons, links, and context menu items on forms and lists.
Configure UI actions to make the UI more interactive, customized, and specific to user activities.
UI actions include the buttons, links, and context menu items on forms and lists.
Configure UI actions to make the UI more interactive, customized, and specific to user activities.
How to override UI Actions for an extended table?
There are two ways to override UI action:
1. Complete the following steps to override a UI action on the Task table for just the Incident table.
- Create a UI action on the Incident table with the same Action name.If the Action name is not defined, use the same Name.
Enter a script that is specific to the Incident table.
- Complete the following steps to remove a UI action on the Task table for the Incident table.
Navigate to the UI action definition for the Task table.
Add the condition current.getRecordClassName() !='incident'.
2. We can override the parent table UI action on the child table via setting the 'Override' field.
There are two ways to override UI action:
1. Complete the following steps to override a UI action on the Task table for just the Incident table.
- Create a UI action on the Incident table with the same Action name.If the Action name is not defined, use the same Name.
Enter a script that is specific to the Incident table.
- Complete the following steps to remove a UI action on the Task table for the Incident table.
Navigate to the UI action definition for the Task table.
Add the condition current.getRecordClassName() !='incident'.
2. We can override the parent table UI action on the child table via setting the 'Override' field.
Type of UI actions?
Based on the type of script, it could be divided into 3 types:
1. Client Side.
2. Server Side.
3. Client as well as Server Side.
Based on it's position on the form, it could be divided into following types:
1. Button on a form.
2. Context menu item on a form that appears when you open the form context menu or right-click the form header.
3. Related link in a form.
4. Button in the banner on top of a list.
5. Button at the bottom of a list.
6. Context menu item on a list that appears when you open the list context menu or right-click the list header.
7. Menu item for the action choice list at the bottom of a list.
8. Related link at the bottom of a list.
Based on the table, it could be divided into following types:
1. Global UI actions.
2. Table UI action.
Based on the type of script, it could be divided into 3 types:
1. Client Side.
2. Server Side.
3. Client as well as Server Side.
Based on it's position on the form, it could be divided into following types:
1. Button on a form.
2. Context menu item on a form that appears when you open the form context menu or right-click the form header.
3. Related link in a form.
4. Button in the banner on top of a list.
5. Button at the bottom of a list.
6. Context menu item on a list that appears when you open the list context menu or right-click the list header.
7. Menu item for the action choice list at the bottom of a list.
8. Related link at the bottom of a list.
Based on the table, it could be divided into following types:
1. Global UI actions.
2. Table UI action.
How to write both server side and client side code in UI action? OR What is gsftSubmit() method in UI Action?
To write Server and Client side script in UI action, we need to use gsftSubmit method as shown below:
//Client-side 'onclick' function
function runClientCode(){
if( == false){
return false; //Abort submission
}
//Call the UI Action and skip the 'onclick' function
gsftSubmit(null, g_form.getFormElement(), ''); //MUST call the 'Action name' set in this UI Action
}
//Code that runs without 'onclick'
//Ensure call to server-side function with no browser errors
if(typeof window == 'undefined')
runBusRuleCode();
//Server-side function
function runBusRuleCode(){
current. = ;
current.update();
gs.addInfoMessage('You did it!');
action.setRedirectURL(current);
}
For more details, please refer link :Client and Server Code in One UI Action
To write Server and Client side script in UI action, we need to use gsftSubmit method as shown below:
//Client-side 'onclick' function
function runClientCode(){
if( == false){
return false; //Abort submission
}
//Call the UI Action and skip the 'onclick' function
gsftSubmit(null, g_form.getFormElement(), ''); //MUST call the 'Action name' set in this UI Action
}
//Code that runs without 'onclick'
//Ensure call to server-side function with no browser errors
if(typeof window == 'undefined')
runBusRuleCode();
//Server-side function
function runBusRuleCode(){
current. = ;
current.update();
gs.addInfoMessage('You did it!');
action.setRedirectURL(current);
}
For more details, please refer link :Client and Server Code in One UI Action
These free questions are just the beginning.
The Job Switch Kit gives you 500+ battle-tested Q&A, a day-by-day prep roadmap, mock interview practice, and a complete career strategy — everything to walk in confident and walk out with an offer.
Battle-tested questions with structured answers — includes concept deep dives & scenario-based questions across every high-frequency topic
Day-by-day curriculum covering all 25 must-know topics in the right order
Full 45-min mock sessions with recording, transcript & instant feedback
Proven strategies for counter-offers, CTC decoding & in-hand salary strategy
Notice period tactics, BGV prep, resignation playbook & offer comparison
Per-topic dashboard, per-question confidence ratings, and topic completion progress — always know what to tackle next
Add private notes per question and per topic — only you see them. Star questions for your revision list and download as PDF
🔒 Secure payment via Razorpay · Instant access after payment
Real Interview Questions & Answers
Questions shared by ServiceNow professionals and reviewed for clarity, relevance, and interview usefulness.
Q : Why we use Null in gsftSubmit() In the context of ServiceNow's gsftSubmit() function, using null for the first parameter typically indicates that the notification or confirmation message generated by the UI Action should appear in the global notification container at the top of the page, rather than being attached to a specific HTML element on the form. It's a common and recommended practice for most scenarios, providing a general notification area for the user. Understanding gsftSubmit() gsftSubmit() is used in UI Actions that have both client-side and server-side scripts. It allows you to execute the client-side script first for validation or other client-side logic, and then trigger the server-side code of the same UI Action. The gsftSubmit() Syntax The typical syntax is: gsftSubmit(null, g_form.getFormElement(), "action_name").
There is a button on incident form, when I click on that it should redirect to RP and few fields from Incident should be mapped with RP variables Ex: Caller with Requested For Short Description with Short Desc Description with Desc
which type of script run in both client and server in servicenow
how to restrict UI action do display only in selected views.
Hi, I have a question when we use "g_list.getChecked()" it returns the sys_ids of all the selected records but how can I get all the records. I have a requirement that If I don't select any records that means we need all the records. Thanks in advance!
How to trigger a UI action from list view to perform its functionality only on the selected records?
What is gsftsubmit in UI action ?
🚀 Power Up Your ServiceNow Career
Join a growing community of smart ServiceNow professionals to stay ahead in interviews, sharpen your development skills, and accelerate your career.