Answered
Hi
I am trying to script a check box so that when selected (ticked ‘On’), it populates other fields in the form.
For example, a user enters their ‘Supply Address’ details at the beginning of the form and later enters in their ‘Billing Address’ details.
If the two addresses are the same I would like the user to be able to tick a check box which would then copy across the 'Supply Address' details to the 'Billing Address' fields. If this is not possible, I would like to get the ‘Billing Address’ fields populated with an instruction like "As per Supply Address".
If anyone can help with Java scripting this action I would really appreciate it.
Thanks,
Fraser
As you use LCD, you should add following Javascript code on change event of check box. The field names in example are BillingAddress and SupplyAddress. You should change them according to your form design.
if (this.rawValue==1) BillingAddress.rawValue=SupplyAddress.rawValue;
Regards, Andrey.