How to Add a Condition Like If Field A Greater than Field B, Do ... ?

  • Profile Image
    sarox85
    Asked on December 03, 2015 at 08:45 AM

    hello, can I do a conditional rule with "greater than"....

     

    Es: If A greater than B then send email Y

  • Profile Image
    mert
    Answered on December 03, 2015 at 10:14 AM

    Hi,

    Yes, it is possible with some "Form Calculation" fields and some conditions. The reason of "Form Calculation" field usage is that you choose the options "Greater than" or "Lesser than" in conditions for "Text Box" fields.

     

    To do that,

    You need to create "A", "B" "Text Box" fields and 2 "Form Calculation" fields (Also, make them hidden) to transfer "Text Box" fields' values to them.

     

    Then create the following conditions to transfer values from "A", "B" to "Calculation A", "Calculation B".

     

    After those steps, you can add conditions for greater or lesser than actions. The conditions will be similar with the following ones. 

     

    Also, you can find the demo from the link below:

    https://form.jotform.com/53363982276970

     

    If you encounter any error, please let us know.

    Thanks.

  • Profile Image
    bekmarketing
    Answered on March 09, 2016 at 09:35 AM

    Is there away to have a form not allow a submit if a certain field is over the allowed number?

     

    For Example we do not want people to be able to submit for more than 8 tickets. So if the total number of tickets is greater than 8 I do not want the submit button to work.

     

    https://form.jotform.com/60674853454968

     

  • Profile Image
    mert
    Answered on March 09, 2016 at 09:57 AM

    Unfortunately, there is no direct way to do that; but we can add "Show/Hide a Field" condition to hide "Submit" button and popup some warning on your form.

    The setup of the condition will be similar with the one below:

     

    Also, you can see the example run from the following screen recording:

     

    I hope this one will meet your needs. For further assistance, you can always reach us.

    Thanks.

  • Profile Image
    bekmarketing
    Answered on March 09, 2016 at 10:53 AM

    Yes that will work!

    Thanks!

  • Profile Image
    mert
    Answered on March 09, 2016 at 11:11 AM

    You are most welcome. If you encounter any error while you are in the making process, please do let us know.

     

    Regards.