get yes/no in client script confirmation prompt

anur
Kilo Contributor

Have a client script, which on a clearing a field value , will give below confirm dialog

find_real_file.png

Is there anyway to get "yes" and "no" instaed of "ok" and "cancel"

Thanks

6 REPLIES 6

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello rajashekharmushke



The question is how to change the label. How can we achieve it via alert as you mentioned above?


sorry about that, i totally misunderstood.




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

Rajesh Mushke
Mega Sage
Mega Sage

Hey Anu,



Might be helpful to you.



Please Refer:


https://www.servicenowguru.com/scripting/client-scripts-scripting/javascript-popup-boxes-servicenow/


https://www.servicenowguru.com/scripting/client-scripts-scripting/custom-dirty-form-message/




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke