-
AscentEMCAsked on December 21, 2020 at 8:17 PM
-
Sonnyfer JotForm SupportReplied 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.
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.
Please give it a try and let us know if you need further assistance.
-
AscentEMCReplied on December 22, 2020 at 2:02 PM
I need this paragraph that is dynamically filled to be added onto the original pdf form.
-
jonathanReplied 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.
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.
-
AscentEMCReplied 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 SupportReplied 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.
You can ignore the 'Submit' button on my Original PDF, in the following example.
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.