• 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: dynamic drop down change form with a database

dynamic drop down change form with a database 10 years 8 months ago #28663

  • dugaeda
  • dugaeda's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi!
It`s possible to do this
demo.rsjoomla.com/dynamic-drop-down-change-form-example
with a database?
Thanks
The administrator has disabled public write access.

dynamic drop down change form with a database 10 years 8 months ago #28668

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
Yes, your scenario is possible through the use of AJAX. Please keep in mind to achieve that result proper scripting knowledge will be required.
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.

dynamic drop down change form with a database 10 years 8 months ago #28682

Hi,

could you provide a sample, with the code please?
The administrator has disabled public write access.

dynamic drop down change form with a database 10 years 7 months ago #28728

  • stevent
  • stevent's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 23
  • Thank you received: 1
I looking for a script to do the same. Here's my setup of the form.

I have a dropdown menu which is populated through a sql-query on a database table of a custom component.
What I would like to do is that if one makes a selection in the dropdown menu, a second (hidden) field is dynamicaly filled with a corresponding mail address from the same table associated with the selection.
This address will be the 'admin' address where the contents of the form will be sent to af submission.

Example:
{Dropdown}
    Please select…
    Support
    Sales
    General inquiery
 
{Hidden}
    General emailaddress changing to email corresponding with the above choice
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!