Moonsoft Software Solutions

Create a simple form

Started 28 Oct 2011 · 2 replies

  1. billwide
    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
  2. Moonsoft support
    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
  3. billwide
    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.

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket