Hi Everyone,
I have a gallery with a template that is being used to input records ( kind of a parent-child approach ).
In this template I have a dropdown box to select a product... I want to avoid that the product selected is one of the previous ones selected.
To achieve this I tried to play around with the onChange, Items and Default property of the dropdown where my logic was:
- OnChange ( update the "selectedproducts" collection with item selected )
- Items ( Repopulate Dropdown with all products except the ones in the "selectedproducts" collection )
- Default ( get product based on item selected since this will need to play around with another gallery - the parent )
This seems to work fine sometimes and another times it does not work correctly. It appears to me that it has to do with the time that the onchange takes to update the collection and the default action trigger still catching the previous value)
How would you guys tackle this?
Thank you