Calculation examples

E-mail Print PDF

This small example will describe how to perform various calculations with RSForm!Pro fields using Javascripts.

The actual calculating part is performed with some Javascript function. These are placed in the Form Layout area. For exemplification purpose each category of fields has its own calculation function.

Calculation examples

TextBox Calculations




field1
Invalid Input
field2
Invalid Input
Total
Invalid Input



Radio Calculations




radio1
Invalid Input
radio2
Invalid Input
Total2
Invalid Input



Select List Calculations




selectlist
Invalid Input
Total3
Invalid Input



Message
  • Please note: The forms only work with RSForm!Pro version 1.2.0 or above. Please make sure you have updated your version before trying to install it
 


Gravatar
Dude (11.10.2011 (23:54:12))
Other calculations 1 Can we see calculations for subtraction, division and multiplication besides the addition examples above? Any algebra would be cool too!Quote
Gravatar
Neil (26.04.2012 (07:37:57))
Auto calculate hidden/show fields Yes No I need to make form with auto calculation in it and auto show/hide fields. Is this possible to make in RsForms Pro?
------
The form should be like following:

contesters 1 - 2 - 3 - 4 (radiogroup)

contester 1
name >
last name >
0 - 0 (radiogroup)

contester 2
name >
last name >
0 - 0 (radiogroup)

contester 3
name >
last name >
0 - 0 (radiogroup)

contester 4
name >
last name >
0 - 0 (radiogroup)

Price excl VAT > [total contester] x %u20AC95,- = (auto calculation*)
Price incl VAT > (*auto calculation x 19%)
------------

When the option one contester is checked there should be only a inputgroup for one contester be shown.
When the option two contesters is checked there should be only a inputgroup for two contesters be shown.
And so on...

All inputfields should be required.

Is this possible?

thanks in advance.
Quote


:confused::cool::cry::laugh::lol::normal::blush::rolleyes::sad::shocked::sick::sleeping::smile::surprised::tongue::unsure::whistle::wink:

1000 Characters left

Antispam Refresh image Case sensitive