- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2016 03:01 AM
Good mornig everybody,
I'm using a notification email script to add an unsubscribe link to some notfications ( like template.print('<a href="' + gs.getProperty('glide.servlet.uri') + 'unsubscribe.do?sysparm_notification=' + email_action.sys_id + '">Click here to Unsubscribe</a> from the "' + email_action.name + '" Notification<br />\n'); ) ;
I would like to change the message displayed on the page that came after the link is clicked : "You have been successfully unsubscribed from all emails of this type." , translating it in Italian.
Is there someone who may help me, please?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2016 03:55 AM
Thanks for your quick reply,
but it's not what I was looking for.
After few researches and coffes, I found a UI Page -> unsubscribe that bring this html code
<g:ui_form>
<input type="hidden" id="sysparm_notification" name="sysparm_notification" value="${sysparm_notification}"/>
<html>
<body>
<p></p>
<center><font face="Arial, Helvetica, sans-serif" size="-1">You have been successfully unsubscribed from all emails of this type.</font>
</center>
</body>
</html>
</g:ui_form>

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2016 03:17 AM
That's exactly what gs.getMessage() is for.
http://wiki.servicenow.com/index.php?title=GlideSystem#getMessage.28String.2C_Object.29&gsc.tab=0
You define your translations on the sys_ui_message table, then retrieve the message with the key you define. ${gs.getMessage("my_message_key")}
Go to System UI > Messages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2016 03:55 AM
Thanks for your quick reply,
but it's not what I was looking for.
After few researches and coffes, I found a UI Page -> unsubscribe that bring this html code
<g:ui_form>
<input type="hidden" id="sysparm_notification" name="sysparm_notification" value="${sysparm_notification}"/>
<html>
<body>
<p></p>
<center><font face="Arial, Helvetica, sans-serif" size="-1">You have been successfully unsubscribed from all emails of this type.</font>
</center>
</body>
</html>
</g:ui_form>

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2016 03:37 PM
I thought you said you wanted translation?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2016 11:47 PM
Sorry, may be I didn't make that clear.
I said I would like to translate the message showed in a page, I didn't thought it was a UI Page, when I realized it it was to late I already had posted this thread.