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 pre fill a variabele in a text field

    Asked by Ian  on September 22, 2014 at 09:21 AM

    Hi,

    I like to know if it is possible to pre fill a value in a text element.

    For example I like to make a text above the form like "This is the order form for product [product_name]".

    Then I want to prepopulate it's value with via URL parameters. For example: http://www.jotform.com/form/10565343954?product_name=product1

     

    Thank you.

     

    text field fill JotForm order form style size
  • Profile Image
    JotForm Designer

    Answered by alev on September 22, 2014 at 09:31 AM

    Hello, 

    I guess you are looking for our hint option, in input boxes, you can edit hints as far as you want to. First click properties gear and select properties

     

    secondly write down the hint that you would like to add to your input fields.

     

    thank you

  • Profile Image

    Answered by Ian  on September 22, 2014 at 09:50 AM

    Hi,

     

    No sorry, I am talking about a text element and not about text box element. So a pre filled value in plain text. Like in the example above.

     

    Thank you

  • Profile Image

    Answered by Ian  on September 22, 2014 at 10:10 AM

    I made a little example: http://form.jotformeu.com/form/42644359938367

    it is possible to prefill the src of the image in the header element and all values between brackets in the header element and in the text element.

  • Profile Image

    Answered by Ben on September 22, 2014 at 12:02 PM

    Hi,

    I will try cover both forms that you have added in this thread.

    Can some fields be pre-populated / pre-filled - yes, they can.

    Unfortunately not all fields can be pre-populated only some and those are the ones that have the name attribute associated with them.

    Now the first jotform from above:

    http://www.jotform.com/form/10565343954

    You can prepopulate all of its fields like so:

    http://www.jotform.com/form/10565343954?fullName[prefix]=x&fullName[first]=Ben&fullName[middle]=N&fullName[last]=D&fullName[suffix]=x&address=mineaddresse&selections30=Car&media=Radio&pleaseChoose=Wood

    Now the second jotform that you gave a link to has fields that can not be populated entirely..

    http://form.jotformeu.com/form/42644359938367

    Populated:

    http://form.jotformeu.com/form/42644359938367?clickTo4=able to prepopulate&clickTo5=able to prepopulate

    Usually when you pre-populate the fields, you can only change the values. When a text box has some value, it is shown by text being visible in the box, a similar thing applies with radio options and checkboxes.

    I hope that this gives you a better insight what can be prepopulated and what can not.

    If you tell us what you would like to achieve we might be able to offer you guidance in what you could do.

    For example, the image can be set to be requested from a link, which if on your server could display different images depending on the season.

    Best Regards,
    Ben