-
arnau91garciaFecha 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 SupportFecha 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:
As a result, these new conditions make the following:
Give it a try and let us know how it goes.
-
arnau91garciaFecha 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? :(
-
Frédéric Jotform SupportFecha 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.
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.
- In Form Builder, in the orange navigation bar at the top of the page, click on Settings.
- In the left panel, select Conditions.
- Move the mouse over the first condition, and click on the Pencil icon.
- Then, change the field Numero to the Total field.
- And click on Save.
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.
-
arnau91garciaFecha 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...
-
Gaud Jotform SupportFecha 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 SupportFecha 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:
Here is a link of the working cloned form, you can check it out and clone as well.
Let us know how it goes.
-
arnau91garciaFecha de respuesta 9 de agosto de 2024, 8:47
Thank you Gaud, but i dont know how do you do... and now, i got the same problem with a new form:
I am programming a series of logical conditions for the form. Apparently the first two are fulfilled but the last two are not. The configuration that I have made in all 4, I think, is exactly the same. I don't understand where the problem could be.
What I want is that when a value is:
- 19 or lower; the answer is "500€" in "min" and "1.000€" in "max"
- greater than 19 and less than 40 is "1.000€" in "min" and "1.500€" in "max"
- greater than 40 and less than 123 is "1.500€" in "min" and "2.000€" in "max"
- greater than 123 is "2.000€" in "min" and "2.500€" in "max"
Attached I send you the photograph of the result obtained so far in case it helps you resolve the issue.
Can you do the same (clone the form and do it work)? Thank you so much. This is the form: https://eu.jotform.com/build/242103855617354/settings/conditions
All the best.
-
Frédéric Jotform SupportFecha de respuesta 9 de agosto de 2024, 10:00
Hi Arnau,
The conditions you set in relation to the cases you mentioned are not working because, for each of them, you need to test if a total value is between a min and a max, so that need to set, in each of these conditions:
if ALL of the If rules are matched, instead of ANY of the if rules, as shown below.
Let me show you how to do it.
- In Form Builder, in the orange navigation bar at the top of the page, click on Settings.
- In the left panel, select the Conditions tab.
- Move the mouse over the condition to edit, and click on the Pencil icon.
- Swith the If Any of the rules... statement to If All of the rule.
- Click on Save, and you're done.
Note that in your conditions, the values set to be tested if they greater or older the ones you mention are set correctly, you might need to tune them according to your needs, knowing that lower/greater than is not equal to a value.
As you result, we got:
Give it a try and let us know how it goes.
-
arnau91garciaFecha de respuesta 11 de agosto de 2024, 7:56
Thank you very much Frédéric, you made it work! Thank you very much!!!
Now I have another problem! On the confirmation page, the result obtained from the questionnaire should appear in the boxes (short text) "Resultado Min" and "Resultado Max" whose unique name is "resultadoMin" and "resultadoMax" is this name that I use to assign it on the confirmation page, as seen in the image, but I can't get it to show up when testing. Any idea what may be happening? Thank you so much
P.S. Those fields are hidden in the form because I don't want them to be seen before clicking on "Calculate."
-
Eiron_O Jotform SupportFecha de respuesta 12 de agosto de 2024, 2:58
Hi Arnau,
I'll need a bit of time to look into this. I'll get back to you with an update shortly.
Thanks for your patience.
-
Eiron_O Jotform SupportFecha de respuesta 14 de agosto de 2024, 4:08
Hi Arnau,
To avoid confusion, I moved your new problem to a new thread. You can check my reply to that on this thread.
Let us know if you need any more help.