What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Once focus is out of the coupon field, conditions grab value from wrong fieldAsked by SunbridgeInstitute on January 20, 2016 at 03:46 PMJust now, when I type COMMUNITY into the Coupon Code, and tab out of that field, The Alumni/Community Discount calculates correctly, but the Tuition Total does not work. It just grabs the Tuition Subtotal.
Screenshot was not transferred over so here it is:
I have tried other options while answering the other thread and this seemed to work. Selecting the options as you have selected (based on the screenshot) I see that there is something strange.
Let me explain why:
1. On your screenshot you add COMMUNITY discount and the fields above are showing 0 in them, while Alumni/Community Discount is showing half of the original value.
Total Tuition does not show anything other than the raw tuition subtotal value.
During my tests, the fields above it are actually hidden - well first Combination Discount: 2-day workshop holds 25 as its value, but once community is applied, it gets hidden.
No mater if I click or tab my way out of the field, this seems to stay as it is and works without any issue.
Yes, after I submitted this ticket, I made some changes that hid irrelevant data on the form for the ease of the user. Do you think that adding these "hide fields" conditions actually enhanced the reliability of the form's calculations?
I'm so nervous about calculations happening reliably--I've had so many instances of it miscalculating.
Thank you again for your help.
They could..but let me explain this. The hidden fields are working differently for conditions and form calculation widgets as you can (in form calculation) set the widget to ignore values from hidden fields.
There is also an option in form preferences that set the hidden fields no value once hidden, which can impact how calculations work.
So technically it could, but all depends on the calculations setup you have on your forms.
As long as it is working properly that is good to hear :)
If it happens to cause any issues, just let us know and we would be happy to check it out and see what can be done.
Yes, I do have preferences set up so that hidden fields are zeroed out. Remembering that is what made me realize that it might be helping. I hope that solved my problems. Thank you for your help!
You are welcome :)
As mentioned do let us know if there is anything else that we might be of assistance with and we would be happy to be so :)