Probably the best advice is to use the code widget and just drop the code into it: <script type="text/javascript">document.write(new Date().getFullYear())</script> especially with JavaScript.
I think the custom widget doesn't like JavaScript
------------------------------
James Rose | Senior Web Developer and Platform/Product Manager
Digital Infrastructure
Office of University Development | University of Michigan
------------------------------
Original Message:
Sent: 01-18-2024 13:37
From: Baylee DeVos
Subject: Data Tag for the Current Year
Hi James,
Does there need to be anything in the plain text field? I made the tag but unfortunately when I put it on the event website, it shows up as empty.
Thanks for your insight on this!
------------------------------
Baylee DeVos
Original Message:
Sent: 01-18-2024 10:36
From: James Rose
Subject: Data Tag for the Current Year
Baylee,
If you have access to Custom Data Tags. Admin > General > Custom Data Tags you should be able to create your own.
We use a custom data tag for our current year as well.
Name: Copyright Year
Type: Content Block
Code: COPYRIGHTYEAR
Tag: {[A-CUSTOM TAG:COPYRIGHTYEAR]}
HTML: <script type="text/javascript">document.write(new Date().getFullYear())</script>
Hope that helps
------------------------------
James Rose | Senior Web Developer and Platform/Product Manager
Digital Infrastructure
Office of University Development | University of Michigan
Original Message:
Sent: 01-18-2024 09:50
From: Baylee DeVos
Subject: Data Tag for the Current Year
Hello! I'm working on a project in which I need to include the current year (not the date of the event). A data tag would be ideal since my solution needs to be in text, but I can't seem to find one or a way to make one. How would I go about this?
#ManagingEvents
#Miscellaneous
------------------------------
Baylee DeVos
Billy Graham Evangelistic AssociationUnited States
------------------------------