Join the Team Forms community

Updated 6 months ago

Hidden on Form but not PDF with Condition

At a glance

The community member wants to create a feedback component that only displays on the PDF generated after form submission. The feedback is set to be hidden in the live form, but it still appears when the condition is met. Another community member suggests using an advanced conditional that specifically targets the PDF to completely hide the component in the web form but still be able to dynamically show/hide it in the PDF. The solution provided works, and the community member expresses gratitude.

I want to create a Feedback that displays only on the PDF generated after submitting. I have The condition set to display when a question (select box) is answer wrong, this works. I also have it set to Hidden but not Not Hidden in PDF. When i try previewing the form the feedback is still showing in the live form when the condition is met

Marked as solution

This is how it looks on the live form. I only want the red text to display on the PDF. Conditioning seems to override the 'Hidden' option

View full solution
T
E
1 comment·2 replies

This is how it looks on the live form. I only want the red text to display on the PDF. Conditioning seems to override the 'Hidden' option

Hi Tom,

To completely hide a component in the web form but still be able to dynamically hide/show it in the PDF you will need to use an advanced conditional that is specifically targeting the PDF. Here is how you could achieve this:

  1. Drag and drop the component you wish to hide into your form (i'm going to assume this is a content component)

  2. Ensure you tick the "hidden" option but untick the "hide in pdf" option

  3. In your conditional tab add a JavaScript expression that specifically targets the PDF by using the instance.isHtmlRenderMode()

    Plain Text
    show = instance.isHtmlRenderMode() && insertExistingCondition


Here is an example of the end result 🙂

Works. Thanks a bunch