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 it possible to create interactive forms?

    Asked by caravagn on May 30, 2012 at 06:42 AM

    Hi, I was just wondering whether it is possible to do something like this:

    1) In some page a user is asked to fill a form label with a number

    2) in the next page the form is built according to the number the user has inputted

    So, for instance, I would expect a dialog like this:

    - How many rabbits to you have? 3

    - Name of rabbit 1: ...

    - Name of rabbit 2: ...

    - Name of rabbit 3: ...

    It seems to me that playing with conditions to hide/show form makes no sense since I can't now apriori the number the user inputs. In javascript I think I could do something as "get[some_label_id]" and loop accordingly. However, I can't see I way to add my own javascript to the forms, and also I would no more benefits from JotForm WYSIWYG capability, I think.

    Is this possible in JotForm?

    Thanks guys! G.

  • Profile Image
    JotForm Support

    Answered by mliz on May 30, 2012 at 11:36 AM

    To populate the fields and set the priority for the user inputs you would have to download the full source code of the form and embed your custom javascript code from there to achieve such functionality.

    To download the full source codes for your form:

    1.  Go to Setup & Embed
    2.  Click the Embed Form button
    3.  Choose Source, you can copy the code provided in the box and insert your own custom javascript.

    Let us know if you have further questions.