Jump to content
  • 0
Charles

Current date in a form

Question

Charles

How can I set the current date to auto fill in a text field in a fillable pdf each time the form is opened?

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
Leslie V.

Hello Charles,

Thank you for reaching out to us through our Community Forums!

You can add a custom script for this. Click on Edit All Fields. Right click on the text field you wish to auto populate and select Properties.

Select the Calculate tab> Custom Calculation script and add your script.

var today = new Date();
event.value = util.printd("mmmm dd, yyyy", today);


Immediately you should see the date populate into the field.

Please note that we do not provide support for creating and editing scripts. The script above has been useful for several users of Nitro Pro. However, should you need any additional assistance with JavaScript, a web search will generate the information you are looking for.

I hope this helps!

Share this post


Link to post
Share on other sites
  • 0
margos186

Leslie,

I too tried the script above and it works. How do you make it so the date will not refresh each time you

open the pdf form?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using this site, you agree to our Terms of Use.