How to create UI page with two buttons yes or no when click Approve
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2025 12:13 AM
Hi Everyone,
I have a requirement when approver click Approve need to display dialog box with two buttons Yes and No
with display the content
"Have all tickets transferred appropriate group"
If click on Yes request should approve
If click on No state should not change
I create UI page with below code for create two buttons
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<div>
<h2>have all active tickets, tasks, and application approvers and support team been transferred to the appropriate group?</h2>
<button id="yes_button" class="btn btn-danger" onclick="yes_button();">Yes</button>
<button id="no_button" class="btn btn-secondary" onclick="no_button();">No</button>
</div>
</j:jelly>
Please help on create client script
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2025 09:50 AM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader