¿Why is the Field ID not working to prefill the PDF?

  • tanojps
    Fecha de consulta 20 de julio de 2024, 20:24

    Good afternoon. I am having trouble inserting a code into the PDF generator. As you can see, I took the input corresponding to the first response in the table,and put it in the text I am creating.

    ¿Why is the Field ID not working to prefill the PDF? Image 1 Screenshot 40¿Why is the Field ID not working to prefill the PDF? Image 2 Screenshot 51

    However it did not work. An the text does not show the answer of the table

    ¿Why is the Field ID not working to prefill the PDF? Image 3 Screenshot 62

    It is possible to put the answers of the table in the text? I just dont know how.

  • Silvano Jotform Support
    Fecha de respuesta 20 de julio de 2024, 22:41

    Hi Johnathan,

    Thanks for reaching out to Jotform Support. Please remove the comma after the Field ID to make it work. See the screenshot below:

    ¿Why is the Field ID not working to prefill the PDF? Image 1 Screenshot 20

    Give it a try and let us know if you have any other questions.

  • tanojps
    Fecha de respuesta 22 de julio de 2024, 11:27

    Done, but did not work either

    ¿Why is the Field ID not working to prefill the PDF? Image 1 Screenshot 30¿Why is the Field ID not working to prefill the PDF? Image 2 Screenshot 41

  • Alejandro Jotform Support
    Fecha de respuesta 22 de julio de 2024, 13:39

    Hi Johnathan,

    Thanks for getting back to us. After making some tests in a clone of your form, I noticed this is not working because you have used the Field IDs on the Input table element for this instead of using the Unique name. You can only extract data from this element as a whole, the input table is a composite field, and it shall be displayed in the table format only in the PDF. The Field ID you entered can be used to modify that specific field using a customized CSS code. However, if you wish to show the results of each cell of the field separately in the PDF, I recommend using short text fields or any field that works individually for each option. This way you can use the Unique name of the field of each option to add it to the PDF paragraph fields. Let me show you:

    • On the PDF Editor, open the settings in the paragraph field and click on Form Fields on the top side of the field.
    • Select the input table field you wish to enter (or select the element you have used instead of it) so you can see the Unique name of the field instead of the Field ID.

    ¿Why is the Field ID not working to prefill the PDF? Image 1 Screenshot 20

    Give it a try and feel free to let us know if you have any other questions.

Su respuesta