• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Copy data from field1 to field2

Copy data from field1 to field2 13 years 4 months ago #12112

Hi ... Hope someone can help.

i am trying to do a Shipping/Billing address scenario with checkbox for "Shipping Same As Billing Address" and for the second address to be auto populated.

I have looked in forums, and best answer was using this code but it does not work.

HELP

Matt
<script type="text/javascript"> 
function getA() 
{ 
    if (document.getElementById('pax2_address_opt').checked) document.getElementById('pax1_address').value = document.getElementById('pax2_address').value; 
        else document.getElementById('pax2_address').value = ''; 
} 
</script>
The administrator has disabled public write access.

Re:Copy data from field1 to field2 13 years 4 months ago #12117

fixed ... was using the wrong option for the checkbox

pax2_address_opt0
pax2_address_opt1 etc

i was starting at 1 but the first option is 0
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!