How do I assign a unique value to check box options so that I can use them with the calculation feature?

  • Profile Image
    lawrencecfp
    Asked on March 20, 2014 at 07:17 AM

    If you have multiple check boxes, how do you assign a unique value to each item in the check box. For example, say you have red, blue, and yellow as check box options. How then do you assign a unique value to each color, so that when a person clicks on the color, its associated value is added to the calculation. In Excel, this would be done with an IF,THEN function.



    This is a re-post of a comment on Form Calculation - Math Function Reference

  • Profile Image
    TitusN
    Answered on March 20, 2014 at 09:31 AM

    Hello,

    Just add the number value to the checkbox label options - then add the checkbox field to the form calculation widget. 

    For example, here's a demo form I created for game rating: http://www.myjotform.com/form/40765553953564

    To make the numbers invisible, wrap them using em tags: <em>number</em>

    Then, using this guide, add the following CSS rule to your form:

    em{color:transparent}

    Let us know if this helps.

  • Profile Image
    lawrencecfp
    Answered on March 21, 2014 at 01:30 AM

    Hi and thanks, but this didn't work. Adding the numbers with the em around
    them was easy, but the Inject Custom CSS field was where I think I went
    wrong.

    I plugged in:

    .form-all em{color:transparent}
    and I can still see the numbers when I hit Preview.

    Please advise.


    Lawrence McNeil
    Owner and Photographer
    Center Focus Photography
    P.O. Box 100
    Cypress, TX 77410
    www.centerfocusphoto.com
    (281) 216-4237
    Follow us on Facebook for discounts and to see our latest event pictures!
    ----------------------------------------
    ...
  • Profile Image
    TitusN
    Answered on March 21, 2014 at 03:46 AM

    Hello,

    The calculation feature only supports the checkbox and radio button fields as far as your requirements go.

    As for the CSS code, just use em{color:transparent}, that should work.

    Go ahead and clone this form so that you can take a closer look: http://www.jotformpro.com/form/40775520855964

  • Profile Image
    TitusN
    Answered on March 21, 2014 at 03:47 AM

    Hello,

    The calculation feature only supports the checkbox and radio button fields as far as your requirements go.

    As for the CSS code, just use em{color:transparent}, that should work.

    Go ahead and clone this form so that you can take a closer look: http://www.jotformpro.com/form/40775520855964

  • Profile Image
    lawrencecfp
    Answered on March 21, 2014 at 10:50 AM
    That worked great, thanks. Also, is there any way to make any of your
    options a clickable link?
    Lawrence McNeil
    Owner and Photographer
    Center Focus Photography
    P.O. Box 100
    Cypress, TX 77410
    www.centerfocusphoto.com
    (281) 216-4237
    Follow us on Facebook for discounts and to see our latest event pictures!
    ----------------------------------------
    ...
  • Profile Image
    EliezerN
    Answered on March 21, 2014 at 11:58 AM

    Hi,

    Yes, there is a way to convert the options of the Radio buttons clickable. However, since this is a different inquiry from the original one of this thread we would appreciate if you opened a new thread and post your inquiry there and we will give you all the details of the workaround there.

    You can open the new thread here: http://www.jotform.com/answers/answer.php

    Thanks

  • Profile Image
    schoolyard
    Answered on April 11, 2014 at 04:52 AM

    Hi, I added the value in [ number] checkbox, but how to add calculation login. Please help me. Thanks,

  • Profile Image
    schoolyard
    Answered on April 11, 2014 at 05:02 AM

    thanks,, its resolved...