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

  • WisdomOnTap
    Asked 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

  • BJoanna
    Replied on June 30, 2017 at 1:11 PM

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

    I am looking to auto select a randomized choice for radio buttons Screenshot 30

    You can also select by default field option. 

    I am looking to auto select a randomized choice for radio buttons Screenshot 41

    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. 

  • WisdomOnTap
    Replied on June 30, 2017 at 2: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

  • WisdomOnTap
    Replied on June 30, 2017 at 2: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

  • BJoanna
    Replied on June 30, 2017 at 2: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.

     

    I am looking to auto select a randomized choice for radio buttons Screenshot 20

    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. 

  • WisdomOnTap
    Replied on June 30, 2017 at 2: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

  • Mike_G JotForm Support
    Replied on June 30, 2017 at 5: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.

  • David JotForm Support Manager
    Replied on June 30, 2017 at 7: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:

    I am looking to auto select a randomized choice for radio buttons Screenshot 70

    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)

    I am looking to auto select a randomized choice for radio buttons Screenshot 81

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

    I am looking to auto select a randomized choice for radio buttons Screenshot 92

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

    I am looking to auto select a randomized choice for radio buttons Screenshot 103

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

    I am looking to auto select a randomized choice for radio buttons Screenshot 114

    6) Repeat the same steps for the second question.

    Result:

    I am looking to auto select a randomized choice for radio buttons Screenshot 125

    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.

  • WisdomOnTap
    Replied 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

  • Welvin Support Team Lead
    Replied on July 1, 2017 at 12:47 AM

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