Script to save file name as text field AND timestamp


hello adobe wizards!

 

i'm (brand) new javascript, , i've gleaned quite bit forum.  however, i'm still in dark lots.

 

here's i'm going for.  have "submit" button @ bottom of form looots of editable fields.  2 important fields "name" , "sid"- name , id number of client.  want submit button save .pdf file name " 'name', 'sid', timestamp"  timestamp automated timestamp created @ time form submitted.

 

it helpful if have "submit" button enter same file name on form, in text field have on top of first page.  have started script can figure out how include sid field (see below). i'm swimming in code don't understand!! someone- throw me life jacket!

 

--

here's best crack @ script includes sid , timestamp in text box @ top of form.

 

// current date object  var onow = new date();  // milliseconds epoch date  var ftime = onow.gettime();  // trim seconds var fseconds = ftime / 1000;  // truncate seconds  var ftimestamp = math.floor(fseconds)    // set sid field variable  var fsid = this.getfield('sid');   // populate 'timestamp' field's value  this.getfield('timestamp').value = fsid + ftimestamp; 

 

thank all!

also, using windows 7 enterprise , adobe acrobat x pro.



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

PProHeadless.exe has stopped working error when opening projects in Adobe Media Encoder CS6

Preconditions Failed. - Joomla! Forum - community, help and support