Hidden texts through condition are still visible on PDF

  • themarketingapp
    Asked on March 9, 2018 at 12:31 PM

    Hi, I have been creating this form :

    https://form.jotformeu.com/73195856355367

    Hidden fields are shown to users based on their answers to questions, the form works fine. Yes/No shows the user a different hidden field for each question.

    However, the submission that is received (and set to email to the user as a pdf) shows the user all the hidden fields (i.e., it shows the 'yes' hidden field text, as well as the 'no' hidden field text to the user on the submission, irrespective of what has been shown to them on the form.

    Ideally I would like the submission to show the user just the hidden fields that they have been shown throughout the form.

    Many thanks,

    John

  • Elton Support Team Lead
    Replied on March 9, 2018 at 1:12 PM

    The text tool is a static element, it does not respond to conditions in the PDF submission because it does not ask a value, unlike the input fields. Meaning, even if the texts are hidden on the form, it would be visible in the PDF.

    The solution is to use Long Text Entry (Textarea) field for your text elements. Just add the text as the default value, then use the field in your show/hide condition.

    Make sure to disable the Markdown editor in order for the default value to work.

    Here's a visual guide:

    1. Add Long Text Entry

    Hidden texts through condition are still visible on PDF Image 1 Screenshot 40

    2. Disable Markdown editor in the Long Text Entry settings under General tab

    Hidden texts through condition are still visible on PDF Image 2 Screenshot 51

    3. Add the text as default value and make it read-only.

    Hidden texts through condition are still visible on PDF Image 3 Screenshot 62

    4. Edit your conditions and use the Textarea field in replace to the static text element.

    If you need further assistance, let us know.

  • themarketingapp
    Replied on March 9, 2018 at 1:36 PM

    Thats working great, thanks.


  • themarketingapp
    Replied on April 16, 2018 at 1:06 PM

    Hi, I changed the way responses were shown within my form in order to overcome this problem which worked fine.  However, all of a sudden the hidden response text that is shown to the user based on their response is now showing in a different text box :

    152389834330729955 10157441983240200 806 Screenshot 10

    It wasn't doing this when we first made the change?

    Could somebody advise?

    Many thanks,

    John


  • Elton Support Team Lead
    Replied on April 16, 2018 at 2:26 PM

    I'm not sure if I understood it correctly. It appears to be working fine when I tested your form. The text appeared on the textarea field.

    Example:

    Hidden texts through condition are still visible on PDF Image 1 Screenshot 30

    Hidden texts through condition are still visible on PDF Image 2 Screenshot 41

    If I've missed something, could you please clarify the problem further? Thanks

  • themarketingapp
    Replied on April 18, 2018 at 3:55 AM

    Hi, thanks for your reply.

    The user answers are now shown in a 'text box', as opposed to text on the page.  So on mobile it looks like that shown in this image. It was showing as image (b), now its showing in a text box as per image (a).  Can this be resolved so that it shows the text as image (b), without the text box?

    1524038085Screen Shot 2018 04 18 at 08 Screenshot 10

    Many thanks for your help.

    John


  • Elton Support Team Lead
    Replied on April 18, 2018 at 8:11 AM

    Thanks for the clarification.

    I hate to say this but that's not possible with the Card Form since this layout does not support custom CSS inject. This can only be achieved in the Classic Form layout.

    If you want, you can switch your form layout to Classic but this has different form styles compared to the Card Form. Guide: https://www.jotform.com/help/493-How-to-Change-the-Form-Layout#How-Can-I-Change-the-Layout-from-Cards-to-Classic