How do I add fields on the form dynamically?

  • nordia_digital
    Fecha de consulta 23 de noviembre de 2023, 4:59

    Buenos días,

    Escribo por aquí porque el Live Chat no me funciona, a medio escribir me desaparece el widget y pierdo todo lo redactado.

    Tengo una consulta sobre una funcionalidad de los formularios. Estoy haciendo una encuesta sobre una actividad que puede ser realizada por una o varias personas, y me gustaría o bien:

    1. Preguntar el nombre de la persona implicada (en formato desplegable), y que el usuario pudiera añadir más respuestas (con un botón + o similar) si así lo requiriera.
    2. Preguntar de entrada cuántas personas han estado implicadas en la actividad, y después ofrecer tantos campos desplegables como correspondiera (a ser posible, en una misma página)

    Muchas gracias de antemano por su tiempo.

    Un saludo,

    Paula Calbet

  • Sweta Jotform Support
    Fecha de respuesta 23 de noviembre de 2023, 7:33

    Hi paula261,

    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. You can add a Configurable List widget in the form and set all the questions you want your user to input. It will display an add button in the form and when the user clicks on the button, it will duplicate all the fields where the user can input the data again.

    The Configurable List widget is easy to use. Let me show you how:

    • In Form Builder, click on the Add Form Element menu on the left side of the page.
    • Under the Widgets tab, add the Configurable List widget into your form.
    • You can customize the fields using the Fields Configuration Box. In the box, use the syntax below (click here to learn more).
    {label} : {type} : {placeholder}
    • After finishing all of the customizations, click on Update Widget and you're done.

    How do I add fields on the form dynamically? Image 1 Screenshot 20

    Give it a try and let us know how it goes.

  • nordia_digital
    Fecha de respuesta 23 de noviembre de 2023, 8:03

    Good afternoon Sweta,

    No problem, we can write in English!

    Thank you very much for your answer, this widget is exactly what I was looking for. However, I'm having some trouble with it on Preview mode, for some reason the preview skips the question although the "Hide" option isn't active and no conditions have been applied. IDK if you had seen this problem before?

    Let me know, thanks again in advance.



  • Angeli Jotform Support
    Fecha de respuesta 23 de noviembre de 2023, 10:27

    Hi Paula,

    Thanks for getting back to us. I've tested your form, but the 2 Configurable List widget are showing in preview. Take a look at the screenshot below to see my results:

    How do I add fields on the form dynamically? Image 1 Screenshot 30How do I add fields on the form dynamically? Image 2 Screenshot 41

    I've cleared your form caches. Can you give it another try and let us know what happens? If you're referring to different fields, can you take a screenshot of what’s happening and send it to us? This guide will show you how to do that.

    Once we hear back from you, we'll be able to help you with this.

  • nordia_digital
    Fecha de respuesta 23 de noviembre de 2023, 10:41

    Hello Angeli!

    I was able to fix this just some minutes ago, I saw the Nombre del educador question appeared right before Código(s) de cliente, I think it's because I originally cloned the second question to create the first one. I created it from scratch and was able to fix the order correctly :)

    Thank you very much for checking it anyway!

    However, I came across 2 more issues in the meantime:

    1. I would like to hide/show answers in a multiple options question based on a previous answer. I have seen this help entry, but it only explains how to hide whole questions (not specific answers inside them): Is there anyway I would be able to do that?
    2. I am working with conditions to build several journeys inside my form, basically based on question 3. However, when I try to send my form, it doesn't let me because I haven't answered some questions (which I want to be compulsory when they appear, but haven't appeared on this specific journey). I assume this is because I'm conditionally jumping to questions ahead, should I conditionally show/hide questions instead? Is there an objectively best option between pre-hiding + conditionally showing or conditionally hiding?

    How do I add fields on the form dynamically? Image 1 Screenshot 20 Screenshot 10

    Thank you very much in advance :)



  • Catherine Jotform Support
    Fecha de respuesta 23 de noviembre de 2023, 12:43

    Hola Paula,

    Gracias por contactarnos nuevamente. Con el fin de evitar confusiones, he movido tus nuevas preguntas a dos nuevos hilos. Puedes ver nuestra respuesta en breve aquí:

    Déjanos saber si hay algo más con lo que podamos ayudarte.

  • nordia_digital
    Fecha de respuesta 24 de noviembre de 2023, 7:39

    Thank you very much Catherine.

    I followed up on these two topics on their respective threads and they both have been solved. Your team is so responsive and helpful, it is being decisive for the onboarding to the tool, and I just wanted to let you know :)

    Sorry to bother you again, but there is a final question I'd like to ask regarding the configurable list widget. When its answers get sent to Google Sheets, they appear on a cell preceded by a colon and a space. I have tried removing those on the configuration of the field, but they appear necessary for the different variables to be configured and indicated. Am I doing something wrong? Is there any way to fix it?

  • Sweta Jotform Support
    Fecha de respuesta 24 de noviembre de 2023, 8:41

    Hi Nordia_digital,

    I moved your other question to a new thread and helped you with that here.