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

    I am looking to "auto select" a randomized choice for radio buttons..

    Asked by WisdomOnTap on June 30, 2017 at 11:23 AM

    i am doing a "mad libs" type project and want to do 10 questions with 10 possible answers each. 

    The twist is, I want to "auto select" the answer to each question (and randomize the order)

     

    Is this possible?

    Thanks

  • Profile Image
    JotForm Support

    Answered by BJoanna on June 30, 2017 at 01:11 PM

    You can shuffle field options, by setting Shuffle Option to ON.

    You can also select by default field option. 

    If you also want to shuffle fields inside of the form you can achieve that with Shuffle widget. 

    How to Add a Widget to your Form?

    Here is my demo form: https://form.jotformpro.com/71805470688970 

    Feel free too test it and clone it.

    Hope this will help. Let us know if you need further assistance. 

  • Profile Image

    Answered by WisdomOnTap on June 30, 2017 at 02:01 PM

    Thanks :-)

    I am still running into a roadblock though.

    To "auto select" I need to choose one of the answers. What I'd like to do ideally is randomise the answers (got that one figured out) and have the software also choose (click) one of the random answers as well

    The end result would be a user pressing say 1 button and 10 questions would get "auto answered" with a random choice and the user would land on a "results" page with their mad lib

  • Profile Image

    Answered by WisdomOnTap on June 30, 2017 at 02:09 PM

    Thanks :-)

    I am still running into a roadblock though.

    To "auto select" I need to choose one of the answers. What I'd like to do ideally is randomise the answers (got that one figured out) and have the software also choose (click) one of the random answers as well

    The end result would be a user pressing say 1 button and 10 questions would get "auto answered" with a random choice and the user would land on a "results" page with their mad lib

  • Profile Image
    JotForm Support

    Answered by BJoanna on June 30, 2017 at 02:27 PM

    It is not possible to randomly select field option. However there is a possible workaround with Random Value Generator widget and with conditional logic.

    Conditional Logic Inserts Text/Calculation Into A Field

    However this will require lot of conditions, 1 per field option. So if you have 10 fields with 10 options you will need 100 conditions.

    Here is my demo form: https://form.jotformpro.com/71805616388969 

    Here is the screenshot of one condition that I have set inside of the form.

     

    Radio button field is set to read only, so that users can not change random option that was selected. 

    Hope this will help. Let us know if you need further assistance. 

  • Profile Image

    Answered by WisdomOnTap on June 30, 2017 at 02:34 PM

    Thanks! I think my head might explode if I did that. Maybe I can find someone here on the forum who could set up a "template" form that does it

  • Profile Image
    JotForm Support

    Answered by Mike_G on June 30, 2017 at 05:10 PM

    We will be glad to help you in creating your form, however, may we just know the following details, please?

    Are the options of each of the 10 question fields the same?

    Does the randomly selected option for each question have to be different for each question?

     

    We will wait for your response.

  • Profile Image
    JotForm Support

    Answered by BDAVID on June 30, 2017 at 07:49 PM

    Since you need to trigger all the answers randomly by pressing a button, add the "Button Checkboxes" widget at the end of your form: https://www.jotform.com/help/252-How-to-Add-a-Widget-to-your-Form 

    Then follow this workaround:

    1) Create your question and list the possible answers in a text field:

    2) Create a Multiple Choice field with the 10 options, and assign the possible options from your question into the "Calculation Values" area: https://www.jotform.com/help/301-How-to-Assign-Calculation-Value 

    (Note: this field should be hidden as well from its advanced properties)

    3) Add the Random Value Generator widget, and make sure to set it up this way:

    4) Perform the calculations(similar to what my colleague provided), but this time it will be just one calculation per each question, like this:

    5) Finally, to obtain the random answer, use a form calculation widget, to get the value from the Multiple Choice field:

    6) Repeat the same steps for the second question.

    Result:

    You may test my form example here: https://form.jotform.com/71806446880968 

    Clone it if you want to: https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL 

    Hope this helps.

  • Profile Image

    Answered by WisdomOnTap on June 30, 2017 at 10:30 PM

    It's from this last response (Thanks BDavid!)

    https://form.jotform.com/71806446880968

    I'd Love a hand with this if you could. Shoot me an email to inspectorprofit@gmail.com and ill share the actual content.

    New friend for life.. :-)

    Tom

  • Profile Image
    JotForm Support

    Answered by Welvin on July 01, 2017 at 12:47 AM

    Please send it to support@jotform.com. We'll see if what we can do about it.