Conditions not working properly on the form

  • tomorrownight
    Asked on October 13, 2014 at 10:30 AM
    Secondly - Ive got a lot of conditions in this form, and X can be Identical to Y, but X works and Y doesnt (for example only 30% of the time does the "weekend ticket (Fri-Sun)" add money into the calculation. )  Then ive got a similar issue (which might be me missing something), if you add Wednesday (in choose days) it adds £12 as required, but then when you choose "Go Karting" it takes the previous number away and adds the value of Go Karting (£6) - why is this?  Else where it works and the rules and conditions are exactly the same (apart from the price difference).
  • Welvin Support Team Lead
    Replied on October 13, 2014 at 12:14 PM

    Hi,

    I'm checking this now. I will get back to you for my findings.

    Thank you!

  • Welvin Support Team Lead
    Replied on October 13, 2014 at 12:51 PM

    Ive got a lot of conditions in this form, and X can be Identical to Y, but X works and Y doesnt (for example only 30% of the time does the "weekend ticket (Fri-Sun)" add money into the calculation.

    -Actually, the conditional logic aren't working because you have set a Calculation Values to the settings. It looks like the conditional logic is working to this field, but not. It's the calculation values:

    Conditions not working properly on the form Image 1 Screenshot 30

    I have added 20 to the settings and it's working, check this clone version of your form: http://www.jotformpro.com/form/42855093224960. Also, that is since you have an existing calculation to the widget:

     

    Conditions not working properly on the form Image 2 Screenshot 41

    I think you need to have a separate calculation widget that would sum up all the fields. Then you can use the Calculation Values instead of the conditional logic.

     

    Then ive got a similar issue (which might be me missing something), if you add Wednesday (in choose days) it adds £12 as required, but then when you choose "Go Karting" it takes the previous number away and adds the value of Go Karting (£6) - why is this?  Else where it works and the rules and conditions are exactly the same (apart from the price difference).

    -This is because you have two conditional logic. The second one overrides the first one. Note that there's a priority between the conditional logic. What you can do is to add an extra calculation widget that sum up all the fields. Then use this to the payment field.

    I will try to come up with a possible solution on this.

    Thank you!

  • tomorrownight
    Replied on October 14, 2014 at 3:32 AM

    ok awesome, thanks, i think ive sorted it now!

  • tomorrownight
    Replied on October 14, 2014 at 6:31 AM

    something else on this note though -
    when i go to When would you like to come: Weekend Ticket,
    It adds £20 into the calculation, but then when you click on a job, it adds the £5 from that as well, even though ive said to take it away.  it should be -£5 but its the same as all the other minus conditions for the other days.  how si this one different (ive followed your instructions above.)

  • Welvin Support Team Lead
    Replied on October 14, 2014 at 8:04 AM

    Do you mean the "Festival Weekend (Inc. Party)" option? Then selecting any from the "Weekend Jobs" jobs which is a Gift Registry widget adds "5" to the "Weekend Discount" field at the bottom. Then should be 15 on the calculation = less than 5?

    If yes, then that is because the "Weekend Discount" is not included in the calculation. As you could see from my previous screenshot. Here's it is again:

    Conditions not working properly on the form Image 1 Screenshot 30

    You have to add the Weekend Discount field to fix that: 

    Conditions not working properly on the form Image 2 Screenshot 41

    Thank you!