The CreatorCon Call for Content is officially open! Get started here.

How to redirect the to approval record once we click the "Reject" button on change form.

Hemagiri B
Tera Expert

Hi Team,

I have a "Reject" button on change form, but once we click on the reject button on change from it needs to redirect to approval record form and ask the comments to reject the change. Can any one please help me with the coding part. Currently using the below code for reject button on change form.

 

HemagiriB_0-1718693000374.png

 

2 REPLIES 2

Dnyaneshwaree
Mega Sage

Hello @Hemagiri B ,

Please refer below articles:

https://www.servicenow.com/community/itsm-forum/reject-ui-action-button-for-change-approval-to-requi...
https://www.servicenow.com/community/developer-forum/making-comments-mandatory-only-on-clicking-reje...

Please accept my solution if it works for you and thumps up to mark it as helpful.

Thank you!!

Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru

@Dnyaneshwaree Thanks for your reply,
As i can see the above links are on the direct approval form and once we click the reject button it's asking the comments, but I have the "Approve" and "Reject" buttons on change form. So on the change form once we click the "Reject" button it has to redirect to the approval record then needs to set the comments before rejecting the change.