• 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-Populating secondary fields

Auto-Populating secondary fields 13 years 3 weeks ago #17115

  • jag0911
  • jag0911's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
I have a select box auto-populated based on a table. I would like some assistance in auto-populating two secondary text fields based on the first selection.

In my table I have equipment 'Name', 'Serial', 'Location', etc. The first select box is auto-populated with the equipment's 'Name'. What I want is the next fields to then populate with that piece of equipment's location, serial, etc.

Any help with this would be appreciated!!
The administrator has disabled public write access.

Re: Auto-Populating secondary fields 13 years 2 weeks ago #17144

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
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.

Re: Auto-Populating secondary fields 13 years 8 hours ago #17309

I am new to Java and Joomla so please bare with me. I am a C# SQL programmer so I am quite sure it is only syntax or I have missed a method on the textbox object

I have looked at the sample and have modified it to use my array. but I acually don't need another drop dowm list, only a text box. I thought using

thechild.value = parent_array[parent_value][0];

where theChild is a textbox.
But no joy, the text box stays blank. Is there a refresh or something else I need to do?

Thanks
The administrator has disabled public write access.

Re: Auto-Populating secondary fields 13 years 2 hours ago #17321

Figured it out, forgot the quotes on the onchange
The administrator has disabled public write access.

Re: Auto-Populating secondary fields 13 years 10 minutes ago #17323

  • deziner76hd
  • deziner76hd's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 21
  • Thank you received: 1
Could you post your solution so others may benefit?

Thank you
Where there's a will there's a way
The administrator has disabled public write access.

Re: Auto-Populating secondary fields 10 years 8 months ago #28681

Hi Richard

any chance you could post your solution please, as i am experiencing same cenario in needing to auto populate text field from a dropdown.
The administrator has disabled public write access.

Re: Auto-Populating secondary fields 10 years 8 months ago #28689

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
In order to provide further assistance please provide a more accurate explanation of your scenario. You want to populate a dropdown based on a table? Or the value selected in the dropdown to be copied in a textbox?

An example on how to populate a list based on a table can be found here:
http://www.rsjoomla.com/support/documentation/view-article/94-auto-populate-a-list-from-a-table.html

An example on how you can copy the value of a field through the use of Javascript can be found here:
http://www.rsjoomla.com/support/documentation/view-article/496-preview-data-before-submit.html

You can even take a look at the "Conditional Fields" functionality of RSForm!Pro which will allow you to show or hide a field based on the user's selections.
http://www.rsjoomla.com/support/documentation/view-article/749-conditional-fields.html
My help is not official customer support. To receive your support, submit a ticket by clicking here
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!