How can I modify an image field source?

  • tald
    Asked on July 11, 2016 at 12:00 AM

    I want to pass the source for an image as a url parameter to the form. I would like the image field to present that image (from the url provided).

    For example when I use this to access my form

    https://form.jotform.com/61684736747268?image=https://www.nasa.gov/sites/default/files/styles/image_card_4x3_ratio/public/thumbnails/image/nh-floatinghillsunannotated.jpg

    I want the image field to present this image. How do I do that?

    Thank you.

  • beril JotForm UI Developer
    Replied on July 11, 2016 at 5:53 AM

    Yes, it is possible to upload your image to your form as you see below:

    How can I modify an image field source? Image 1 Screenshot 20

     

    If you have any question or issues, please do not hesitate contacting us. We will be glad to assist you.

  • tald
    Replied on July 31, 2016 at 3:21 PM

    I think you misunderstood what I need. I have a Shopify store, and as part of the process a customer will upload an image. At that point I call your form from Shopify and I need to be able to supply the image url as a GET parameter when calling the JotForm url. This means that it should be part of the JotForm url as it is different every time the form is loaded. The JotForm form will need to populate an image field in the form with that image url.

  • Nik_C
    Replied on July 31, 2016 at 4:37 PM

    You can prepopulate the fields by using our Prepopulate fields via URL method, if I understood you correctly you will "make" the URL on Shopify's side and then use that URL to show the JotForm form. If that's the case you should be able to make a URL with the method above, if you are able to get the URL for each image(on Shopify's side) and then make the JotForm URL with it that will later prepopulate certain fields in JotForm.

    Basically, your URL should look like this(for example): https://www.jotform.com/61684736747268?imagefield=www.imageurl.com.

    Hope it helps, and I'm sorry if I misunderstood your question.

    Thank you!

  • tald
    Replied on July 31, 2016 at 6:08 PM

    Thanks for the quick response! I actually want to use the method to prepopulate an image field. I think the link you provided only explains how to prepopulate other types of fields but not image fields. 

  • Chriistian Jotform Support
    Replied on July 31, 2016 at 10:22 PM

    Unfortunately it is not possible to pre-populate an image field with a URL from your shopify page. Image fields can only display images that have been uploaded through the form builder. It cannot show an image based on a link that was passed from another page. The only workaround I could suggest would be to pass the link to a textbox just like in your example. The user will have to copy the link and view it on their browser.

    Please let us know if you need further assistance.
    Regards.