PDF Editor: show/hide Text, Images, and Headers based on the conditional logic in the form

  • selectabilitytrain
    Asked on May 21, 2019 at 2:11 AM

    Hi there,

    I've attempted to resolve this on the forums, but can't see any answer.

    I've setup a form with conditional logic that looks like this.

    Conditional logic: If drop down value = x show multiple text fields

    I have hidden all the fields on the form, so I'm expecting the logic to make visible the text fields as it does when when you actively complete the form. In other words, the form works as expected. However the PDF includes ALL hidden fields in the output.

    It appears the PDF editor sees the Text fields have entries even though they are hidden, so it includes them.




    Jotform Thread 1830194 Screenshot
  • Welvin Support Team Lead
    Replied on May 21, 2019 at 2:44 AM

    I'm sorry, but texts, images, and headers are not considered an input fields and therefore, shown as a static section in the PDF regardless of the conditional logic in the form. 

    I'll add this as a feature request and send it to our backend team on top of the other requests. We cannot provide a timeline for tickets, but as soon as we have an update, you should know it here.

    I'll try to find a workaround for you. I'll keep you posted. I think our Passage Tests or Narrative Fields widget will do it. 

  • Welvin Support Team Lead
    Replied on May 21, 2019 at 3:57 AM

    I'm sorry for waiting.

    The workaround using Narrative Fields or Passage Text widget worked. However, there is a slight problem with the formatting. The widget displayed the text like this in the PDF:

    15584251342019 05 21 002 Screenshot 10

    In the form builder, I have designed the widget this way:

    15584251662019 05 21 003 Screenshot 21

    I will create a separate ticket for this problem. This workaround should work for your purpose. A trick to accomplish the line breaks would be to have two or more Narrative or Passage widgets. For example, in some of your text fields, you have 5 rows of texts, you can add 5 Narrative/Passage in the form then just show them through conditional logic.

    You can do this method for Show/Hide fields: https://www.jotform.com/help/196-Hide-or-Show-Multiple-Fields-at-Once.

    Here are the widgets by the way:

    https://widgets.jotform.com/widget/narrative_fields

    https://widgets.jotform.com/widget/passage_test

    Note that you need to select "Yes" in the widget settings for "Include narration in submission":

    15584254412019 05 21 004 Screenshot 32

    I hope that helps. Please let us know if you need further assistance with this matter.