Hi there,
I'm fairly new to Adobe Form Creator and Javascript and I'm slowly understanding more by reading some of the discussions in these forums. Wondering if someone could assist in creating a script to complete the following task:
For a quote form I'm designing, I have three text fields for a customer's "Site Address" and an additional three text fields for their '"Billing Address."
If these happen to be the same, I want to give the respondent the ability to select a checkbox which will take the values from the text fields in Site Address and populate them in text fields of the Billing Address.
Any help would be greatly appreciated!
Justin
Big thanks to MarkWalsh for helping me with this one. Thought I'd share the solution for anyone else with a similar project:
Use this for the Custom Format Script in the 'CustomerName' field:
if (this.getField('BillingSite').value == 'Off') {
// Allow entry into field
this.getField('CustomerName').readonly = false
} else {
// Don't allow entry into field
this.getField('CustomerName').readonly = true
// Set field value
event.value = this.getField('BillingName').valueAsString
}
And use this in the Custom Calculation Script for the CustomerName field:
event.value = event.value
Also test, due to problem noted in http://forums.adobe.com/thread/1028970
On Win7 and IE 9... seems to work just fine for me
North America
Europe, Middle East and Africa
Asia Pacific