• 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: Auto populate other fields

Auto populate other fields 14 years 7 months ago #11259

  • rjsayat
  • rjsayat's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 14
Hi, it's common now to see in forms to auto populate shipping address to billing address. Typically you are given the option of "Same as Shipping" in which case the billing address is filled with the shipping address. How is this done with this component?
The administrator has disabled public write access.

Re:Auto populate other fields 14 years 7 months ago #11287

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 745
  • Thank you received: 66
Hello,

This can be easily achieved with a custom javascript. For example you can have a checkbox that once checked, triggers the script and copies the information from the shipping address in the billing address fields. The script should be similar to :
<script type="text/javascript">
function getA()
{
	if (document.getElementById('checkbox_field_name0').checked) document.getElementById('billing_address').value = document.getElementById('shipping_address').value;
		else document.getElementById('billing_address').value = '';
}
</script>

...and should be triggered when the checkbox is ticket by adding the following line in the "Additional attributes" property of your checkbox field:
onclick="getA();"
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
The following user(s) said Thank You: illuminatus

Re:Auto populate other fields 14 years 7 months ago #11296

  • komita
  • komita's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 40
  • Thank you received: 1
Is it possible to autopopulate another field with the portion AFTER the pipe separator? What I need is both the information before and after the pipe. Any ideas?
The administrator has disabled public write access.

Re:Auto populate other fields 11 years 7 months ago #24667

  • martinp
  • martinp's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 1
How do you do the same thing from a radio group? e.g. Yes/No, if yes is selected, fill the fields, if no, clear them?

Thanks for any help you can give me
Joomla 2.5.8
RSForm! Pro 1.4.0
The administrator has disabled public write access.

Re:Auto populate other fields 11 years 7 months ago #24686

You can place an onclick="alert('you clicked me!');" trigger in the Additional Attributes area of your Radio Group which will trigger the contained code (in this case the alert) when the user clicks on the radio button.
Please remember that my responses aren't considered customer support, to receive customer support please submit a new customer support ticket, and we will gladly assist you.

Best Regards,
Cristian Nicolae.
Last Edit: 11 years 7 months ago by cristian.nicolae.
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!