Join the Team Forms community

Hidden on Form but not PDF with Condition

Updated 4 months ago

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