Request Approval UI Action on change form

Aditya2
Kilo Expert

Hi,

I have a requirement where I need to display a confirm message when a user clicks on request approval UI Action.

find_real_file.png

The form should remain on the same page when user clicks CANCEL.

find_real_file.png

I've written a onSubmit Client Script.

find_real_file.png

This is the UI Action.

find_real_file.png

 

Issue is the form is moving to assess even after selecting CANCEL. Can anyone figure out what the exact issue is and suggest appropriate changes.

Thanks

Aditya