• 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 2 dropdown fields

Auto-populate 2 dropdown fields 7 months 4 weeks ago #43614

Hello,

I've searched here in the forum and also googled, but I can't find anything at first.

I have a form with 2 dropdown fields.

The first field "Results1" is filled with table values ​​via PHP, like here - www.rsjoomla.com/support/documentation/r...st-from-a-table.html

The second field "Result2" also needs to be filled with table values, but based on the selection in the first dropdown field. So - I then need a variable (e.g. "$results1"), which I can then use in the second field "Result2" as a filter for SQL query. E.g. ... $db->setQuery("SELECT your_value, your_label FROM #__your_table WHERE myid = '$results1' "); ...

What's the best way to do this? Any help is welcome!

Thank you in advance!
The administrator has disabled public write access.

Auto-populate 2 dropdown fields 7 months 3 weeks ago #43617

  • iceferret
  • iceferret's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 245
  • Thank you received: 64
If you can keep your head when all about you are losing theirs, then you obviously don't understand the situation!
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!