Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 82585

Re: Check box to copy text from 1 field to another

$
0
0

I made it work. Shat I did is place an action on the check box properties and selected a trigger to run a Java Script.

Here is the code.

 

//Set the vars one and two:

          var one = this.getField("BillingAdd"); //Text Box 1

          var two = this.getField("ShippingAdd"); //Text Box 2

          var cb1 = this.getField("ShipSameBill"); // Check Box

 

          //next check if two is blank and if so, populate it with one’s value

          if(cb1.value=='Yes'||two.value==null){two.value=one.value}

            else {two.value=''}


Viewing all articles
Browse latest Browse all 82585

Trending Articles



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