Any way to only have section in PDF display if they have a value in app?

So I am creating a large report, but there are lots of fields that may or may not be filled out depending on the circumstance. I would like to have my PDF set up so it only displays the headings and results for those fields if data is entered. I know the information inside of <<>> will display as blank if no entry, but how can I get the whole section blanked out? Is there a way?

Screenshot 2024-01-12 105633.png

Solved Solved
0 10 209
1 ACCEPTED SOLUTION

Yes you can use IF: & EndIf expression pair for this purpose on your template.

View solution in original post

10 REPLIES 10

Yes you can use IF: & EndIf expression pair for this purpose on your template.

Thanks for the response. Any way you could put the syntax up based on the example I sent as to how I might implement it? I am not sure how I would build the expression.

I will see if I can figure it out. Need to figure out how to make the evaluation based on a particular item being blank

You could use something like.. OR(ISNOTBLANK([ColA]),ISNOTBLANK([ColB]),ISNOTBLANK([ColC]))

Does this syntax look correct? I confirmed I labeled the field exactly as it is in the table but it is not outputting anything to a PDF since making the change:

<<If: (ISNOTBLANK[Job_at_time_of_incident])>>

Specific job at time of incident:
<<[Job_at_time_of_incident]>>
<<EndIf>>

Small typo in here.. <<If: (ISNOTBLANK[Job_at_time_of_incident])>>
It should be <<If: ISNOTBLANK([Job_at_time_of_incident])>>

Perfect! That worked. Thanks so much! You all are awesome!

You're welcome!

Hey,

there is a really nice description with examples on here:
https://support.google.com/appsheet/answer/11568425?hl=en

Top Labels in this Space