I am trying few things in the from i am designign using Acrobat From.
a) i need to populate a date filed with the current date in the format 'dd/mm/yyyy' only if the user simply tabs the field without filling any date . i.e the field should take current date automatically if the user move ahead without filling the field.
b) i need to populate another field based on the value of the above filed in the format 'yyyymmdd' . This should be automated populated using the values populated in the filed above .
regards
pramod
mumbai, India.
[url=http://www.adobe.com/devnet/acrobat/javascript.php]JavaScript for Acrobat[/url]
The following code placed in the "On Blur" action will put the current date in the format requested when no date has been placed in the field:
if(event.value =="")
this.getField(event.target.name).value = util.printd("dd/mmm/yyyy", new Date())
George Kaiser