JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
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.
Is it possible to change the image URL in the form through a URL parameter?Asked by nickbh on September 04, 2015 at 06:25 AM
Is it possible to dynamically change an image on the form (ie its url location)
Ie can I prepopulate a field and reference that field to identify the location of the image.
Ie pass URL location when loading the form?
Well, for prepopulating a field, that is possible.
For referencing the prepopulated field, you can use our calculation widget. In this case, you need to conditionally do it:
Please share us the form in question so we can check it.
Thanks for the reply. I am familiar with both tutorials.
What I am trying to do is update the image on the form by passing a URL parameter.
Ie, in the middle of the form I have an image of an apple (eg www.myimages.com/apple.jpg).
When I call the form I want to pass a new image location (eg www.myimages.com/orange.jpg) so that the form loads up the Orange image instead of the apple.
What I am asking- is it possible to change the image through a URL parameter?
Alternatively can you include a reference to a field in the image URL?
where textinput_23 is a prepopulated hidden field in the form?
Unfortunately, I don't think this is possible. I did try looking for a direct method to achieve this in the form, no avail. A workaround would be to add the images in the form and show each based on the previous field data - that is through conditional logic.
Here's example form, http://www.jotformpro.com/form/52463853327964. Type "black" or "orange" in the Image Param field to view the images.
Then you can do the URL parameter:
I hope this works for you.
Thanks for the workaround. Not sure this will work however as I may have over 200+ images and the locations may change on the form depending on another parameter - so I could potentially have to create over 1000 images.
I will have to consider if there is another workaround.
Any other suggestions would be very welcome.
If I understand correctly, the reason you were trying to come up on this workaround because you were using for a workaround on the pre-populated slider you mentioned on this thread
Hope this help. Let us know if you need further assistance.