Can we change the text of confirm window button

MMKK
Tera Expert

Hi All,

I need to rename the button text on the confirm dialog box from ok and Cancel to submit and back.

Can we do this. If so, where should I do it?

Many Thanks.

1 ACCEPTED SOLUTION

VigneshMC
Mega Sage

You can't alter button names in confirm box, alternatively you can create your own ui page and name buttons as you like

https://www.servicenowguru.com/system-ui/glidedialogwindow-advanced-popups-ui-pages/

Thanks

View solution in original post

3 REPLIES 3

Santhana Rajhan
Mega Sage

May i know where is this button?

VigneshMC
Mega Sage

You can't alter button names in confirm box, alternatively you can create your own ui page and name buttons as you like

https://www.servicenowguru.com/system-ui/glidedialogwindow-advanced-popups-ui-pages/

Thanks

asifnoor
Kilo Patron

Hi,

The confirm() accepts only 1 parameter which is text to display. The buttons in the confirm come from browser built-in dialog. You have to use an alternative solution such as custom popup to achieve this.

Mark answer as correct and helpful if this answers.