PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/ __________________________________________________________________

I am just learning javascript for acrobat, and need help with a button function. On my form, there are text fields for primary contact info, shipping contact info, and billing contact info. I would like a button to "copy primary contact info" to shipping or billing fields.

I have inserted the following code on the 'Mouse Up' action for the button:
function CopyPrimaryInfo()
{var primComp = this.getField("txtPrimComp")
var shipComp = this.getField("txtShipComp")
shipComp.value = primComp.value
}

(This wold just copy the Company name, I would insert additional variables for name, address, etc.)

As is, this code does nothing. What am I doing wrong?

TIA -

Bill

_________________________________________________________________
Take advantage of our best MSN Dial-up offer of the year � six months @$9.95/month. Sign up now! http://join.msn.com/?page=dept/dialup



To change your subscription: http://www.pdfzone.com/discussions/lists-pdfforms.html



Reply via email to