These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Date Time Field

hmcbride2002
Registered: May 2 2008
Posts: 3

I'm brand new to working with Adobe, I've searched the forums and didn't find an answer to my question, so I apologize in advance if people have answered this before. I'm using LifeCycle Designer 7.0.

I figured out how to use FormCalc to calculate and display the current date in a date time field. The problem I have is the button that is used for the pop up calendar is still showing up on the screen (but you can't do anything with it because it's read only).

Here are my settings:
Field
Type - Date/Time Field
Appearance - None

Value
Type - Calculated Read Only
Calculation Script

Binding
Name - DateTimeField1
Binding - Normal
Data Format - Date

Script:
FormCalc

DateTimeField1.rawValue = num2date(date(), DateFmt(1));

Thank you so much in advance for your help.

Holly

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
So, you don't want to use the popup date picker? you want to use FormCalc to place the date in the field?

If this is true, then use a text field, don't use the Date Field. The Date/Time field is meant to be an interactive input. You're just displaying the date so it's unnecessary. You can do the same formatting with a text field.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

hmcbride2002
Registered: May 2 2008
Posts: 3
Thank you!! That worked.