- CarolTasseffAsked on July 15, 2016 at 09:59 AM
I'd like to show a waitlist for an item once the inventory for it is all sold out. I thought I was acheiving that by using the condition "Is Filled" but it turns out that it didn't mean "sold out." Is there a way to show a field if the inventory is sold out?
- JotForm SupportEltonCrisAnswered on July 15, 2016 at 11:01 AM
Actually with the inventory widget, if the count is already zero (nothing left), the item will be crashed out and cannot be selected.
If you want to add a "SOLD OUT" text inside it when there's none left, inject this CSS codes on your inventory widgets.
content: " SOLD OUT";
You have to paste this codes on your inventory widget settings under Custom CSS tab.
It should look like this afterwards.
If this is not what you want, kindly provide more details so we can assist you with it.
- CarolTasseffAnswered on July 15, 2016 at 11:05 AM
What I'm trying to set up is "Show Waitlist for Improptu field if Impromptu inventory Widget is sold out." So if they wanted to enter their child in Impromptu but there are no more spots left, the waiting list for impromptu will appear and they can add their child's name to it.
I only want the waitlist fields for each event to show up if the event is sold out.
Thanks for your help!
- JotForm SupportEltonCrisAnswered on July 15, 2016 at 11:26 AM
Thank you for providing more details.
Unfortunately, that's not possible with the inventory widget and with conditions. Our condition does not have an option for detecting disabled fields so there's no way to achieve the function that you want. Also, the only way to grab values from the inventory widget is when its dropdown field value changes (change event in dev terms). So with the field being disabled, it is impossible to create a condition for it.
A workaround I could think off is to add another checkbox field in your form that asks a question e.g. "Is the inventory sold out?" and when the user tick that checkbox, show the field that you want.
Hope this still helps!