Skip navigation
Currently Being Moderated

Date Time field

Feb 15, 2005 1:19 PM

I would like to add a Date to my document that will display the current date. I have added the Date Time field, but it does not automatically fill. It is displaying a select button as part of the field. I must select the button, which in turn displays a calendar, that allows me to select today's date. For the value type, I have selected "Calculated - User Can Override". I have tried "Calculated- Read Only" but then it doesn't display any date, just the button, and I am not able to use the button. Is there a way to have it just fill in today's date without this extra step and extra image to mess with the visual of this form?
 
Replies
  • Currently Being Moderated
    Feb 15, 2005 1:40 PM   in reply to (Rebecca_Belcher)
    Set the field type to "calculated - read only", check the Runtime Property radio button, set it to current date/time (if needed), then set the edit pattern to get it to display the way you want.
     
    |
    Mark as:
  • Currently Being Moderated
    Feb 18, 2005 12:17 PM   in reply to (Rebecca_Belcher)
    Well, there is a caveat to this, as Designer has a different definition of 'current' than you might.

    Runtime properties only apply to runtime, which is when the form is rendered. if you are using Form Server, this is when the PDF is actually served up, as it is being generated at that point.

    If you are creating the PDF directly from Designer, when you save the PDF, that is when it is being rendered, so it will display the date/time when it was saved. This will not update dynamically for when the PDF is actually viewed.

    What the Current Date/Time runtime property does is insert a script in the layout:ready event. This is run when the form is rendered. If you want your form to show the actual date/time as it is being viewed, you will want to move that script to the calculate or initialize event.
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)