Making an item in a drop down list...
Is there a way to make an item in a drop down list inactive?
For instance I'm trying to sell tickets to three different events with each event being a different item in a drop down list. When one event sells out, I'd like to append the words "Sold Out" to the event's title and then "grey out" the title in the drop down list so that the user can still see it but not be able to actually select it. Is something like this possible?
Thanks
For instance I'm trying to sell tickets to three different events with each event being a different item in a drop down list. When one event sells out, I'd like to append the words "Sold Out" to the event's title and then "grey out" the title in the drop down list so that the user can still see it but not be able to actually select it. Is something like this possible?
Thanks
Here is what I would do after I exported my menu.
I would add this to my stylesheet:
Then add the class to the link i want disabled:
I would add this to my stylesheet:
a.disabled {
pointer-events: none;
cursor: default;
}
pointer-events: none;
cursor: default;
}
Then add the class to the link i want disabled:
<a href="link.html" class="disabled">Link</a>
Taking over the world one website at a time!
Steve Kolish
www.misterwebguy.com
YouTube Channel:
https://www.youtube.com/channel/UCL8qVv … ttneYaMSJA
Steve Kolish
www.misterwebguy.com
YouTube Channel:
https://www.youtube.com/channel/UCL8qVv … ttneYaMSJA
Donald, How are you determining if an item is sold out? Are you using mysql?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Donald Sanders wrote:
Is there a way to make an item in a drop down list inactive? For instance I'm trying to sell tickets to three different events with each event being a different item in a drop down list. When one event sells out, I'd like to append the words "Sold Out" to the event's title and then "grey out" the title in the drop down list so that the user can still see it but not be able to actually select it. Is something like this possible?
Is there a way to make an item in a drop down list inactive? For instance I'm trying to sell tickets to three different events with each event being a different item in a drop down list. When one event sells out, I'd like to append the words "Sold Out" to the event's title and then "grey out" the title in the drop down list so that the user can still see it but not be able to actually select it. Is something like this possible?
You have to have some method of tracking inventory first, and then, each time a purchase is made it has to subtract the item from inventory. So before you start thinking about marking items as sold out, the inventory tracking needs to be in place. How are you tracking your inventory?
ASK ME ANYTHING
I provide personalized help for Coffeecup Users including personal or group training for Site Designer, Web Form Builder and more via Zoom.
Email me at support@uscni.org or call 865-687-7698.
Did you know that Web Form Builder can be used for both simple and complicated forms and that it's not limited to the default fonts and buttons? Take a look at a form we developed for WindowTinting.com.
https://forms.windowtinting.com/forms/w … ppingcart/
I provide personalized help for Coffeecup Users including personal or group training for Site Designer, Web Form Builder and more via Zoom.
Email me at support@uscni.org or call 865-687-7698.
Did you know that Web Form Builder can be used for both simple and complicated forms and that it's not limited to the default fonts and buttons? Take a look at a form we developed for WindowTinting.com.
https://forms.windowtinting.com/forms/w … ppingcart/
Here's one method.
http://ericrohloff.com/coffeecup/ccforu … e_options/

http://ericrohloff.com/coffeecup/ccforu … e_options/
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Thanks for all of the input. I was just looking for something quick and easy that didn't require a lot of extra messing around with the exported code. I'm not using sql or officially tracking inventory - its just a quick and dirty form.
I would use my method then and you can add that to your form after export if you want. You can also tweak the code after export, no need to reexport your form for that type of change.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Why not keep it simple and just remove that option from the drop down when it's no longer available and just update the page the form is on and say it's sold out for that particular choice. Since you have to reupload to make any changes anyways this would be the cleanest and easiest way to do it.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.