How to create UI page with two buttons yes or no when click Approve

Brahmi Pandla
Tera Guru

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

@Brahmi Pandla 

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