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 can I set a radio button in a hidden field based upon a selected radio button in another field?

    Asked by BCConted on February 01, 2016 at 05:42 PM

    I have 2 properties:

    Type of Class:  with 7 radio buttons

    Product Manager with radio buttons.  This is a hidden.  I need to have a product manager selected based upon what is selected in Type of Class.  I cannot figure out to do this with conditions.  Any other sugesstions would be appreciated.

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

    hidden selected conditions calculation value
  • Profile Image
    JotForm Support

    Answered by jonathan on February 02, 2016 at 12:22 AM

    You can achieve this using the feature Assign Calculation Field Value

    user guide: How-to-Assign-Calculation-Value

     

    Here is an example form https://form.jotform.com/60320827546959

    I assume for now the Type of Class is equal to one of the Manager. I have unhidden the Product Manager to see what is happening.

     

    Let us know if you need further assistance.

     

  • Profile Image

    Answered by BCConted on February 02, 2016 at 09:45 AM
    I am afraid I could not get this solution to work. It would have been helpful for me to see how you set the conditions in your example. I have modified the form slightly. I need a 1:1 relationship based on which radio button is selected. Business Class to the first name in the Calculation Values list.
    Mark
    •mark.veljkov@bellevuecollege.edu
    •Office: 425.564-3125
    ...
  • Profile Image

    Answered by Ben on February 02, 2016 at 12:26 PM

    You can actually just clone the form of my colleague to your own account Mark. To do that you will need the link to his form: https://form.jotform.com/60320827546959

    Now you will need to follow the steps here: How to Clone an Existing Form from a URL

    Not only will you see how the conditions were made, but also have the exact form within your account, with the same feature already applied to it.

  • Profile Image

    Answered by BCConted on February 02, 2016 at 01:45 PM
    Thank you for the help. However, the conditions do not work in my form. I set the conditions up exactly like your sample but mine did not work. What am I missing
    https://form.jotform.com/60278241089155
    Mark
    •mark.veljkov@bellevuecollege.edu
    •Office: 425.564-3125
    ...
  • Profile Image

    Answered by Ben on February 02, 2016 at 03:19 PM

    You have set it up right Mark, but the same will not work for radio buttons, only for checkboxes. To allow yourself to use checkboxes and yet in the same time to allow only one option to be selected, you should instead use the approach shown here: https://form.jotform.com/60324560573957

    Basically, I cloned the form from my colleague and set the field to allow only one entry - making checkbox behave like radio button does.

    To do that we go to field properties:

    Once there we just set up the maximum numbers:

    Would that work for you?

  • Profile Image

    Answered by BCConted on February 02, 2016 at 04:45 PM
    Ben, thanks for the help. This approach would work but I still cannot get my form to work correctly. I have attached a screen shot of my conditions which are identical to yours but the condition is still not working. My Maximum Selections is set to 1 and both fields are checkboxes. Again, here is the link to my form. Any ideas on why yours works and mine does not?
    https://form.jotform.com/60325952006146
    [cid:4DA669EE-7224-4076-BFE1-49895A7BF647]
    Mark
    •mark.veljkov@bellevuecollege.edu
    •Office: 425.564-3125
    ...
  • Profile Image

    Answered by BCConted on February 02, 2016 at 04:45 PM
    I was able to create the condition in a completely separate test form. I created and the condition worked but it does not work in my main form.
    https://form.jotform.com/60325887588168
    Regards,
    Mark Veljkov
    Product Manager, Online Learning, Technical Writing
    [cid:26D81D71-083E-4475-892D-4E1D14955BC0]
    •mark.veljkov@bellevuecollege.edu
    •Office: 425.564-3125
    http://continuingeducation.bellevuecollege.edu/
    ...
  • Profile Image

    Answered by Ben on February 02, 2016 at 06:13 PM

    I see what you mean Mark. For some reason it was passing the values as numbers not as text.

    I have tried another approach instead of the above one to see if that would work on your form and it did - you can see it here: https://form.jotform.com/60327338095962

    I did it by using the next option in conditions - to pass the values of the of multiple fields to a single one. Doing so allows us to select if the value that is being passed should be passed as number or as a string.

    You can see the screen cap of the same:

  • Profile Image

    Answered by BCConted on February 02, 2016 at 06:45 PM
    Thanks Ben, I will have to go through this tomorrow as I am headed out for the rest of the day.
    Mark
    •mark.veljkov@bellevuecollege.edu
    •Office: 425.564-3125
    ...
  • Profile Image
    JotForm Support

    Answered by jonathan on February 02, 2016 at 10:41 PM

    Please let us know how it goes. :-)

    Contact us anytime for any assistance you need.

    Regards,