How to get the total number of products selected?

  • cory_cionvica
    Asked on May 28, 2020 at 4:30 AM

    Hi,

    i am trying to calculate the total number of products selected but the calculation widget wont bring any result. please help

    Jotform Thread 2352105 Screenshot
  • jherwin
    Replied on May 28, 2020 at 6:31 AM

    You can add 1 to the pricing for all of your items and enable the show total price on the form.
    1590661302showtotal Screenshot 10
    You can then hide the price and the total price texts using custom CSS code:

    .form-product-details {
        display: none;
    }
    span.form-payment-price {
        display: none;
    }
    span#total-text {
        display: none;
    }

    Guide: How-to-Inject-Custom-CSS-Codes

    Here's my demo form: https://form.jotform.com/201482402379958

    You can clone my demo form to inspect and to know how it was done.

    Guide: How-to-Clone-an-Existing-Form-from-a-URL

     

  • cory_cionvica
    Replied on May 28, 2020 at 6:55 AM

    woww woww woww it works like magic, thank you so much for your help no idea how you do it far to smart :)))