Can I pre-populate a form with a specific image (passed url reference of the image)

  • stivesphoto
    Asked on October 12, 2017 at 11:23 AM

    I am looking to create a form that can be loaded with an image (showing a childs Xmas Design). The designs will be jpg files held / accessible at another website.

    The other form elements will be used to take orders for things like Gift Tags and Xmas Cards.

    I could create a form for each, however I have several hundred of these so its not feasible.

    Eg. https://form.jotform.com/nnnnnnnnnnnnn?ShowImage=www.repository.com/design1234.jpg

    And ShowImage somehow refers to an image element on the form so that the person ordering has a visual confirmation that they are ordering the correct design.

    Thanks

    Paolo

  • David JotForm Support
    Replied on October 12, 2017 at 1:11 PM

    I did some tests to see if this may be possible using conditions or some other workaround but I am unable to find a solution.  My best guess was to use a "Text" field and update it conditionally from a text box that was being populated from the URL.  The end result was just the HTML for the image being shown, not the image.  It gets close, but I cannot seem to get the URL to update properly in the text field.

  • Paolo
    Replied on October 12, 2017 at 2:11 PM

    Do you think it is possible to pass a parameter to some css that could modify an image url? I'm not familiar with css.

  • David JotForm Support
    Replied on October 12, 2017 at 3:17 PM

    Using CSS probably not.  This would be possible using your forms source code and javascriptDISABLED:

    https://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form

    Though that would require a bit of development work outside what we would be able to support.