When you say stock, are talking about inventory? So if you have 20 widgets you want the dropdown to display a quantity of 1 to 20?
Correct. I’m trying to figure out the best way to create and manage the inventory backend and frontend.
Users define a stock. That needs to be handled on the frontend and updated on the backend, saved to DB decrementally approaching 0 as customers buy items.
I’m thinking dropdown with stock displayed as you suggest.
I guess you could also go with +/- fields with values matched against the actual stock value, but that would need to have a <0 breaker to avoid negative values. Or input field with the same need for negative value prevention.
I think the dynamic dropdown values are pulled from lists of things, so you’d have to set up a list with 1, 2, 3, etc. up to the total and set that as the data source for your dropdown.
Right. How do you see this working when using a dropdown with dynamic data and that list needs to change for every product? E.g. product 1, stock = 9, product 2, stock = 7 etc. > product 1 list 1-9, product 2 list 1-7