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

  • Profile Image
    1STSUMMITARENA
    Asked on December 13, 2020 at 03: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!

  • Profile Image
    Mike_G
    Answered on December 13, 2020 at 07: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

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

    1607903298_5fd6a8420e2d5_zt201213_184716

    1607903421_5fd6a8bded56a_zt201213_184942

    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

    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

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

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