A customer wants to use a client script to validate things on a form m order to make sure the submission makes sense. What type of client script would you recommend to meet this requirement?
Correct Answer: B
InServiceNow,Client Scriptsrun on the client-side (browser) andmodify form behaviordynamically. Tovalidate form data before submission, you must use anonSubmit()Client Script. Executes Before Form Submission TheonSubmit() Client Scriptrunsjust before the form is submitted, allowing validation checks. If an issue is found, you canprevent form submissionusingreturn false;. Best for Data Validation Can check ifrequired fieldsare filled. Can enforcebusiness rules on the client-side. Example: Preventing submission if the"Short Description"field is empty. Why is "onSubmit()" the Correct Answer? ExampleonSubmit()Client Script:functiononSubmit() { varshortDesc = g_form.getValue('short_description'); if(!shortDesc) { alert('Short Description is required before submitting.'); returnfalse; // Stops the form from being submitted } returntrue;// Allows form submission } A: onSubmission()Incorrect-This is not a valid ServiceNow Client Script type. C: onLoadIncorrect-Runs when the form loads, butdoes not validate form submission. D: onUpdate()Incorrect-Runs when a record is updated, but doesnot control form submission. Incorrect Answer Choices Analysis: ServiceNow Docs - Client Scripts Overview#Understanding Client Scripts ServiceNow Docs - Using onSubmit() Client Scripts#Client Script Examples Official ServiceNow Documentation References:
Question 302
What are the three components of a filter condition?
Correct Answer: A
In ServiceNow, a filter condition is used to define search criteria for records in a table. A filter consists of three primary components: Field → The database field to be evaluated (e.g., priority, state, assigned_to). Operator → Specifies how the field should be compared to a value (e.g., is, contains, greater than). Value → The expected data in the field (e.g., High, Resolved, John Doe). Example of a Filter Condition: Filter Condition: Priority is High Field: Priority Operator: is Value: High Another Example: State is not Resolved Field: State Operator: is not Value: Resolved Why Option A is Correct? ✅ Field, Operator, and Value are the correct components used to create a filter condition. Why Other Options Are Incorrect? ❌ B. Condition, Operator, and Value → Incorrect because "Condition" is a result of a Field + Operator + Value, not a separate component. ❌ C. Field, Condition, and Value → Incorrect because "Condition" is not a direct component. ❌ D. Variable, Field, and Value → Incorrect because variables are used in forms, not in filter conditions. Reference from Certified System Administrator (CSA) Documentation: ServiceNow Docs - Creating and Applying Filters https://docs.servicenow.com ServiceNow Learning - Query Builder and Conditions ServiceNow Best Practices - Using Filters in Lists and Reports
Question 303
The display sequence is controlled in a Service Catalog Item using which of the following?
Correct Answer: C
In ServiceNow'sService Catalog, the display sequence of variables within aCatalog Itemis controlled by theOrder field in the Variable form. TheOrder fielddetermines the position in which the variables appear when a user fills out a catalog item. Lower values appear first, and higher values appear later. (A) The Default Value field in the Catalog Item form - Incorrect TheDefault Valuefield sets an initial value for a variable but doesnotcontrol the display sequence. It is used to pre-fill a value when the form loads. (B) The Sequence field in the Catalog Item form - Incorrect There isno such fieldcalled "Sequence" in the Catalog Item form. The field that determines the sequence of variables is theOrderfield in the Variable form. (C) The Order field in the Variable form - Correct Each variable in a catalog item has anOrder field. Variables with a lower order number are displayedbeforethose with a higher order number. If multiple variables have the same order value, ServiceNow orders them based oninternal system processing order. (D) The Choice field in the Variable form - Incorrect TheChoice fieldapplies only toMultiple Choice, Select Box, and Radio Buttonvariables, determining the selectable options for users. It doesnotcontrol the display sequence of variables in a catalog item form. Explanation of Each Option: It is a best practice to useincremental numbering (e.g., 100, 200, 300, etc.)for order values instead of consecutive numbers (e.g., 1, 2, 3). This makes it easier to insert new variables later without having to renumber existing ones. The order values are respectedunless a layout configuration (e.g., multi-column form layout)changes the positioning. ServiceNow Docs: Creating and Configuring Service Catalog Variables https://docs.servicenow.com ServiceNow Community Best Practices for Service Catalog Variables https://community.servicenow.com Additional Notes & Best Practices:References from Certified System Administrator (CSA) Documentation:
Question 304
How would you define an Access Control, to allow a user with iti role to have permission to create incident records?
Correct Answer: E
InServiceNow,Access Control Rules (ACLs)are used togrant or restrict permissionsfor performing actions on a table or field. To allow a user with theitilrole tocreate Incident records, the correctAccess Control Rulemust: Apply to theincidenttable Grant the " create " operation Be restricted to users with the " itil " role Breaking Down the Correct ACL Configuration:ACL Field Correct Value Name incident.None(applies to the table-level, not a field) Operation create(allows creating new records) Role itil(only users with the itil role can create incidents) incident.None#Applies to the entire table(for record creation). incident.*#Applies to all fieldsin the table (not needed for create operations). Why is " incident.None " used instead of " incident.* " ? A). Name:incident"; Permission: write; Role: itilIncorrect- The " write " permissionallows editing existing records, butdoes not allow creating new ones. B). Name:incident Any, Operation: write, Permission: itilIncorrect- There is no such name format " incident Any " in ACLs. Also, " write " does not allow record creation. C). Name:incident.*; Operation: write; Permission: itilIncorrect- " incident.* " appliesto all fields in the table, but doesnot apply to record creation. D). Name:incident None, Permission: create: Role: itilIncorrect- The correct format uses " Operation: create " , not " Permission: create " . Incorrect Answer Choices Analysis: ServiceNow Docs - Access Control Rules# How ACLs Work ServiceNow Docs - Configuring ACLs for Tables and Fields# Table-Level vs Field-Level ACLs Official ServiceNow Documentation References:
Question 305
What component causes a flow to run after a record has been created or updated?
Correct Answer: B
A record-based trigger is a component that causes a flow to run after a record has been created or updated in a specified table1. It allows users to define conditions and actions for the flow based on the record's state and values1. For example, a record-based trigger can start a flow when a new incident is created or when an existing incident is updated with a certain priority1. Reference Flow trigger types - Product Documentation: San Diego - ServiceNow1