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.

  • Profile Image
    fairmountcc
    Asked on January 04, 2022 at 02:37 PM
  • Profile Image
    EltonCris
    Answered on January 04, 2022 at 08: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

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

    uc?id=1_yFXibKiMU2-1FBmZRuMRqJvAY7lee3A

    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

    Example result:

    uc?id=1PV_xmvXXW2TNysYuNi7RASRsQuN6VmuJ

    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