How can I use URL parameters to change an image URL?

  • Profile Image
    Kozakewycz86
    Asked on January 18, 2018 at 12:09 PM

    Hello, I am trying to create a form to handle proof copy approvals, but cannot figure out how to change the proof copy image that is loaded for each customer.

    I would like to load an image window with a preset url path to a particular folder, i.e. www.yourdomain.com/proofs/, and then use a URL parameter to append that customers {order.number}.jpg to the end so that it automatically loads their artwork. 

    I'm already using URL parameters to prefill inputs on other forms so I understand how they work, but I cannot work out how to change an image URL using them!

    Thanks in advance for your assistance!

  • Profile Image
    TREVON
    Answered on January 18, 2018 at 03:13 PM

    I have checked the possible options of changing image url. Unfortunately it is not possible to change image name url of images your users have uploaded.

    I recommend you integrate your form with DROPBOX, configuring different folders per submission. http://www.jotform.com/help/77-Upload-to-Dropbox-with-JotForm?

    If you would like to set Unique IDs on the folder, you can also do that using this guide: http://www.jotform.com/help/255-How-to-setup-folders-using-UniqueID-in-Dropbox.

    Kindly do let us know if you have further questions.

  • Profile Image
    Kozakewycz86
    Answered on January 22, 2018 at 06:45 PM

    I'm not sure that is the right solution? I have no need for user uploads, I want to show the person viewing the form a specific image relating to their specific order.

    Perhaps there would be a way to inject a snippet of HTML into the form to show an image that way?

  • Profile Image
    Jed_C
    Answered on January 22, 2018 at 09:45 PM

    If you want to inject an HTML script to show an image, you can use the "Text" element and click on the source icon then add your HTML script for your image.

    1516675486text_element.png

    Is that what you are looking for? Looking forward for your response.