Job Switch Kit: Everything you need to crack your next ServiceNow interview Get Job Switch Kit →
Get the complete ServiceNow interview prep system — 500+ Q&A, mock interviews & more Get Job Switch Kit →

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.

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.

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.

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

Most candidates who fail weren't underskilled.
They were underprepared.

These free questions cover the basics. But interviews go deeper. Discovery, ITOM, SecOps, Flow Designer, Now Assist, AI Agents. The Job Switch Kit gives you the full 15-day roadmap, 500+ structured Q&A across every module, a LinkedIn profile optimisation guide so recruiters find you before you even apply, and an interview bot that practices with you until you're ready. Most candidates walk in under-prepared. Don't be one of them.

500+ Q&A — Technical & Behavioral, Every Module

Battle-tested questions with structured answers across every high-frequency topic — ITOM, SecOps Vulnerability Response, Discovery, Flow Designer, AI Agents, Generative AI, and Now Assist. Plus a dedicated Behavioral round covering HR questions, STAR method answers, salary negotiation, and career direction — because technical prep alone is not enough to get the offer

15-Day Structured Roadmap

Day-by-day curriculum in the right order — scripting fundamentals, ITSM & CMDB, integrations, AI modules, and behavioral prep — so you peak exactly on interview day

Unlimited Interview Bot

Two modes: system-guided sessions with curated ServiceNow questions, and self-practice where you bring your own questions. Every session is recorded — download your Q&A transcript, review your answers, and pinpoint exactly where you need to improve

Salary Negotiation Playbook

Proven strategies for counter-offers, CTC decoding & in-hand salary strategy

Job Switch Strategy

Notice period tactics, BGV prep, resignation playbook & offer comparison

Progress Tracker + Notes

Track completion per topic, rate your confidence per question, add private notes at question level and page level. Only you see them. Always know exactly what to tackle next

LinkedIn Profile Optimisation

Step-by-step guide to rank in recruiter searches before you apply. Module-specific keyword lists, role-based headline and About section templates, experience bullet formulas, and certification display guidance built specifically for ServiceNow professionals

Get Job Switch Kit →

🔒 Secure payment via Razorpay · Instant access after payment

10 days free — for your honest review

Your story could be the reason someone else lands their next ServiceNow role

If this content made a real difference in your prep, sharing that experience with your network helps other professionals discover it — and we'd love to say thank you with 10 days of premium access, completely on us.

Real Interview Questions & Answers

Questions shared by ServiceNow professionals and reviewed for clarity, relevance, and interview usefulness.

Gvk 23 Aug 2025
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").
0 helpful
Sree 18 Sep 2024
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
Anonymous 26 Nov 2024
you need to capture the data in url and pass those in the variables using onLoad catalog client script
0 helpful
0 helpful
Keerthana Arumugam 09 May 2024
which type of script run in both client and server in servicenow
Suri 06 Oct 2024
Script Includes or REST API calls
0 helpful
Sumit Kumar 10 Nov 2024
UI actions using gsftsubmit
0 helpful
0 helpful
Suresh 19 Mar 2024
how to restrict UI action do display only in selected views.
Swapnil 28 Jun 2024
Using UI Action Visibility Related List.
0 helpful
1 helpful
Navdeep Singh 24 Oct 2023
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!
Pradeep 11 Apr 2024
I don't see any OOb method to retrieve all the records in the list, But this can be achieved by using a GlideAjax call, g_list.getChecked() returns the comma separated sys_ids of the selected records. Here we can use g_list.getQuery() which returns the encoded query of the list filter, then we can pass this to the GlideAjax script include as a parameter, and then in the Script Include we can use this Encoded Query to glide the table, and then return sys_ids of the records back to the client side
3 helpful
2 helpful
Mahi 04 Jul 2023
How to trigger a UI action from list view to perform its functionality only on the selected records?
Sandhya 09 Jul 2023
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 helpful
0 helpful
Niru 19 Jun 2023
What is gsftsubmit in UI action ?
Rakesh 21 Jun 2023
Hi Niru, With this function, we can write client as well as Server side script in same UI action. More details here : https://servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action
0 helpful
Gvk 23 Aug 2025
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").
0 helpful
1 helpful
Share a Question

🚀 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.

📱

ServiceNow Buddy App

Get the free Android app for a smoother experience.

Install
Comments

No comments yet — be the first to share your thoughts!

📝 My Topic Notes 🔒 Only visible to you
Log in or sign up free to save notes
Previous UI/Data Policy Quesions Next Transform Map Questions

Found these questions helpful?

Share your experience — it helps other ServiceNow professionals know what to prepare.

Share Your Story →