Does anyone know how to change the button text for the user consent pop-up?

kwong43
Tera Expert

Hello,

 

I was curious if anyone knew how to change the button text for the user consent pop-up (Non-EU & Non-US user)? We would like to change it from "Agree" to "Okay".

 

kwong43_0-1712953789042.png

 

1 ACCEPTED SOLUTION

kwong43
Tera Expert

Hi everyone,

 

We ended up contacting ServiceNow support and they provided a solution that is along the lines of what @Deepak Shaerma  and @Mark Roethof had mentioned in their previous post. I posted the solution below if anyone needs it in the future.

 

 

To make the change, i.e. to make the button text change from 'Agree' to 'Okay', you can create a new sys_ui_message record as below.

Key: Agree
Message: I get it!
Language: English

 

kwong43_0-1713982797664.png

 

 

View solution in original post

4 REPLIES 4

Deepak Shaerma
Kilo Sage

Hi @kwong43 
ServiceNow uses UI pages, UI macros, or custom widgets (if using Service Portal) to generate and display UI elements such as consent pop-ups. You need to locate the exact file that is responsible for rendering the consent pop-up.

2. Modify the Button Text:
Once you’ve located the file, search for the “Agree” button code. It would likely be in an HTML form within a UI Page or a widget in the Service Portal. Change the text from “Agree” to “Okay” in the HTML or script file. If you’re working within the Service Portal widget, you’d modify the HTML template or the client script part that generates the button label.
Please Mark this Helpful and Accepted Solution. If this Helps you to understand. This will help both the community and me..
- Keep Learning ‌‌
Thanks & Regards 
Deepak Sharma 


Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Have you tried UI Messages, to see if you can control this from there? 

 

I would need to reproduce, though if ServiceNow has set this up properly, most likely the button translation is through UI Messages. Not only translation, though also to overwrite English wording. So no customization of a UI Page or whatever.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Community Alums
Not applicable

Hi @kwong43 ,

I checked your problem in my PDI and I checked in widgets, UI Pages and UI Macro I didn't find anything for the popup thing but in UI Messages I found the whole containt for the Enable Analytics - "glide.analytics.consent.other.text"

Please check the image below

 

SarthakKashya2_1-1713009733207.png

 

 

Please mark my answer correct and helpful if this wokrs for you

 

Thanks and Regards 

Sarthak

 

kwong43
Tera Expert

Hi everyone,

 

We ended up contacting ServiceNow support and they provided a solution that is along the lines of what @Deepak Shaerma  and @Mark Roethof had mentioned in their previous post. I posted the solution below if anyone needs it in the future.

 

 

To make the change, i.e. to make the button text change from 'Agree' to 'Okay', you can create a new sys_ui_message record as below.

Key: Agree
Message: I get it!
Language: English

 

kwong43_0-1713982797664.png