Servicenow Interview Questions
- Posted by admin
- Categories ServiceNow
- Date April 11, 2022
- Comments 0 comment
Overview
Servicenow is the cloud based software platform. I have collected the most frequently asked interview questions by interviewers in recent years. For your better understanding I have divided all the questions based on topics.
Following are the list of most frequently asked questions and their explanations.
You may refer top 50 Servicenow interview questions from here
Scripting
1.)What is the difference between script include, business rule, client script?
Script Include: Reusable script contains function or class which can be called from server and client script.
Sever script: Script which run on server side, and able to perform database operation.
Client Script: Script run on browser or we can say client side is called Client Script.
2.)Types of client script?
Four types of client script:-
onLoad() :-The system loads a form
onChange() :-The system loads a form loads and no field values have changed
A field value changes
onSubmit() :-A user saves the form
onCellEdit() :-A list cell value changes
3.)How you will stop form to get submit if some condition is not matching? In Client Script and Business Rule
In Business Rule:- object.setAbortAction(true); [object of GlideRecord API or current]
In Client Script:- we have to return false
4.)How many ways are there to make field mandatory?
You can make a field mandatory using the below methods::-
1. UI Policy
2. Dictionary [Mandatory true ]
3. Client Script [g_form.setMandatory(“field_name”,true);]
4. Data Policy
5.)What is the syntax to make a field Mandatory using Client Script
g_form.setMandatory(“field_name”,true);