• 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: Form>Properties>Calculations using mixed decimals

Form>Properties>Calculat​ions using mixed decimals 11 years 7 months ago #25044

I have a form with two fields for numeric values and a third field that is populated by the Form > Properties > Calculations function. The calculation I've entered into the form properties is:

whratio = {waist:value}/{hips:value}

If waist:value and hips:value are integers, then whratio is calculated correctly.

Example:
waist = 34
hip = 36
whratio = 0.93 correct!

However, if the number of decimal places is more than zero, strange behaviours result:

Example:
waist = 34
hip = 36.5
whratio = 9.32 ????

Example:
waist = 34.0
hip = 36.5
whratio = 0.93 correct!

Example
waist = 34
hip = 36.50
whratio = 0.93 !!!!

Can anyone offer any insight into this weirdness? I originally thought there might be JavaScript errors elsewhere in my Form Properties but this set-up is using RSform Pro's own Calculations facility and not any of my other calculations' JavaScript.

Is this a bug in the core RSform calculation processor or do I need to add something else to my calculation definition? Does JavaScript work there? Or PHP? Any clues would be greatly appreciated.

UPDATE:
On the advice of RSjoomla Tech Support, I re-downloaded and re-installed RSform Pro with (apparently) a fix for this issue installed. Problem SOLVED
Last Edit: 11 years 7 months ago by coredesign. Reason: UPDATE
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!