Funcionamiento de las condiciones

  • arnau91garcia
    Fecha de consulta 21 de junio de 2024, 8:19

    Buenas tardes.

    Estoy programando una serie de condiciones lógicas para el formulario. Al parecer las dos primeras si que se cumplen pero las dos últimas, no. La configuración que he hecho en las 4 creo, que es exactamente la misma. No entiendo dónde puede estar el problema.

    Lo que quiero es que cuando un valor sea:
    - 5 o inferior; la respuesta sea "180€ y 240€"
    - mayor que 5 e inferior de 25 sea "240€ y 480€"
    - mayor que 25 e inferior de 50 sea "480€ y 600€"
    - mayor que 50 e inferior de 110 sea "más de 600€"

    Adjunto les mando la fotografía del resultado obtenido hasta ahora por si les ayuda a resolver la cuestión.

    Muchas gracias.

    Un saludo.


  • Frédéric Jotform Support
    Fecha de respuesta 21 de junio de 2024, 8:45

    Hi Arnau,

    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, it's easy to fix your issue by making your conditions statements simpler. If you want to make a condition to test if the price is lower or equal to X, you just need to test if the price is lower than X + 1, and set if ALL the conditions, greater than and less than, are true, as shown below:

    Funcionamiento de las condiciones Image 1 Screenshot 30

    As a result, these new conditions make the following:

    Funcionamiento de las condiciones Image 2 Screenshot 41

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

  • arnau91garcia
    Fecha de respuesta 28 de junio de 2024, 6:53

    I dont know why don't work it... I do the same conditions like you but is not the same results... why? :(

    Funcionamiento de las condiciones Image 1 Screenshot 20

  • Frédéric Jotform Support
    Fecha de respuesta 28 de junio de 2024, 7:31

    Hi Arnau,

    The conditions set in your form, as shown below, are a little bit different to he one your screenshot is showing.

    Funcionamiento de las condiciones Image 1 Screenshot 50

    If the conditions as defined in your screenshot can't make them work, because, as for instance 110+1 is not a number per se, the number expected being 111, the ones actually defined are correct and seems to work, as far I can test it.

    But may be you're just expecting to apply the field Total to the conditions, instead of the field Numero. If this is the case, Let me show you how to do it. 

    1. In Form Builder, in the orange navigation bar at the top of the page, click on Settings.
    2. In the left panel, select Conditions.
    3. Move the mouse over the first condition, and click on the Pencil icon.Funcionamiento de las condiciones Image 2 Screenshot 61
    4. Then, change the field Numero to the Total field.Funcionamiento de las condiciones Image 3 Screenshot 72
    5. And click on Save.Funcionamiento de las condiciones Image 4 Screenshot 83

    Repeat these steps to all the other conditions. And finally, you'll be able to remove the field named Numero which, as I guess, was used only for testing.

    Reach out again if you have any other questions. 

  • arnau91garcia
    Fecha de respuesta 28 de junio de 2024, 8:24
    I have written the thing and done the same procedure as you, but it still doesn't work. It only gives the maximum value "240 to 480" even though the criterion is not met. What's going on? How do I fix it? I've had this problem for 1 week...

    Funcionamiento de las condiciones Image 1 Screenshot 30Funcionamiento de las condiciones Image 2 Screenshot 41

  • Gaud Jotform Support
    Fecha de respuesta 28 de junio de 2024, 10:56

    Hi Arnau,

    I've checked out the conditions which were set properly. Allow me some time to check on this, as I will need a bit of time to run the test. I'll get back to you as soon as there is an update on this.

    Thanks for your patience and understanding, we appreciate it.

  • Gaud Jotform Support
    Fecha de respuesta 1 de julio de 2024, 19:16

    Hi Arnau,

    When I cloned and tested your Calculadora desbroce , the same thing happened for me. After investigating it a bit, I found a solution. It's really easy to fix, all you need to do it disable the last conditions and create new one, this will resolve an issue. Let me show you how:

    Funcionamiento de las condiciones Image 1 Screenshot 30

    Funcionamiento de las condiciones Image 2 Screenshot 41

    Here is a link of the working cloned form, you can check it out and clone as well.

    Let us know how it goes.

 
Su respuesta