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

    Conditional automatic fill ?

    Asked by Manstud on February 19, 2011 at 11:59 AM



    I am a french training center's manager. My website presents all my training offer on one page per course. All these pages lead to the contact form. At this time, every customer arriving on the contact form has to fill the course he wants to attend or ge more information about.


    Is it possible to automatically fulfill the "course" heading (called "Formation souhaitée" in the form), depending on which website page the user is coming from ?



    Emmanuel GUILLARD

    Page URL:

  • Profile Image

    Answered by DanielGriffin on February 21, 2011 at 09:39 AM

    Hi Manstud,
    There are a couple of ways to do this.

    The easiest is to simply have a different version of the contact form for each link. 

    for example:

    Edit each version of the form in the form builder by highlighting the field and then clicking on the "Selected" button in the top menu.  This will allow you to set the default value in the drop down list.

    If you don't want to use multiple copies of the form, then it's a bit complicated and you'll have to do some programming.  If you are comfortable writing javascript, you could try following. 

    1. download the full source of the form and edit it so that the select box (on your contact for it's id=14) has a little piece of javascript to write the word "SELECTED" into the correct option.

    2. change the links on your course pages so that they send a course name or ID to the contact form.  For example


    3. When your page loads, get javascipt to check the name of the course, then use that name to select the correct option.

    As I said, it's a bit complicated and not exactly ideal.  If you can live with different copies of the form, then I would recommend that.  But if you want to try modifying the page, let me know and I'll try to help you.