• 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: Calculate value in hidden field

Calculate value in hidden field 12 years 10 months ago #18365

Hi,

I am trying to get a value calculated from how the form is filled out.

I have got it to work with adding values and getting a total value,
however I want in another way. I want it like this:
1. If checkbox A is clicked, the value should be 200
2. If checkbox B is clicked, the value should be 100
3. If checkbox C is clicked, the value should be 50
4. I want total value (50 or 100 or 200 or 150 or 250 or 300 or 350)

The script below works, but I don´t want to have only numeric values.e
- -
onclick="document.getElementById('total').value = parseInt(document.getElementById('FoddAr').value) + parseInt(document.getElementById('ett').value);"
- -
The administrator has disabled public write access.

Re: Calculate value in hidden field 12 years 10 months ago #18548

Hello,

I don't understand your question.
Calculation always happens with numeric characters, so what do you mean with not using numeric characters?
Regards
Wilco Alsemgeest

Please note: my help is not official customer support. To receive your support, submit a ticket by clicking www.rsjoomla.com/my-support-tickets.html
The administrator has disabled public write access.

Re: Calculate value in hidden field 12 years 1 month ago #23124

  • seraphic
  • seraphic's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
I guess he's trying to do something like this (btw, that's a problem for me too)
http://imageshack.us/photo/my-images/580/formtraduceri.jpg/
Last Edit: 12 years 1 month ago by seraphic.
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!