Answered
I created a form last year with two "Year" fields. I received help on forum with custom calculation scripts to update the year to the current year in each of the fields. "Year1" needs to be the year that ended on 12/31 and "Year2" needs to be the current year. They need to update to the appropriate years on each new year. The custom calculation in "Year1" is:
// using the getFullYear() method:
event.value = new Date().getFullYear() - 1
and in "Year2" is:
var year=new Date().getFullYear();
event.value = year
Apparently the scripts did not update as expected. Would sure appreciate any assistance to fix these fields or please let me know if this is not something that can even work the way we would like. Thanks in advance for your help!
A better location for the code would be in a document-level JavaScript (outside of a function) so that the code is executed every time the document is opened.