


Hello, i'm trying to adapt some old script in an xdp document.
While previewing a document that should display a date in livecycle designer works well,
this code doesn't work in HTML mode:
myDate=util.printd("dd/mm/yyyy",new Date());
this.rawValue=myDate;
trying to catch the error i get: "referenceError: util is not defined"
How can i solve this?
Thank you very much
Views
Replies
Sign in to like this content
Total Likes
this seems to come from some external library. I am not aware that printd is supported by the XFA scripting in JS.
In FormCalc you have the DateFmt() function which would do what you want - and you could use picture clauses for your fields.
If "this" is a DateField you can set the formatting to match what you want without scripting.
this seems to come from some external library. I am not aware that printd is supported by the XFA scripting in JS.
In FormCalc you have the DateFmt() function which would do what you want - and you could use picture clauses for your fields.
If "this" is a DateField you can set the formatting to match what you want without scripting.
Views
Replies
Sign in to like this content
Total Likes
Views
Replies
Sign in to like this content
Total Likes