These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Timestamp, SaveAs and Email to: with required field validation

ddcoffee
Registered: Jul 25 2007
Posts: 14

Yes...all in one form and works splendidly. If anyone needs to know how I was able to do this, please post and I'll be happy to help you, eliminating 3 weeks of searching and piecing together from different posts.

wingateg3
Registered: Jan 7 2008
Posts: 25
Hi, new to the forum...I would love to know how...
JohnR
Registered: Apr 25 2007
Posts: 13
Hey,

I'd love to know. It seems you've done well with that multiple - utility.

thanks so much

John
vcurran26
Registered: Nov 6 2008
Posts: 31
I don't know how much longer you want to personnally reply to posting, but I am trying to date and time stamp a form. It would be great if you can help me.

Thanks, VC
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
You will have to be familiar with Acrobat JavaScript.

You need to add a date field to your form. Your 'submit button' with then need to run a 'mouse up' action JavaScript to set the value and default value of this date field if blank and then submit the form.



// get the date field objectvar oDateField = this.getField('SubmitDateFieldName');// see if the field is emptyif(oDateField.defaultValue == '') {// set field value to the current dataoDateField.value = util.printd('mmm d, yyyy', new Date());// set the default value for the date fieldoDateField.defaultValue = oDateField.value;} // end updating empty field// mail the document and not the FDF formthis.mailDoc({bUI:true, cTo:"<span class="spamspan"><span class="u">fun1</span> [at] <span class="d">example [dot] com</span></span>; <span class="spamspan"><span class="u">fun2</span> [at] <span class="d">example [dot] com</span></span>", cCc:"", cBcc: "",sSubject: "This is the subject", cMsg: "This is the body of the mail."});

You might want to review the various tutorials and seminars at this site to learn more about creating and programing forms.

For required fields, you will need to test each required field to see if it has been completed as needed.

George Kaiser