CalcBuilder Forum

Create a simple form

User billwide 2011-10-28 02:43:42

I need to use multiple options to be sum.

Option1:
White = 100
Black = 200
Blue = 300

Option2:
Orange = 100
Purple = 200
Yellow = 300

The user choose the 2 options and the values are sum. Ex.:

Option1: White (100)
Option2: Purple (200)

The sum will be 300.

How would be this code, please?

http://imageshack.us/photo/my-images/28/giffyv.gif/

Edited by billwide - 28.10.2011 06:34

Moonsoft support 2011-10-28 10:48:55

Hello,
for your example, you would need to create two fields, typed option list, and fill in the texts and values for each option. As the values you want to sum are already loaded at your options, you only need to get the two answers and make the sum. We suggest to download from calcbuilder downloads page

http://components.moonsoft.es/downloadcalcbuilder

two examples with working calculators and check the code you need:
Estimate business cards: you can see how to configure option lists and get the answers.
Simple sum: shows the code needed to sum the two values introduced by user.


Hope this helps
Moonsoft Team

User billwide 2011-10-31 18:15:00

Hello,
for your example, you would need to create two fields, typed option list, and fill in the texts and values for each option. As the values you want to sum are already loaded at your options, you only need to get the two answers and make the sum. We suggest to download from calcbuilder downloads page

http://components.moonsoft.es/downloadcalcbuilder

two examples with working calculators and check the code you need:
Estimate business cards: you can see how to configure option lists and get the answers.
Simple sum: shows the code needed to sum the two values introduced by user.

Hope this helps
Moonsoft Team


I follow that models and I can use one of them to create my calc. Thanks.

...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!
...
CalcBuilder

Create dynamic calculators

Buy now!