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

  • sarox85
    Asked on December 3, 2015 at 8:45 AM

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

     

    Es: If A greater than B then send email Y

  • mert JotForm UI Developer
    Replied on December 3, 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.

    How to Add a Condition Like If Field A Greater than Field B, Do  Screenshot 40

     

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

    How to Add a Condition Like If Field A Greater than Field B, Do  Screenshot 51

     

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

    How to Add a Condition Like If Field A Greater than Field B, Do  Screenshot 62

     

    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.

  • bekmarketing
    Replied on March 9, 2016 at 9: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

     

  • mert JotForm UI Developer
    Replied on March 9, 2016 at 9: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:

    How to Add a Condition Like If Field A Greater than Field B, Do  Screenshot 30

     

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

    How to Add a Condition Like If Field A Greater than Field B, Do  Screenshot 41

     

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

    Thanks.

  • bekmarketing
    Replied on March 9, 2016 at 10:53 AM

    Yes that will work!

    Thanks!

  • mert JotForm UI Developer
    Replied on March 9, 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.