calculo de un numero condicional

  • mauricio_martinez
    Fecha de consulta 12 de agosto de 2024, 16:44

    Hola

    Como puedo administrar que un campo número esté condicionado por otro campo , por ejemplo

    campo 1 es igual a "departamento" y campo 2 es igual a "cielo abierto"

    Número de piso ingresado debe ser > 5

    En este caso si se cumplen las 2 condiciones el numero a ingresar debe ser menor a 5


    Saludos


    Mauricio



  • Eleazar Jotform Support
    Fecha de respuesta 13 de agosto de 2024, 2:56

    Hi mauricio_martinez,

    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, You can add a hidden number field with the limited input from 1 to 5, then have it shown when picking on departamento and terreno abierto. Let me show you how.

    1. On Form Builder, click on Add Form Element, then add a Number field to your form.
      calculo de un numero condicional  Image 1 Screenshot 60
    2. To set the limit of options from 1-5, select your Number field, click on the Gear icon, click on Options, toggle Entry Limits to On, then set minimum to 1 and maximum to 5.
      calculo de un numero condicional  Image 2 Screenshot 71

    Set conditions to show the Number field with the limited entry. Let me show you how.

    1. On Form Builder, click on Settings on top then click on Conditions on the left.
    2. Click on Add Conditions, select Show/Hide Field.
      calculo de un numero condicional  Image 3 Screenshot 82
    3. Set up the following conditions.
    4. IF - Exposicion A Viento
    5. STATE - Is Equal To
    6. VALUE - Terreno Abierto
    7. IF - Tipo De Inmuelbe
    8. STATE - Is Equal To
    9. VALUE - Departamento
    10. IF "All" OF THE IF RULES ARE MATCHED
    11. DO - Show
    12. FIELD - the number field with the limited options
      calculo de un numero condicional  Image 4 Screenshot 93

    Whenever a user selects both departamento and terreno abierto, the number field will show.
    calculo de un numero condicional  Image 5 Screenshot 104

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

  • mauricio_martinez
    Fecha de respuesta 13 de agosto de 2024, 13:26

    Muchas gracias por la respuesta pero no me sirve , por que cuando la condición de ambos casos es verdadero esta perfecto , pero cuando es falso debo ingresar igual un numero de piso y como tiene la condición "mostrar" solo cuando es verdadero .-no es lo que busco


  • Eleazar Jotform Support
    Fecha de respuesta 13 de agosto de 2024, 13:59

    Hi mauricio_martinez,

    I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.

  • Eleazar Jotform Support
    Fecha de respuesta 15 de agosto de 2024, 10:18

    Hi mauricio_martinez,

    You can set up a condition to hide the number field without the entry limit, so when the number field with the entry limit is shown, the user will not have to fill both fields. Let me show you how.

    1. On Form Builder, click on Settings on top, then click on Conditions on the left.
    2. Click on Add Condition, then select Show/Hide Field.
      calculo de un numero condicional  Image 1 Screenshot 40
    3. Set up the following conditions.
    4. IF - Exposicion a Viento
    5. STATE - Is Equal To
    6. VALUE - Terreno Abierto
    7. IF - TipoDe Inmueble
    8. STATE - Is Equal To
    9. VALUE - Departamento
    10. IF ALL OF THE IF RULES ARE MATCHED
    11. DO - Hide
    12. FIELD - Numero De Piso
      calculo de un numero condicional  Image 2 Screenshot 51
    13. Then click Save.

    This should hide the first number field and show the second one with the entry limits. Here's a screencast of the result.
    calculo de un numero condicional  Image 3 Screenshot 62

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