since ‎09-05-2014
‎10-12-2019
Al_NZ-qvcwdZ
Level 1
Re: DATE VALIDATION dd/mm/yyyy (date field with manual entry)
Avatar

Al_NZ-qvcwdZ

Al_NZ-qvcwdZ
- Adobe LiveCycle
I managed to sort it out using this code: var fldDate = this.getField("DOB").value; var strDate = "12122004"; fldDate = fldDate.toString(); app.alert("Field Date is " + fldDate + " and the type is : " + typeof fldDate); app.alert("String Date is " + strDate + " and the type is : " + typeof strDate); var fmtDate = util.scand("ddmmyyyy", fldDate); app.alert("Print this is scand date: " +fmtDate); app.alert("THis is printd date: " + util.printd("dd/mm/yyyy", fmtDate));It became apparent that the da...

Views

6.5K

Likes

0

Replies

2
Re: DATE VALIDATION dd/mm/yyyy (date field with manual entry)
Avatar

Al_NZ-qvcwdZ

Al_NZ-qvcwdZ
- Adobe LiveCycle
My issue is that this.rawValue always seems to be empty?

Views

6.5K

Likes

0

Replies

0
Re: DATE VALIDATION dd/mm/yyyy (date field with manual entry)
Avatar

Al_NZ-qvcwdZ

Al_NZ-qvcwdZ
- Adobe LiveCycle
Well I am doing this in Acrobat, but I don't think that should matter should it?Acrobat still has a validate event. I have also tried in the "On blur" event.

Views

9.5K

Likes

0

Replies

1
Re: this.rawValue
Avatar

Al_NZ-qvcwdZ

Al_NZ-qvcwdZ
- Adobe LiveCycle
Even app.alert(this.fieldname); is undefined....

Views

618

Likes

0

Replies

0
this.rawValue
Avatar

Al_NZ-qvcwdZ

Al_NZ-qvcwdZ
- Adobe LiveCycle
Hi All,I have been mucking around in javascript in acrobat for a little while and playing with javascript in forms.I have tried using some code that refers to this.rawValue - which I would assume returns the unformatted value of the field that has focus?The problem is that if I try to debug the value for this.rawValue it is always undefined.Lets say I add javascript on blur to a form. And have a single line of code:app.alert("The value is: " + this.rawValue);I always get undefined no matter what...

Views

1.4K

Likes

0

Replies

2
Re: DATE VALIDATION dd/mm/yyyy (date field with manual entry)
Avatar

Al_NZ-qvcwdZ

Al_NZ-qvcwdZ
- Adobe LiveCycle
Geckoz100‌ I really like what your code does, or should do but I cant get it to work.If paste the code into a custom validation script or even a on blue event for a date field nothing happens.I watched the value of newDate = this.rawValue but it is always undefined?What am I missing?Cheers-Al

Views

9.5K

Likes

0

Replies

6
Re: LiveCycle Designer scenario
Avatar

Al_NZ-qvcwdZ

Al_NZ-qvcwdZ
- Adobe LiveCycle
Reading more and more.Its worth pointing out that I am on Windows XP. Office 2007 and that the users submitting the form are all on the same LAN.From my reading so far to submit the form on different computers across the LAN they would all need the ODBC connection setup? Cheers-Al

Views

680

Likes

0

Replies

0
Re: Help with Database Connected LiveCycle ES4 form
Avatar

Al_NZ-qvcwdZ

Al_NZ-qvcwdZ
- Adobe LiveCycle
HiI dont have a answer for you but want to do exactly what you are doing. Can you tell me the code to Add the record and your settings for the ODBC connection to excel?Thanks-Al

Views

775

Likes

0

Replies

0
LiveCycle Designer scenario
Avatar

Al_NZ-qvcwdZ

Al_NZ-qvcwdZ
- Adobe LiveCycle
Hi All,I have a PDF form that I want to create in LC Designer and distribute across our company. Unfortunately the enviroment I am in means sometimes getting things changed and past our security people is hard.The form will have a submit button, and ultimately the data from the form really wants to go into a Access database where some reports can be generated. This could be hard getting I&T to allow ODBC connections. Could this also be done in excel?I watched this video:https://www.youtube.com/w...

Views

830

Likes

0

Replies

1
Likes given to