What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

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

    Asked by lawrencecfp 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
    JotForm Support

    Answered by TitusN 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

    Answered by lawrencecfp 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
    JotForm Support

    Answered by TitusN 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
    JotForm Support

    Answered by TitusN 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

    Answered by lawrencecfp 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

    Answered by EliezerN 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

    Answered by schoolyard 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

    Answered by schoolyard on April 11, 2014 at 05:02 AM

    thanks,, its resolved...