How can I set a maximum total for products? Ex: I want it to be $5 per person but a max of $20 per family.

  • fairmountcc
    Asked on January 4, 2022 at 2:37 PM
  • Elton Support Team Lead
    Replied on January 4, 2022 at 8:51 PM

    There's no direct feature to achieve that but there's a workaround by hiding the submit button when the total is greater than $20 so the user can't submit the form until the total is corrected.

    Here's how:

    1. Add the Form Calculation Widget in your form and add the payment field in the formula to capture the total. You can also hide this widget (Right-click this field > hide) if you don't want it to be shown in live form.

    uc?id=1r3j6kHihLJxZ1XDYP7nDPlYjfRVGCYtl Screenshot 10

    2. Add your custom warning message to be shown in the condition when the total is greater than $20.

    uc?id=1 yFXibKiMU2 1FBmZRuMRqJvAY7lee3A Screenshot 21

    3. Create a Show/Hide condition that Hides the submit button and Shows your custom warning message when the Total is greater than 20.

    uc?id=1ijI0J3txBy3fTB0q1hHv9PsfLYxa7aji Screenshot 32

    Example result:

    uc?id=1PV xmvXXW2TNysYuNi7RASRsQuN6VmuJ Screenshot 43

    Here's my cloned form with these changes: https://form.jotform.com/220037625948964

    You can clone this form back so you can inspect and use it if you like. Guide: How to Clone an Existing Form from a URL