.To do that, I've set the "calculation"...">
 

Why is my condition not working?

  • Profile Image
    PoughkeepsieFarmProject
    Asked on March 28, 2015 at 12:57 PM

    Hi there,

    I'm trying to set up a condition so that the "fee" box has a minimum amount of $100, except when the fee is $0.

    To do that, I've set the "calculation" box to equal the "number of youth" x 10 x "Is your group part of the Poughkeepsie City School District?" where yes=0 and no=1

    then I've set up the "fee" box to equal the "calculation", but put a condition that if "calculation" is less than 100 AND more than 1, then 100 is outputted to "fee".

    It seems to work sometimes, in preview, but most of the time it doesn't...is there a reason for that? Is there a different way to set it up that is more reliable?

     

    Cheers,

    Jes

  • Profile Image
    PoughkeepsieFarmProject
    Answered on March 28, 2015 at 01:18 PM

    I've actually solved it for myself...I've removed the original condition and also removed the "fee" equals "calculation" for calculation and replaced it with this:

    condition 1: if "calculation" equals 0,
                      if "calculation" equals 100,
                      if "calculation" is greater than 100,
                      if ANY true,
                      then output "calculation" to "fee"

    condition 2: if "caculation" is greater than 1
                      if "calculation" is less than 100
                      if ALL true
                      then output 100 to "fee

    works like a charm!

     

    Cheers,

    Jes

     

  • Profile Image
    raul
    Answered on March 28, 2015 at 04:51 PM

    Thank you for letting us know.
    I'm glad to see that you were able to find the problem in your conditions.

    If you need our help anytime, please let us know.
    Best Regards.

  • Profile Image
    PoughkeepsieFarmProject
    Answered on March 28, 2015 at 09:29 PM

    Hi again,

    Actually, the issue is only partially resolved. Within the jotform preview, the form works fine, but where I have it embedded, not only does the calculation/condition not work, but also it lets you submit without filling out required boxes. I have sent 3 false submissions mistakenly and I'm wondering if it's possible to get my submission count back to 0.

    Also, I need to solve my original issue.

    The form I use now is a clone: http://form.jotform.us/form/50865305273152

    and it is embedded here: http://poughkeepsie-farmproject.squarespace.com/group-farm-visit

    this is the embed code I used: <script type="text/javascript" src="//form.jotform.us/jsform/50865305273152"></script>

     

    Cheers,

    Jes

     

  • Profile Image
    BJoanna
    Answered on March 29, 2015 at 04:34 AM

    I tested your form and I was not able to submit your form without filling the required fields.

    Instead of using script block (source code) for embedding your form on website, you can try using iFrame code. Replace source code with iFrame to see if the form will work properly. In this article you can find out how to do it.

    http://www.jotform.com/help/148-Getting-the-Form-iFrame-Code 

    As free user you have 100 submissions/month and they will be reset on the 1st of next month.

    Hope this will help. Let us know if you need further assistance.

  • Profile Image
    PoughkeepsieFarmProject
    Answered on March 29, 2015 at 09:46 AM

    Thanks for the info - I replaced the source code with an iFrame and now it works beautifully, thanks!  Actually...I might do that with all the forms on the site....

    Also, thanks for letting me know about the reset..I wasn't sure if it was at the 1st of the month or monthly based on when I signed up.

    Cheers,

    Jes

  • Profile Image
    Welvin
    Answered on March 29, 2015 at 01:24 PM

    Hi Jes,

    That's great to know and it's our pleasure to help! Please do not hesitate to get back to us if you need further assistance.

    Cheers!