Cómo puedo ocultar un campo en un PDF que pertenece a un widget de lista configurable?

  • jrustrian
    Fecha de consulta 14 de marzo de 2025, 19:07

    Dentro de mi formulario tengo un Widgets, de tipo Lista configurable, dentro de la lista configurable tengo dos campos de tipo checkbox.

    ¿Ahora bien de los 2 campos tipo checkbox, quiero que solo uno se vea reflejado en el reporte pdf, como puedo ocultar el campo que no quiero ver en el reporte?, agregue unas líneas de CSS, pero no me funciono o quizá no es la sintaxis correcta, a continuación la muestro.

    @media print { .Cambios2 { display: none; } }

    Agradezco su soporte!.

  • Rhina Jotform Support
    Fecha de respuesta 14 de marzo de 2025, 19:36

    Hi jrustrian,

    Thanks for reaching out to Jotform Support. Our Spanish Support agents are busy helping other Jotform users right now, so 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, it might take a while until they're available again.

    Now, coming back to your question, Unfortunately, the PDF Document doesn't hide fields dynamically based on the user's. Since both check box are in one Configurable list element, the PDF Document will always show the filled fields. You can consider adding a second Configurable list for the second Checkbox and setup a condition to set hide the field based on your preference. Empty fields are not shown on the PDF Document for as long as the Hide empty form fields setting remains checked. Let me show you how:

    1. In PDF Editor, click on the Gear icon in the upper right corner of the page to open PDF Settings.
    2. Put a check in the box next to Hide Empty Fields.

    Cómo puedo ocultar un campo en un PDF que pertenece a un widget de lista configurable? Image 1 Screenshot 30 This will hide the fields that haven't been filled in the form when you are using it as PDF document. Check out the screenshot below to see how it'll look:

    Cómo puedo ocultar un campo en un PDF que pertenece a un widget de lista configurable? Image 2 Screenshot 41Give it a try and let us know if you need any help.

  • jrustrian
    Fecha de respuesta 17 de marzo de 2025, 10:33

    Gracias Rhina por la respuesta.

    Tomaré en cuenta tu respuesta y modificaré mi formulario.


    Gracias!