How can I show or hide prepopulated texts directly into the final document depending on user's choice?

  • eikos.services
    Asked on February 2, 2020 at 2:18 PM

    It seems there is no solution to this problem, but I would like to ask for advice anyway. What I am trying to do is basically to display a pre-populated text directly in the document and hide another pre-populated text conditional upon user’s selection of a single choice question.

    There are 2 pre-populated texts, (a) and (b). This means that if user selects option 1 the prepopulated text (a) will be displayed in the final document whereas pre-populated text (b) will not be displayed in the final document. If user selects option 2 then pre-populated text (b) will appear in the final document, whereas pre-populated text (a) won’t.

     

    Thank you!

  • Mike_G JotForm Support
    Replied on February 2, 2020 at 3:23 PM

    What you are trying to accomplish is possible by using conditions and an extra field, which will be hidden on the form.

    Here's a Sample Form: https://form.jotform.com/200325504959051

    Conditions used:

    1580674759zt15 17 05 Screenshot 10

    1580674775zt15 19 03 Screenshot 21

    Additional setup:


    1580674939zt15 21 34 Screenshot 32

    Feel free to clone the form to your account so you can inspect it.

    Reference Guides:

    https://www.jotform.com/help/410-How-to-Manipulate-Text-String-with-Conditions-and-Calculation

    http://www.jotform.com/help/268-How-to-Insert-Text-or-Mathematical-Calculation-into-a-field-using-a-Condition


    https://www.jotform.com/help/434-How-to-Hide-Form-Fields

    https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL

  • eikos.services
    Replied on February 3, 2020 at 12:03 PM

    Hi Mike, you are indicating that whathever user's selection is, the "text that will be displayed in the final document will be the same (considering that there is only one final outcome). However in my case, depending on user's selection, the texts that will be displayed in the final documents will be different.

    If user selects option 1 then {prepopulated text1} is displayed on final document and {prepopulated text2} is hidden on final document.

    If user selects option 2, then {prepopulated text2} is displayed on final document and {prepopulated text1} is hidden on final document.


    Thank you

  • eikos.services
    Replied on February 3, 2020 at 12:29 PM

    Sorry Mike, I understand now, text that will be displayed must not be pre-populated, I got it.


    Thanks a lot!