Need help setting up the conditional logic on my form

  • lew_kari
    Asked on October 15, 2018 at 8:25 PM

    Hi there,

    I have a number of forms for ordering bottles of wine. Some forms are for persons who are required to purchase 6 bottles and some 12 bottles. I am finding that customers are not adding the correct number of bottles to their order. I therefore would like to program the form to say "If order quantity is NOT equal to 6, display an error with a message".

    Is this possible? Your swift response is much appreciated as the form is currently live. 

    Kari

  • Support_Management Jotform Support
    Replied on October 16, 2018 at 1:27 AM

    Hey Kari - Yes, this is possible using the following features:

    1. SHOW/HIDE CONDITION

    2. TEXT FIELD

    The idea is to conditionally show the TEXT FIELD (this field will serve as your visual cue or error message) if the order quantity is not equal to 6. However, my recommendation is to create your logic based on your requirement. If your users will always be required to buy only 6 or 12 bottles, then it's better to set up two conditions (for 6 and 12 respectively).

    The guide linked on #1 above should cover the steps on how to configure the condition. Give it a try and if you see any problems along the way, let us know what is happening VS what you're expecting to happen so we can have a closer look.

  • lew_kari
    Replied on October 16, 2018 at 10:43 AM
    Thanks for the help. I've used the "Order options" to allow customers to pick wines, and the quantities of the want the wines. The total shows only a dollar amount (which is variable), but not a quantity amount (which should be fixed, and therefore I can attach the conditional logic to it). Is there a way to have conditional logic equal to a total in the order options?
    https://www.jotform.com/build/82846592384268
    This is the form. I want users to not be able to press submit if their order doesn't equal 12 bottles.
    ...
  • Nik_C
    Replied on October 16, 2018 at 1:18 PM

    Unfortunately, it is not possible to do that with payment field, since you cannot check the quantity of the field.

    You could do that by re-creating the product list and using regular fields, then you could pass the calculation to payment field: https://www.jotform.com/help/275-How-to-Pass-a-Calculation-to-a-Payment-Field

    Let us know if that could work for you.

    Thank you!