Hide heading field on PDF

  • gravierskishop
    Asked on November 13, 2021 at 3:01 PM

    I am having difficulty hiding field names on the PDF document (the one sent after the form submission) if a section has been skipped.

    i.e. on screenshot below, only 1 client is booking and the rest of the form has been skipped however Client #2, Client #3 etc are still showing up.

    I have turned on the option to 'hide empty form field' so none of the other field options show up but the headings keep showing up.

    1636833676 6190198c6a67d Screenshot 2021 Screenshot 10

  • Amin JotForm Support
    Replied on November 13, 2021 at 4:17 PM

    Hi there,

    Thanks for reaching out to us!

    Kindly make sure the Hide empty form fields option is enabled in Layout Settings in PDF Editor as shown below.

    1636837243 6190277b34a84  Screenshot 10

    Related guide: How-to-customize-pdf-submissions-report

    However, that doesn't apply to Headings which always show up regardless.

    1636837860 619029e4458fe  Screenshot 21

    As a workaround, please create different PDF documents for each client, attach each to an email alert, and use email conditions to send each email alert based on the section filled.

    Related guides:

    How-to-include-submissions-as-pdf-attachment-in-the-email-notifications

    How-to-send-email-based-on-users-answer

    Should you have any further inquiries, we will be more than happy to help.

  • gravierskishop
    Replied on November 14, 2021 at 8:48 AM

    Hello,

    I can confirm that 'Hide empty fields' is ticket.

    I didn't really want multiple PDFs sent to clients as the bookings are often for families as opposed to individuals however the solution I found is to create two hidden short text boxes on each section of the form. The first has a prepopulated default value i.e. Client#1, Client#2 etc. I then set a condition where is the 'Name' field on a section is filled then to copy the prepopulated value from the first field to the second.

    In the PDF I then inserted a text box and selected the 2nd form field (the one which the text had been copied into) so that it only shows up if there is a name inputted in that section of the form.

    It's not a particularly slick work around in the background but the client completing the for doesn't see anything and it does solve the issue. Hopefully this can help others.