Edit submission: Ability to display the PDF file uploaded to the submission when opened in edit mode

  • DatatelCommunications
    Asked on March 27, 2018 at 9:21 AM
    Other simple things like not being able to pass field variables into the html editor of the free text field but being able to when not editing the html editor is completely un-intuitive and useless. 
  • tina JotForm Developer
    Replied on March 27, 2018 at 9:23 AM

    You can pass form variables to source code section under the text field as seen below:

    1522159717tttt Screenshot 10

    Could you please explain your expectation and why you need this feature in details, so we can escalate this as a feature request properly? 

  • tina JotForm Developer
    Replied on March 27, 2018 at 10:09 AM

    I have updated my response. Please check my latest response in this regard.

  • DatatelCommunications
    Replied on March 27, 2018 at 7:35 PM

    Hi Tina,

    I see that it works for you however, in practice for something like PDF rendering it does not.

    Let me explain in steps. 

    1. User uploads PDF to a file upload field on a new form submission
    2. Approver opens an edit URL for that submission and should see that PDF rendered on the screen instead of having to download it to view it. 

    Here is how you should be able to do this:

    Field 1: File Upload Field called PDF
    Field 2: Text field with the following HTML:

    <p><iframe style="width: 600px; height: 500px;" src="https://docs.google.com/gview?url={pdf}&embedded=true"></iframe></p>

    When you edit the submission the PDF uploaded does not render. However if you change the above HTML to:

    <p><iframe style="width: 600px; height: 500px;" src="https://docs.google.com/gview?url="ACTUAL_URL_OF_UPLOADED_FILE"&embedded=true"></iframe></p>

    Then it works. So there is something breaking when you try and pass the variable.

    Please see here: https://www.jotform.com/edit/3980022226423692854

    As an example of this

  • Kiran Support Team Lead
    Replied on March 28, 2018 at 1:24 AM

    I understand that you want to render the form fields to the PDF file uploaded by the user. If so, unfortunately, this is currently not possible. However, you may consider generating the PDF submission report to attach to the email. 

    1522214595PDFAttachment Screenshot 10

    You may also customize the PDF report by following the guide below:

    https://www.jotform.com/help/384-How-to-Customize-PDF-Submissions-Report

    Please give it a try and let us know if you need any further assistance. We will be happy to help. 

  • DatatelCommunications
    Replied on March 28, 2018 at 1:41 AM

    This is not what we need. 

    We need to be able to display the uploaded PDF on the form when you access the edit link. 

  • Kiran Support Team Lead
    Replied on March 28, 2018 at 2:54 AM

    I don't think this is possible at the moment. Please allow me sometime to run few tests using some widgets and get back to you with relevant information.

    Thanks!

  • DatatelCommunications
    Replied on March 28, 2018 at 3:15 AM

    Ok thanks for your help in the matter.

  • Kiran Support Team Lead
    Replied on March 28, 2018 at 5:07 AM

    I have tried testing iframe widget and used custom embed code on a Text field which doesn't seem to be worked. Since the iframe widget is loading on an iframe, the field values cannot be passed through. Also, the embed code on the text field is getting stripped due to security related reasons. Unfortunately, there is no workaround at this moment for the requirement. 

    Let me forward the thread to our backend team for evaluation. We cannot guarantee that the feature will be implemented and cannot provide any ETA at this moment if accepted for implementation. If there is any news in this regard, you'll be posted here.

    Thank you!