This content has been marked as final. Show 6 replies
And I thought the function needed to be bound to something or other.
Making it harder than it needs to be, one day at a time.
> Making it harder than it needs to be, one day at a time.
My statement about making it harder was a reference to my making what should have been obvious more difficult than it needed to be.
Thanks for your help.
You can use the following script as a document level script. It removes the use of a a variable and sets the "Today" field so that if the form is reset the current date will not be removed.
this.getField("Today").defaultValue = util.printd("mm/dd/yyyy", new Date());
this.getField("Today").value = this.getField("Today").defaultValue;