How can I sell one item that disappears from the form after its ordered?!

  • 1STSUMMITARENA
    Asked on December 13, 2020 at 3:56 PM

    Hello, I need to sell one item and have that item disappear on the jotform once it is purchased? Is that possible? We are selling an hour of time to use our facility. And we need to make different time options for people to select. But the same time can't be used twice. Let me know!

  • Mike_G JotForm Support
    Replied on December 13, 2020 at 7:07 PM

    I'm afraid that our payment field does not support that feature, however, there is a workaround that you can do to meet your requirements.

    Instead of using the payment field to list your products and calculate the total amount to be paid, you will use the Ticket Purchases widget for the product list

    1607903221 5fd6a7f59032e zt201213 184529 Screenshot 10

    and the Form Calculation widget to get the total amount into your selected payment field.

    1607903298 5fd6a8420e2d5 zt201213 184716 Screenshot 21

    1607903421 5fd6a8bded56a zt201213 184942 Screenshot 32

    Reference Guides:

    How-to-Add-a-Widget-to-your-Form

    How-to-setup-a-payment-order-form-with-limited-stocks

    How-to-pass-a-calculation-to-a-payment-field

    Note: You must set the available number of items to 1 for each product you will list on the Ticket Purchases widget.

    As for making the item disappear when it has already been selected, you can inject the custom CSS codes below into the Custom CSS tab of the Ticket Purchases widget.

    label.checkbox.line-through.text-muted.checked, label.checkbox.line-through.text-muted.checked span {

      display: none !important;

    }

    1607903831 5fd6aa5703d80 zt201213 185631 Screenshot 43

    Here's a sample form I have created for you: https://form.jotform.com/203477538315055

    Here's how it looks like without the injected custom CSS codes.

    1607903940 5fd6aac471a53 zt201213 185844 Screenshot 54

    Reference Guide: How-to-Inject-CSS-Codes-to-Widgets

    Feel free to let us know if you need any further assistance.