We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Changing the name of the UI Button on UI Page.

pandeyved
Tera Contributor

Hi All,
I got a requirement to rename the Button on UI Page from OK to Submit. Please help me in providing the solution.
Here I am attaching the image.

pandeyved_0-1684478294159.png

 

pandeyved_1-1684478294164.png

 

 

1 REPLY 1

Ankur Bawiskar
Tera Patron

@pandeyved 

2 ways

1) you can use button tag instead of <g:dialog_buttons_ok_cancel> tag

this link has solution

Changing button names in GlideModal UI Page 

OR

2) update as this

<g:dialog_buttons_ok_cancel ok_text="${gs.getMessage('Submit')}" ok="return actionOK()" ok_type="button" cancel_type="button" cancel="cancel()"/>

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader