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

Date Field Question

sinscore
Registered: Jan 3 2008
Posts: 11
Answered

Is it possible to display the current date as a default but also change it to a different date or leave the field blank?

Thanks for any help!

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Yes/No,

create a date/time field and use this FormCalc script in the calculate event

if ($.rawValue==null)then$.rawValue = Num2Date(date(), DateFmt(2))else $.rawValueendif

If the field is blank, it will be filled with the current date.
To change the date, you can click on it and choose another date from the calender.

You can also delete the date and leave the field blank, but it will only be blank until you do another action in the form.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs