• 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: 2 ?s: dynamic dropdown / keep track of total?

2 ?s: dynamic dropdown / keep track of total? 17 years 2 months ago #1975

I've not yet purchased this component, but if it does what I want, I see myself purchasing multiple licenses, probably 4 or 5.

What I'd like to have is a form where I can have a dropdown (or radio buttons) asking if they would like to pay by check or credit card. If they select check, nothing else happens, they just fill out the form. If they choose credit card, only then does it display the other fields for name on card, card type, card number, CCV, etc.

That is the most vital.

The next thing I think would be a little trickier, but not so vital to what we need, so this isn't a dealbreaker.

I'm setting up for a BBQ competition. Entry into the main competition is $175, but they can \"add on\" extra things like enter the additional side dish category for $40 or dessert for $40, but they can ONLY add on if they enter the main contest. So I am thinking something like checkboxes with a value for each one, and then at the end somehow it totals it all up? Like I said, this isn't a dealbreaker, but the first one I think would be pretty important to us.
The administrator has disabled public write access.

Re:2 ?s: dynamic dropdown / keep track of total? 17 years 2 months ago #1977

  • dniezby
  • dniezby's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 136
  • Thank you received: 2
You can do that with ajax scripting. There is an ability to add scripting but I couldn't help you with that, cause I've never tried it. Though, I don't think you really need to get that fancy.

There is nothing wrong with a form that has fields with check / ccard and then the information for credit card. Your users won't enter in credit card information if they select check anyway.

As for the BBQ contest (YUM). Just make the main entry mandatory and the second entries normal. That way, they won't even be able to submit the form without selecting the main entry.

Think simple as your users will want to get through with the form as quick as possible.
Dave Niezby
www.nsfilms.com
Nightshade Studios, CEO
The administrator has disabled public write access.

Re:2 ?s: dynamic dropdown / keep track of total? 17 years 2 months ago #1978

dniezby wrote:
As for the BBQ contest (YUM). Just make the main entry mandatory and the second entries normal. That way, they won't even be able to submit the form without selecting the main entry.

Thanks for the response. However, the part I was really asking about was calculating the total. The main entry is going to be $175, but the add-ons are various prices, like $20 to enter the sauce contest, $30 for electricity. We're looking for a way to somehow calculate a total based on what they select. I was somehow thinking about assigning a value to each add-on and then just displaying a calculation at the bottom of the form.
The administrator has disabled public write access.

Re:2 ?s: dynamic dropdown / keep track of total? 17 years 2 months ago #2033

  • dniezby
  • dniezby's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 136
  • Thank you received: 2
Ok, I've googled \"Adding up form field values\" and found a number of responses that you may want to check out. If you want to do it the way you're explaining. Just google for the Javascript code.

I would recommend that you use a shopping cart system for what you're trying to do though. I haven't used it yet, but I'd try virtuemart.
Dave Niezby
www.nsfilms.com
Nightshade Studios, CEO
The administrator has disabled public write access.

Re:2 ?s: dynamic dropdown / keep track of total? 17 years 2 months ago #2041

  • dniezby
  • dniezby's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 136
  • Thank you received: 2
I think I found your solution right on these forums.

www.rsjoomla.com/index.php/RSform-Script...alculate-fields.html

Let me know if this works for you.
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!