• 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: RSForm Pro Calculations

RSForm Pro Calculations 11 years 11 months ago #23564

  • onedan1
  • onedan1's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hello lovely folks,

CHARGES CALCULATION FOR A SHOPPING WEBSITE FORM:
Basically is a shopping website that allows visitors to calculate charges in 1 currency, converts it to another currency and add shipping cost and finally displays the totals.

I am trying to build a calculation form that basically pick a data from one field lets say "Field1" multiply it
by data in another field, lets call it "Field2". The result is stored in hidden field "Total_1".

Then again at the same time, i want to multiply "Total_1" by a decimal figure lets say "3.021" and store it in another hidden field lets say "Total_2" and add another figure in or not in decimal lets say 49.50 store it in another hidden field "Total_3".

Then through the Thank You form i will display , Total_1, Total_2 and Total_3.

My code so far is:

onclick="document.getElementById('Total_1').value = parseFloat(document.getElementById('qty').value) * parseFloat(document.getElementById('price').value)

document.getElementById('in_ghc').value = parseFloat(document.getElementById('Total_1').value) * 3.0150;"
Code for displaying totals in Thank You form is for eg. {Tital_1:value}


I have only managed to get the first total, cant seem to get the second or 3rd to either calculate or display result.
Please i know its a bit complex than what its usually , but i am stuck with the project and dont know what to do whether its even possible with RSForm pro.
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!