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

    How can I prepopulate the Html Text Field from a URL?

    Asked by Alanmwhitehead on November 22, 2014 at 12:33 PM

    is it possible to pre-populate the (HTML) text field through URL parameters or any other way.

    text field html text parameters
  • Profile Image
    JotForm Support

    Answered by jonathan on November 22, 2014 at 07:51 PM

    Hi,

    Unfortunately no. The TEXT(HTML) field is a Read-Only and static field and does not have an input property. So, it is not possible to do this.

    I am not sure yet what you wanted to achieve, if you can describe more, perhaps we can provide you with more appropriate suggestion.

    You should also check the Narrative Fields (link: http://widgets.jotform.com/widget/narrative_fields)

     

    I have a hunch that perhaps it will help in what you wanted to create.

    Thanks.

  • Profile Image

    Answered by Alanmwhitehead on November 23, 2014 at 05:18 AM

    Thanks for your prompt response.

    I would like to display a different image on the form based on the referring link. 

  • Profile Image
    JotForm Support

    Answered by NeilVicente on November 23, 2014 at 06:06 AM

    @Alanmwhitehead

    Here's a good workaround:

    1.  Include all images to your page using the "Image" control, or if you prefer, the "Text" control. Each image should use a separate form control

    2.  Add a Hidden Box field to your form. This will be used as the pseudo image selector

    Example:

    3.  Create conditions to make a certain image appear only if the [Hidden Box] value matches your criteria

    Note: Images have the same name here, but they point to different images in my sample form.

    4.  Assign the value to your hidden field by way of URL prepopulation

    Example:

    http://form.jotformpro.com/form/43263099471964?font=1

    http://form.jotformpro.com/form/43263099471964?font=2

    http://form.jotformpro.com/form/43263099471964?font=3

  • Profile Image

    Answered by Alanmwhitehead on November 23, 2014 at 06:14 AM

    Great thanks!