Condition doesn't show the correct value

  • coigis
    Asked on May 27, 2015 at 5:33 PM

    I have a field called RHW check that will show either Ok or Invalid based on the condition of B_40%Area and B_check1. If the value of B_check1 is <= B_40%Area, it's Ok, otherwise, Invalid.

    RHW check will show after Wire used and EMT Size are selected. However, when all the conditions have met, RHW check is always Invalid initially. It will only show Ok after switching different Wire used. How can I have this fixed?

     

    Condition doesnt show the correct value Image 1 Screenshot 20

  • Aurora JotForm Support
    Replied on May 27, 2015 at 7:43 PM

    I have checked your form and the conditions, total 119 conditions, in order for us to be more efficient, can you please indicate the number of the condition that is not properly working. That way will be easier for us to fix it.

    Thanks, we will be waiting for your kind news.

  • coigis
    Replied on May 27, 2015 at 7:48 PM

    Please take a look at conditions 69, 70 and 75.

    Thanks!

  • Aurora JotForm Support
    Replied on May 27, 2015 at 9:29 PM

    I went ahead and checked the above mentioned conditions, it is fine, however, while checking the form I have found that for Tag B and Tag C, the radio button field has same name "Wire used" and same options RHW, THWN, XHHW, also for Tag C only there is a field RHW check, that could be causing conflict with set of condition.

    I would recommend you to consider rename one of those fields and make the appropriate adjustments to conditions.

     

  • coigis
    Replied on May 28, 2015 at 11:20 AM

    The RHW check still shows Invalid the first time even though it meets the conditions.

    Condition doesnt show the correct value Image 1 Screenshot 30

    I'm not sure what do you mean when you said for Tag C there is only a field RHW check, because these are the conditions for Tag C:

    Condition doesnt show the correct value Image 2 Screenshot 41

    And for names, isn't it the field names are all different? I'm using the same labels because they need to be the same labels for different Tags/sections.

  • Charlie
    Replied on May 28, 2015 at 1:19 PM

    It seems like this is related to the order of your conditions. Have you try re-ordering it? The value in the "RHW Check" changes on when you hover or change the input focus directly to the "B_check1". 

    I'll try to investigate it further and see if I can find the culprit on this.

     

  • coigis
    Replied on May 28, 2015 at 1:49 PM

    Thanks, Charlie.

  • coigis
    Replied on May 28, 2015 at 6:55 PM

    Any solution yet?

  • raul
    Replied on May 28, 2015 at 7:25 PM

    Can you please try using the following conditions instead to show the RHW, THWN and XHHW validation textboxes?

    Condition doesnt show the correct value Image 1 Screenshot 20

    Based on my tests since you were also validating that the "Wire Used" field was also filled this was causing the misbehaviour in the condition. When I removed it from the condition the validation worked correctly on my side.

    I made my tests using this cloned version of you form: http://form.jotformpro.com/form/51477377916973 please check it out and if it works correctly on your side, feel free to clone it to your account.

  • coigis
    Replied on May 28, 2015 at 7:36 PM

    Hmm... i'm still experiencing the same issue, on your cloned version or on my form after making the changes.

  • coigis
    Replied on May 29, 2015 at 1:06 PM

    Any idea? Please advise.

  • David JotForm Support
    Replied on May 29, 2015 at 2:37 PM

    If the RHW field is shown before all the conditions are checked, it is showing as invalid.  If you make all the selections prior to showing the RHW field, the proper response will be entered.  If you select the size, No. of wires and EMT size before selecting the RHW field, the proper entry should placed into the RHW field.

    What you could do, is setup a condition that shows the "Wire Used" field, only if the other 3 fields are filled first.  This will ensure that all the conditions are met, and the proper entry will be made in the RHW field.

  • coigis
    Replied on May 29, 2015 at 4:45 PM

    Thanks, David! That solves it.