hi
I’d like to set up a dynamic content fiend that updates to the day of the week so i can insert it into emails, like this:
happy Monday… (if email goes out on a monday)
or happy Tuesday (if the email goes out on a tuesday)
I set up a dynamic content field with this code:
<p style="box-sizing: border-box;">Happy <span id="today" style="box-sizing: border-box;">Tuesday</span>!</p>
<script style="box-sizing: border-box;">
document.getElementById("today").innerHTML = new Date().toLocaleDateString('en-us',
{
weekday: "long",
});
</script>
and it seems to be working, the field is updating, but how do I now insert this dynamic content field (which shows as ID 1) into my template email?
what token do I use?
thank you.