• 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: drop-down calculation and related Qs

drop-down calculation and related Qs 12 years 10 months ago #17903

  • ken5
  • ken5's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hello!

I have a few questions on a form I am trying to build.

I am trying to set up a service request form, with drop downs for various services; one such might be (options separated by '/');
"Room 1, 30 Minutes"/"Room 1, 60 Minutes"/"Room 1, 90 Minutes"
And another is,
"Room 2, 30 Minutes"/"Room 2, 60 Minutes"/"Room 2, 90 Minutes"
And yet another would be,
"Projector, 30 Minutes"/"Projector, 60 Minutes"/"Projector, 90 Minutes"

And so on.

The two things I would like to accomplish are; first, and probably simplest, have a value attached to each selection (so room 1 30 minutes is $100, while room 1, 60 minutes is $150, and Room 1, 90 minutes is $200 - and Room 2 would have different prices altogether); then as each drop down is changed, have a 'total' field calculated. So if Room 1 is requested for 30 minutes ($100) and Room 2 is requested for 90 minutes ($180.00), the total would update to $280.

Second, and something I am not sure if it is possible, I would like a second hidden value attached to each drop-down, the 'time' - and require a minimum total time among all rooms/services/etc. So that if the minimum time is 90 minutes, any one room/service for 90 minutes would qualify, as would any 3 rooms/services for 30 minutes each, but if only one room or service is selected for 30 or 60 minutes, the form generates an error "90 minutes minimum"...
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!