Show paragraphs of text in the pdf conditionally based on the answers in the form

  • Nytia
    Fecha de consulta 29 de septiembre de 2023, 6:27

    Necesito mostrar párrafos de texto en el pdf condicionalmente en función de las respuestas en el formulario.

    Si respuesta 1 mostrar txt 1

    Si respuesta 2 mostrar txt 2

    ¿Es esto posible?

    He hecho una prueba y en el formulario funcionan los condicionales, pero en el pdf generado se muestran todos los textos, independientemente de la selección.

    Gracias

  • Chris_L Jotform Support
    Fecha de respuesta 29 de septiembre de 2023, 9:06

    Hi Nytia,

    Thanks for reaching out to Jotform Support. Unfortunately, our Spanish Support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in Spanish, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.

    Now, let me help you with your question. This can be achieved using the Single Choice element, a Short/Long text field and a conditional statement to Update/Calculate Field. Let me show you how:

    1. In Form Builder, click on the Add Form Element menu on the left side of the page.
    2. Under the Basic tab, scroll down to Single Choice and Long Text elements, and drag and drop these elements to your form.
      Show paragraphs of text in the pdf conditionally based on the answers in the form Image 1 Screenshot 50
    3. In Form Builder, in the orange navigation bar at the top of the page, click on Settings.
    4. Click on Conditions on the left of the page.
    5. Click on +Add a New Condition.
      Show paragraphs of text in the pdf conditionally based on the answers in the form Image 2 Screenshot 61
    6. Select Update/Calculate Field and then set the conditions just like you see below:
      Show paragraphs of text in the pdf conditionally based on the answers in the form Image 3 Screenshot 72
      Show paragraphs of text in the pdf conditionally based on the answers in the form Image 4 Screenshot 83
    7. Finally, click on Save.

    Here's the demo form that you can clone and test on your account.

    Give it a try and let us know if you need any help.