How to prepopulate file upload field with the value of first form?

  • deepakm
    Asked on February 5, 2015 at 1:14 AM
  • Ashwin JotForm Support
    Replied on February 5, 2015 at 4:37 AM

    Hello deepakm,

    I am not sure if I have understood your question correctly. We have received an empty question with just the title as "My attachments field not working as browser". I would suggest you to explain your question a bit more in detail and we will surely help you. 

    Do you want to pass your uploaded file attachment in URL parameter? It seems one of my colleague have already answered your question in the following thread:  http://www.jotform.com/answers/509479-My-attachments-field-breaks-the-URL-parameter#1 

    We will wait for your response.

    Thank you!

  • deepakm
    Replied on February 5, 2015 at 4:42 AM

    Hi Ashwin,

    My attachments fields like attachments={attachments} on browser it showing attachments=desert.jpg but on read only page it is not showing then how can i save on read only pages; This is URL:

    http://form.jotform.me/form/50321437446450?fullName=deepakmalviya&yourEmail=deepak.malviya@ignatiuz.com&leadName=Sawan%20Dhanotiya&project=Sharepoint&hrWas=Yes&teamMembers=does&foodBill=200&taxiBill=200&anyOther=200&totalReimbusements=600&comments=Hellooo&date%5Bday%5D=05&date%5Byear%5D=2015&date%5Bmonth%5D=02&timeOf%5BhourSelect%5D=2&timeOf%5BminuteSelect%5D=30&timeOf%5Bampm%5D=AM&attachments=bhoj.jpg

  • Ashwin JotForm Support
    Replied on February 5, 2015 at 7:24 AM

    Hello deepakm,

    Please be noted that it is not possible to pass on the URL of the local file form one form to another through URL parameters.

    What can be done is when the file is uploaded from the first form, you can access the URL of the uploaded file and pass it on to your second form. You can use the {tag} name of your upload field attachments={attachments} like you are already doing but replace the second form's upload question with a normal text box field.

    You may like to take a look at the following thread where my colleague have explained this already:  http://www.jotform.com/answers/340000-Prepopulate-an-file-upload-field-on-a-second-form 

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!