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

    Is random branching possible?

    Asked by mpezzo on November 19, 2013 at 02:29 AM

    I asked this question perhaps 1.5 years ago and got a reasonable answer, but no longer can locate it on the forum.   The answer was essentially "no" but try this.   I'm trying to develop a psychology experiment, and need to assign people to different conditions at random.   

  • Profile Image
    JotForm Support

    Answered by EltonCris on November 19, 2013 at 05:17 AM

    Hi there,

    First off, here's the previous thread you're referring to: https://www.jotform.com/answers/18630-

    I think that's doable, but you have to use your form source code and inject custom script that will do the random numbers, e.g. between 1 to 3.

    First, you have to add a textbox field to your form where the random number will be filled in. If you don't want this to be displayed on your form, use Hidden Box field under Power Tools.

    Would you be able to provide to us your final form so we can provide you an example using your form source code with the random number script along with the conditions? We'd appreciate if you could finalize the form first so we can proceed with helping you on the random script. Here's an example script that randomize the number between 1 and 3. http://jsfiddle.net/5A9Ye/1/

    If you're also going to create forms with multiple pages, use page break tool it's under Survey Tools.

    We'll await your reply. Thanks!

  • Profile Image

    Answered by g.yoong on May 10, 2014 at 01:03 PM

    Hello EltonCris,

    This is awesome news. But I know nothing about coding. Similar to mpezzo, I'm running a psychology experiment which needs randomization. It is a 2-part survey.

    Part 1: Same set of questions for all 

    Part 2: Randomized assignment (there are 2 sets of questions available, let's call them A and B)

    I'll currently building the form. I'll use page break tool to separate Part 1, Part 2A, Part 2B.

    After that, how/where can I get the codes to randomize Part 2? 

    Help is much much appreciated.

  • Profile Image
    JotForm Support Manager

    Answered by Jeanette on May 10, 2014 at 10:44 PM


    Like I said to you in your other thread, as for the moment it is not possible, but I have opened a ticket with a feature request. I cannot provide you an stimated time for when this might be implemented though.

  • Profile Image

    Answered by g.yoong on May 11, 2014 at 03:05 AM

    Okay, thanks Jeanette. It'll be an awesome thing to be added to the list of functionalities.