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

    Why are the radio buttons values not passed properly in the conditions?

    Asked by cfresolone on March 17, 2016 at 05:54 PM

    Hello! I am putting together a camp registration form. I would like to have at the bottom of the form (just above where they would click submit), a "summary" of what they've chosen. They can sign up to three campers up for camp.

     

    I cloned a simple form that I found from the forum that basically copies "option 1," "option 2," or "option 3" into a pass value field. On that same form I created my option selection and tried the same method, but instead of copying the text that is there, it seems to be doing some kind of a calculation instead. Is this perhaps because of numbers and parenthesis and such I have in each line--is the software thinking it is a calculation.

    Furthermore, I did want to include calculation values for my choices (those would get passed on as well to add up for a sum. But if I include calculation values, when I try to pass the field's value, it defaults to the calculation value instead of the "options" value. Is there a way to specify to copy either the options value or the calculations value?

     

    Thank you!

    Page URL:
    https://form.jotform.com/60744094156154

    passing values another values one field not passed properly
  • Profile Image
    JotForm Support

    Answered by Nik_C on March 17, 2016 at 06:55 PM

    I have looked into it, there seems to be some kind of a problem with the value passing from the radio buttons. I will get back to you as soon as I perform some tests.

  • Profile Image
    JotForm Support

    Answered by Nik_C on March 17, 2016 at 07:37 PM

    I have looked into the issue. The problem you have been experiencing was created when you used the Update/Calculate field condition which copied value from the radio buttons. You need to setup the condition that uses value from Radio buttons to perform calculations.

    You can take a look at the following guide on how to set  the conditions for text values. It is important to set the text type value in the calculation.

    For number calculations you have to make a similar condition with a number type value for calculation.

    Please let me know if this works for you.

  • Profile Image

    Answered by cfresolone on March 18, 2016 at 01:28 PM

    Thank you for this response. I'm pretty sure I've understood everything you've said an shown in the images. However, what I find is that if I put numbers into the calculation fields the copying of the field's value defaults to the calculation value.

    See here: https://www.jotform.com//?formID=60744094156154

    Camper 1 is set from the register field with no calculation values.

    Camper 2 is set from register another field WITH calculation values. I think everything else is the same.

     

    I want to be able to have the calculation values because I also want  a "sum" field adding up the total monetary amount of what the user selects (up to 3 siblings).

     

    Thank you for you help!

  • Profile Image

    Answered by cfresolone on March 18, 2016 at 02:45 PM

    Something else "odd" that I've found. I followed the instructions outlined in the first image, making sure to select "calculate a field's value and making sure only text is selected. After I save it, jotform immediately changes the condition to "copy a field's value," (which as I understood you said was the problem I had to begin with) in which case it grabs the calculation value, which I use for the sum (that part works fine).

     

    Why does it change it to "copy a field's value?" Here is the real form (not the one where I'm testing). Thank you!

     

    https://www.jotform.com//?formID=50325160372950

  • Profile Image

    Answered by Huberson on March 18, 2016 at 03:10 PM

    If I understand clearly what you need is having a summary of chosen options along with the total amount right.. 

    You can do this by using two different fields for each option - one for Text value and another for the price. You will then need to calculate the sum of the price fields with 'UPDATE / CALCULATE FIELDS' conditions.

    Basically pass the Text values as already set on your form with the conditions and based on option selected you would calculate the price fields values. 

    In case what you want is simply allow the user to preview their entries before submitting the form you can add the 'Preview Before Submit' Widget to the form instead.

    I made a demo form with both options you can take a look at it here: https://form.jotform.com/60775617138967

     

    When you select 'calculate a field's value' if what you do is simply copy a field value, condition will default to 'copy a field's value'.

     

  • Profile Image

    Answered by cfresolone on March 18, 2016 at 03:51 PM

    OK I think I have it. One last question. Can I make the Total Camp Tuition field at the bottom (the one that gets passed on to Pay pal--WIDER? The last bit of the number gets cut off a bit. Also any way to add a dollar sign in there?

     

    THANK you for your help,

    C

  • Profile Image
    JotForm Support

    Answered by Nik_C on March 18, 2016 at 04:22 PM

    Please add this to your Custom CSS:

    #input_54_donation {

    width: 150px !important;

    }

    You can adjust width to be more than that if you need.

    Please check this image below on how to do it:

    Hope it helps, let me know how that worked for you.

     

     

  • Profile Image

    Answered by cfresolone on March 18, 2016 at 05:43 PM

    GREAT. Thank you, the CSS worked.

    C