javascriptformspdfadobelivecycle

Send datetime field value on submit


I did some research and could not find how to fix this. I have a pdf form with a Date/Time field. On run the field gets the current Date/Time value but when I submit the form the date is not sent to the xml document. How do I get the value to be added in the xml document?

EDIT: Clarify the submit button

I do not specify what type of file, it automatically send an .XML document


Solution

  • I was able to fix it myself by putting this code:

    form1.#subform[0].#area[2].DateTimeField1::ready:layout - (FormCalc, client)
    $.rawValue = Concat(Num2Date(Date(), "YYYY-MM-DD"), " ", Num2Time(Time(), "HH:MM:SS"))
    

    instead of putting current DateTime under the value tab