- A
Create a UI Policy on the incident table with a client script that shows the button conditionally.
Why wrong: Incorrect. UI Policies modify field properties (e.g., visibility, mandatory) based on conditions, but they cannot create new buttons. They are not designed to add UI elements like custom buttons.
- B
Create an Access Control Rule (ACL) on the incident table and attach a client script.
Why wrong: ACLs control access, not UI elements.
- C
Create a Business Rule on the incident table that injects a button via server-side code.
Why wrong: Business Rules run server-side and cannot directly modify client UI.
- D
Create a UI Action on the incident table with a client script and set the 'Show insert' condition.
Correct. UI Actions allow adding custom buttons to forms and attaching client scripts. By setting the 'Show insert' condition appropriately, the button can be displayed on the form and execute a client script that shows a confirmation dialog before submission.
How to Add a Custom Button to Service Portal Form with Confirmation Dialog
This SNOW-CAD practice question tests your understanding of user interface development. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A developer is asked to add a custom button to the Service Portal form for the 'incident' table. The button should trigger a client script that displays a confirmation dialog before submitting the form. Which approach should the developer use?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Create a UI Action on the incident table with a client script and set the 'Show insert' condition.
Option D is correct because UI Actions in Service Portal are the standard mechanism for adding custom buttons to forms. By creating a UI Action on the incident table with a client script, the developer can add a button that triggers a confirmation dialog before form submission. UI Policies only control field attributes (e.g., visibility, mandatory) and cannot create new UI elements like buttons.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Create a UI Policy on the incident table with a client script that shows the button conditionally.
Why it's wrong here
Incorrect. UI Policies modify field properties (e.g., visibility, mandatory) based on conditions, but they cannot create new buttons. They are not designed to add UI elements like custom buttons.
- ✗
Create an Access Control Rule (ACL) on the incident table and attach a client script.
Why it's wrong here
ACLs control access, not UI elements.
- ✗
Create a Business Rule on the incident table that injects a button via server-side code.
Why it's wrong here
Business Rules run server-side and cannot directly modify client UI.
- ✓
Create a UI Action on the incident table with a client script and set the 'Show insert' condition.
Why this is correct
Correct. UI Actions allow adding custom buttons to forms and attaching client scripts. By setting the 'Show insert' condition appropriately, the button can be displayed on the form and execute a client script that shows a confirmation dialog before submission.
Related concept
Read the scenario before looking for a memorised answer.
Common exam traps
Common exam trap: answer the scenario, not the keyword
A common mistake is to assume UI Policies can add custom buttons because they control client-side behavior. However, UI Policies only modify existing field properties; they cannot inject new UI elements. UI Actions are specifically designed for adding buttons and attaching client scripts to them.
Detailed technical explanation
How to think about this question
UI Policies in ServiceNow are evaluated client-side in the browser, making them ideal for dynamic UI changes like showing a confirmation dialog without a server call. The client script attached to a UI Policy runs on the 'onLoad' or 'onChange' event, allowing you to manipulate the DOM or use GlideDialogWindow to display a custom confirmation. In Service Portal, UI Policies work with AngularJS widgets, so the script must use the spModal API (e.g., spModal.confirm) to show a dialog that can conditionally prevent form submission based on user input.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A security administrator must allow nursing staff to reach a patient records server while blocking access from the guest Wi-Fi VLAN. After applying an extended ACL, traffic is still blocked from nursing workstations. The ACL was applied outbound instead of inbound on the wrong interface. Questions like this test ACL direction and placement rules.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
User Interface Development — study guide chapter
Learn the concepts, then practise the questions
- →
User Interface Development practice questions
Targeted practice on this topic area only
- →
All SNOW-CAD questions
500 questions across all exam domains
- →
ServiceNow Certified Application Developer CAD study guide
Full concept coverage aligned to exam objectives
- →
SNOW-CAD practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related SNOW-CAD practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Working with Data practice questions
Practise SNOW-CAD questions linked to Working with Data.
Platform Features and Integration practice questions
Practise SNOW-CAD questions linked to Platform Features and Integration.
Integrating and managing application data practice questions
Practise SNOW-CAD questions linked to Integrating and managing application data.
Automating application logic with business rules and scripts practice questions
Practise SNOW-CAD questions linked to Automating application logic with business rules and scripts.
Application development using ServiceNow Studio practice questions
Practise SNOW-CAD questions linked to Application development using ServiceNow Studio.
Creating and customizing tables and data practice questions
Practise SNOW-CAD questions linked to Creating and customizing tables and data.
Designing interfaces and user experiences practice questions
Practise SNOW-CAD questions linked to Designing interfaces and user experiences.
Core Application Development practice questions
Practise SNOW-CAD questions linked to Core Application Development.
User Interface Development practice questions
Practise SNOW-CAD questions linked to User Interface Development.
SNOW-CAD fundamentals practice questions
Practise SNOW-CAD questions linked to SNOW-CAD fundamentals.
SNOW-CAD scenario practice questions
Practise SNOW-CAD questions linked to SNOW-CAD scenario.
SNOW-CAD troubleshooting practice questions
Practise SNOW-CAD questions linked to SNOW-CAD troubleshooting.
Practice this exam
Start a free SNOW-CAD practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this SNOW-CAD question test?
User Interface Development — This question tests User Interface Development — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Create a UI Action on the incident table with a client script and set the 'Show insert' condition. — Option D is correct because UI Actions in Service Portal are the standard mechanism for adding custom buttons to forms. By creating a UI Action on the incident table with a client script, the developer can add a button that triggers a confirmation dialog before form submission. UI Policies only control field attributes (e.g., visibility, mandatory) and cannot create new UI elements like buttons.
What should I do if I get this SNOW-CAD question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Keep practising
More SNOW-CAD practice questions
- A company has a custom table 'u_training_course' with a reference field to 'sys_user' named 'u_instructor'. The requirem…
- A company has a custom table 'u_asset' with a reference field 'u_location' pointing to 'cmn_location'. When a user chang…
- A developer needs to create a new application scope. Which of the following is a best practice when defining the scope?
- A company has a custom table 'u_incident_task' that extends 'task'. The developer wants to add a field 'u_approval' that…
- Which TWO of the following are types of UI Policies? (Choose two.)
- The ACL above is on the 'incident' table. A user with role 'itil' tries to update an incident record. What will happen?
Last reviewed: Jun 11, 2026
This SNOW-CAD practice question is part of Courseiva's free ServiceNow certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SNOW-CAD exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.