How can I get text auto populated based off information entered such as within the paragraph

  • AscentEMC
    Asked on December 21, 2020 at 8:17 PM
    So it doesn't have to be through the paragraph function. How can I get text auto populated based off information entered such as within the paragraph onto the pdf?
  • Sonnyfer JotForm Support
    Replied on December 21, 2020 at 8:23 PM

    Thanks for your response. If that's the case, you can add Short Text fields on your form and then map it to your Smart PDF.

    1608599924 5fe14974f0304  Screenshot 10

    As for how to populate the short text fields, you can use conditions to copy the value from one question to the newly created Short Text fields. Remember to hide the short text fields so it won't cause confusion to your form submitters.

    1608600141 5fe14a4d090c0  Screenshot 21

    Please give it a try and let us know if you need further assistance.

  • AscentEMC
    Replied on December 22, 2020 at 2:02 PM

    I need this paragraph that is dynamically filled to be added onto the original pdf form.

    1608663714 5fe242a2e4826 EADF1EDA 1673 4 Screenshot 10

  • jonathan
    Replied on December 22, 2020 at 3:20 PM

    Unfortunately only "input fields" can be added or mapped to the original PDF document.

    Since the Paragraph/TEXT field is not an input field, it is not possible to add and mapped it to the original PDF document.

    1608667728 5fe25250cfc96 zzz 2020 12 23 Screenshot 10


    An alternative you can use is the Long Text field as it is an input field and can be mapped to the original PDF. You can add the paragraph/text as the default value in the Long Text field.

    The downside is that you cannot pre-format the paragraph/texts in the Long Text field similar to the Paragraph field does.

    On the other hand, base on your design, that paragraph/text appears to be an agreement/terms clause. Shouldn't it be in the original PDF document by default?

    You can use your external PDF editor to manually add those paragraph in the PDF document.

    I hope this help. Let us know if you need further assistance.

  • AscentEMC
    Replied on December 22, 2020 at 3:51 PM

    I've unfortunately tried that. The text is not static. The fields {testType} and {covidResult} are entries put in by staff whenever results come though. I need the paragraph to be on the pdf with the results included as selected by staff when its submitted so that it can create a travel letter patients need. When copying the paragraph default formatting to the long answer fields, those fields do not update based on staff input so it shows up exactly like its typed with the brackets.

  • Nikola JotForm Support
    Replied on December 22, 2020 at 5:29 PM

    As a possible solution, I think that you can combine the suggestions my colleagues provided. You can pass the paragraph/text with the field values with conditional logic to the Long Text field.

    I was not able to test this on a cloned version of your form, because the Original PDF was not imported, so I tested it with one of my imported PDF Forms.

    Demo form: https://form.jotform.com/203567119456056

    In my demo form, I'm passing the values from the Name and Last Name field to the Long Text field with a part of your paragraph/text.

    1608675796 5fe271d464f13 ceondition Screenshot 10

    You can ignore the 'Submit' button on my Original PDF, in the following example.

    1608675917 5fe2724dc4756 originalPDF Screenshot 21

    You can also hide the Long Text field on the online form.

    Related Guide: How to Hide Form Fields

    The only issue is that the text in the Long Text field can't be styled. A possible solution for this issue is to use a few Long Text fields.