• 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: Populate field with hidden field javascript

Populate field with hidden field javascript 10 years 9 months ago #28392

How can I populate a filed with another field value using Javascript?
The administrator has disabled public write access.

Populate field with hidden field javascript 10 years 8 months ago #28400

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
Use the following code in the Javascript section, it will copy the value of a field to another.
<script>
function populate(){
document.getElementById('name_of_field').value = document.getElementById('name_of_field_to_be_copied').value;
}
</script>

After this, you will have to create a trigger. To do this, edit the element you wish to copy and in the Additional Attributes insert the following:
onchange="populate()";
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.
The following user(s) said Thank You: phonroth701
  • 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!