Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Forms
Viewing all articles
Browse latest Browse all 61369

Auto-populate based on check box

$
0
0

I am fairly new to the whole scripting idea in both Javascript and Formcalc for forms. I have created a form that needs some dear attention. What I am trying to do is autopopulate text fields based off the checkbox, if it's turned on or not.

 

 

Example:  Once the property information - property name, street address, city, state and zipcode (at the top of form) is filled in. If the check box is checked in the Payer information section (at the bottom) it will enter the information from the property information in the address fields below in the assigned text fields.

 

Here is my Javascript code (not complete):

 

 

FLContract.#subform[0].PayerName::calculate - (JavaScript, client)

 

var a =""

if (this.getField(CheckBoxPropertyInfo).value == 1)
{
a=PropName.value
}
event.value=a

 

Capture.PNG


Viewing all articles
Browse latest Browse all 61369

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>