• 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: HELP PLEASE - need javascript for calculations

HELP PLEASE - need javascript for calculations 12 years 6 months ago #19450

I need some help writing the necessary javascript to achieve the following in RSForsPro.

I have a fairly complex form with a number of conditional fields. I'm fine with all that and really like the way RSForms!Pro handles this.

However, I'm having one small problem.

The form is for school events and there is a cost per pupil. This cost changes depending on the venue - I can do this bit with conditional fields. But I need to be able to show a field for the number of students (at Price A or Price B, depending on venue). And then have the form calculate the final cost.

The process goes like this:

select venue 1 which displays a field further down the form that displays the cost per student = price A

Booker enters number of students and the form calculates
number of students x price A = TOTAL

or

select venue 2 which opens field that shows cost per student = price B
Booker enters number of students and form calculates
number of students x price B = TOTAL

Once all that has been created correctly, the form will send a PDF Invoice.

Can anyone please help me with the conditional calculation part?

Thanks in advance, David
The administrator has disabled public write access.

Re: HELP PLEASE - need javascript for calculations 12 years 6 months ago #19454

  • matt
  • matt's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 136
  • Thank you received: 14
Last Edit: 12 years 6 months ago by matt.
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!