Checkboxes and If Statements


hi there,

 

i'm new adobe form creator , javascript , i'm understanding more reading of discussions in these forums.  wondering if assist in creating script complete following task:

 

for quote form i'm designing, have 3 text fields customer's "site address" , additional 3 text fields '"billing address."

 

if these happen same, want give respondent ability select checkbox take values text fields in site address , populate them in text fields of billing address. 

 

any appreciated!

 

justin

big markwalsh helping me one.  thought i'd share solution else similar project:

 

use custom format script in 'customername' field:

 

if (this.getfield('billingsite').value == 'off') {

// allow entry field

this.getfield('customername').readonly = false

} else {

// don't allow entry field

this.getfield('customername').readonly = true

// set field value

event.value = this.getfield('billingname').valueasstring

}

 

and use in custom calculation script customername field:

 

event.value = event.value



More discussions in JavaScript


adobe

Comments