How do I assign a unique value to radio button option?

  • mjgroup
    Asked on November 18, 2014 at 7:05 AM

    Example. - See Screenshot

    I have assigned softback book value as 50 by following another forum post:

    softback<em>50</em> then making it transparent in my CSS .

    I then want to assign say A4 to the value of 20 and A5 to the value of 10 ( see below)

    My calculation at the end should then be equal to

     <book> + <book size>

    50+10 = 60

    But it's not working I assume because A4 is a number already..?

    Any possible work around?

    Thanks,

    Caroline

     

    How do I assign a unique value to radio button option? Image 1 Screenshot 20

  • Ashwin JotForm Support
    Replied on November 18, 2014 at 8:33 AM

    Hello Caroline,

    Well there is a better straight forward way to achieve your requirement. You can set the "Calculation Value" for every options of your radio button question. These values can then be used in the "Form Calculation" widget.

    Here are the steps you should follow:

    1. Click on the gear icon of your radio button question and then click on "Show Properties".

    2. Set the Calculation values for every option. Please check the screenshot below:

    How do I assign a unique value to radio button option? Image 1 Screenshot 30

    3. Add a "Form Calculation" widget in your form and set the formula to calculate the values. Please check the screenshot below:

    How do I assign a unique value to radio button option? Image 2 Screenshot 41

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!

  • mjgroup
    Replied on November 18, 2014 at 8:43 AM

    Ah amazing thank you! (silly me)

  • Ashwin JotForm Support
    Replied on November 18, 2014 at 8:47 AM

    Hello mjgroup,

    You are welcome.

    I'm very pleased that I was able to help you.

    Do get back to us if you have any questions.

    Thank you!