What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How can I show/hide multiple fields based on a condition?

    Asked by dargoros on April 23, 2015 at 12:37 PM

    Hola

    solicito su ayuda

     

    necesito asociar una seleccion multiple a cierta cantidad de numero

     

    se relaciona a modulos y habitaciones

     

    ejemplo

    tengo una seleccion multiple con 9 respuestas, el usuario al seleccionar una de estas ejemplo MODULO AROMO

    abajo en el cuadro de habitacion solo aparesca el rango de las habitaciones de ese modulo

    y asi con todos los demas modulos

     

    help me please

     

    show hide multiple conditions
  • Profile Image

    Answered by raul on April 23, 2015 at 01:15 PM

    Gracias por contactarnos.

    Esta guía: http://www.jotform.com/help/196-Hide-or-Show-Multiple-Fields-at-Once detalla como mostrar o esconder multiples campos dependiendo de una condicion. También tenemos esta otra guia: http://www.jotform.com/help/297-Show-or-Hide-multiple-fields-at-once-using-form-collapse-tool que muestra como hacer lo mismo pero usando el Form Collapse tool.

    Para su escenario creo que sería mas sencillo usando Form Collapses para poder identificar cada modulo y mostrar/esconder los campos correspondientes a cada uno de los modulos de una forma más sencilla.

    Espero que esta información le sea de ayuda.

    Si tuviera alguna duda adicional, por favor no dude en contactarnos.

  • Profile Image

    Answered by dargoros on April 23, 2015 at 03:03 PM

    no me explique bien, este es mi formulario, http://form.jotformz.com/form/50854655042657

    se esta desarrollando para sodexo como una prueba ya que se masificaria utilizando cuentas premium de esta

     

    ahi cuando seleccionas modulo, da la opción múltiple , en la cual al seleccionar un ejemplo AROMO

    en el siguiente cuadro de mas abajo en el habitacion, tenga una condicion que son 500 habitaciones

    que al colocar de la habitacion 1 al 500 las acepte y si colocan habitacion 501 diga que no existe o inexistente o error

    y asi para los otros modulos modulo algarrobo del 501 a la 1000 se pueda colocar y si colocas 1001 arroje error,

    y asi susesivamente para los demas modulos

  • Profile Image

    Answered by Ben on April 23, 2015 at 04:55 PM

    If I understood correctly, what you are actually looking for is to show the error if the bad number is added into the Habitación field, which is based on the Modulo field above it?

    So following your example, if Modulo is Aromo, it can be only a number from 0 so 1,2,3... till 501 so it ends with 500, where the next 'room' begins so 501 till 1000 and so on.

    If that is so, there are few steps that we need to do:

    1st - remove the Habitación field and instead of it add Form Calculation widget. You can see here how to add it to your jotform: How to Add a Widget to your Form

    We will do this because we need the conditions property of less than and more than.

    2nd - create a Text element on your form that will be used to show the error.

    3rd - create conditions to check if the right Modulo was created and if the values are right for it or not.

    You can see the first check for AROMO only.

    As you can see we need 2 of them to have them work properly.

    As you create others like the two above, all you need to change is the modulo value and the value to be checked if less or more than the allowed.

    You can see the form with this already done here: http://form.jotformpro.com/form/51126134543951 and can clone it to your account, by taking a look here: How to Clone an Existing Form from a URL

    Do let us know if that is what you were after.

  • Profile Image

    Answered by dargoros on April 24, 2015 at 11:22 PM

    thanks ben