-
1STSUMMITARENAAsked 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 SupportReplied 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
and the Form Calculation widget to get the total amount into your selected payment field.
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;
}
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.
Reference Guide: How-to-Inject-CSS-Codes-to-Widgets
Feel free to let us know if you need any further assistance.