• 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: Get price from Drop Down List

Get price from Drop Down List 12 years 5 months ago #20061

  • mtcbells
  • mtcbells's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
We provide services to various counties and the price varies by county. I need help setting a Javascript so that when they choose the county, the correct price is automatically populated into the price field for totals.

The dropdown list is formatted as follows:

County1,46
County2,55
County3,75
County4,100-150
County5,46

where County1 is the name of the County and 46 is the dollar amount that they will be charged.

I've seen the function where I can split an array, but I can't figure out how to make this work with data in a dropdown list. I'm also not sure if that would work since I have some counties with variable prices, like County4 in the list above.

I also need the script so that everytime they change the dropdown list, the total field is automatically updated. I understand that can be down with an ONCHANGE script.

I'm looking for help specifically as it relates to RSForms!Pro so that I can just plug the script into the "Additional Attributes" box...not wanting to edit the HTML that RSForms!Pro automatically creates for me.

Any help would be greatly appreciated.
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!