PDF Document: Hide header section title when the fields under it are empty

  • isolam
    Asked on August 22, 2021 at 3:03 PM
    On my Autoresponder email it has a customized PDF attached and it works correctly except I need it to HIDE the header section titles when all questions in it are empty - can I do that?
  • Mike_G JotForm Support
    Replied on August 22, 2021 at 3:54 PM

    We would like to apologize for any inconvenience. I'm afraid that the feature you are looking for is not available. There is only one workaround I can think of and that is to insert the value of the header into a separate Short Text field. Each header will have its respective Short Text field that will be hidden on the form.

    1629661168 6122a7f084571 zt210822 153632 Screenshot 10

    When a required field under a section is filled, the hidden Short Text field will be inserted with the Header text of the section the field belongs to. That can be achieved using conditions.

    1629661531 6122a95bc5490 zt210822 154403 Screenshot 21

    Reference Guide: How-to-Insert-Text-or-Mathematical-Calculation-into-a-field-using-a-Condition

    You will then make the value of the Short Text field appear on the PDF copy of submission by adding it to the PDF Document on the PDF Editor page using the Text element.

    1629661789 6122aa5d60716 zt210822 154645 Screenshot 32

    1629661823 6122aa7f175e8 zt210822 154706 Screenshot 43

    Here's how you will add the additional Short Text field to the Text element on the PDF document.

    1629661800 6122aa683ff69 zt210822 154736 Screenshot 54

    You can style the text to make it appear like a header using the editing tools of the Text element.

    1629661840 6122aa901a35e zt210822 154846 Screenshot 65

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