Skip to main content
Known Participant
September 8, 2020
Question

Today's data

  • September 8, 2020
  • 1 reply
  • 522 views

I have a form that when opened, there is a "Today's Date" field that is supposed to grab the date. But it is not updating. It got a date of 03/18/2020 in there. I don't know where that date is coming from.

 

I followed this article, but no luck.

https://answers.acrobatusers.com/add-automated-today-date-form-javascript-q118604.aspx

 

I am using Adobe Acrobat Pro DC Version 2020.012.20043. Any help would be appreciated.

This topic has been closed for replies.

1 reply

ls_rbls
Community Expert
Community Expert
September 8, 2020

Is that field clickable or editable with a date picker? or is it read-only?

 

Is this field also used in a date calculation with other date fields? 

 

Have you checked if during form editing another datefield was rename with this same fieldname and now is grabbing that other's field's value?

 

And if you use CTRL+J to open the  debugger console what error(s) can you spot?

randyd69Author
Known Participant
September 8, 2020

 

Is that field clickable or editable with a date picker? or is it read-only? Read-only

 

Is this field also used in a date calculation with other date fields? 

Have you checked if during form editing another datefield was rename with this same fieldname and now is grabbing that other's field's value? I did duplicate the field to a second page.

 

And if you use CTRL+J to open the  debugger console what error(s) can you spot?

TypeError: f is null
4:Document-Level:dateToday

 

try67
Community Expert
Community Expert
September 8, 2020

That means a field name specified in the code of that function is incorrect.

You should be able to find it under Tools - JavaScript - Document JavaScripts.