Hey Everyone!
I had a similar request a while back but for phone numbers. I think the code would be the same but would need to replace the field it's reading to determine the which unsub link it needs to direct to.
Looking for help to know what I need to use or if there is a better way.
Also, this is going to be in a fragment we use for our footers.
Current code:
<%
var phoneNumber="1-800-xxx-xxxx";
if(context.delivery.label.toLowerCase().indexOf("password") >= 0){
phoneNumber = "1-800-xxx-xxxx";
}
if(context.delivery.label.toLowerCase().indexOf("paperless confirmation") >= 0){
phoneNumber = "1-800-xxx-xxxx";
}
document.write(phoneNumber);
%>