How to modify the unsubscription message (unsubscribe.do)

lucap_
Mega Sage

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?

1 ACCEPTED SOLUTION

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>


View solution in original post

4 REPLIES 4

Geoffrey2
ServiceNow Employee
ServiceNow Employee

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


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>


Geoffrey2
ServiceNow Employee
ServiceNow Employee

I thought you said you wanted translation?


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.