• 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 a select field

Auto-populating a select field 17 years 2 months ago #1962

  • valica
  • valica's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hello,

I will present you what I'm trying to do using RSforms.
The subject of the website is around the car maintenance.
I've created a first form containing only two fields of type \"select\".

The first one represents the car brand name as: Ford, Renault, Seat, VW etc.
The second one corresponds to the car type within the brand as:
for Ford: Fiesta, Ka, Focus
for Seat: Arosa, Cordoba, Toledo
for Renault: Clio, Megane, Scenic
for VW: Passat, Touran, Polo, Lupo

I would like to \"populate\" the second field correponding to the selection made in the first one:
if the user selects Ford, then the car type field will propose Fiesta, Ka and Focus.

I don't have any constraints with respect to avoid client - server request / response after the first field selection. I say that because I was thinking to two solutions:
- send with the form the whole car brand / type list into a javascript variable and then, after the first field selection, just set the possible values into the second one. Here the problem I get is that I don't know how to define the second field in the form.
- do a request passing the brand name selected to the server side. The server will do querry in database and then answer with the possible values. But, here again, how to populate the second field with these values.

So, I'd like to have your vision about the best way to use the power of RSforms and to implement what I need.

Thank you in advance and have a nice weekend,

Vlad VALICA:)
Best regards,

Vlad VALICA
The administrator has disabled public write access.

Re:Auto-populating a select field 17 years 2 months ago #2040

  • dniezby
  • dniezby's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 136
  • Thank you received: 2
Check out the RSForm>FAQs

There is a section that may address what you're talking about.

www.rsjoomla.com/index.php/RSform-FAQs/<br><br>Post edited by: dniezby, at: 2008/02/20 22:17
Dave Niezby
www.nsfilms.com
Nightshade Studios, CEO
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!