Here is what I have.
- Combobox with list of products including a single item called "Add Product"
- A text box and button that appears if you select " Add Product"
- When you add a new product to the text box and click the button the entered value is added to the combobox, via a patch to the datasource, and the combobox is refreshed.
Here is what I want:
- When the button is clicked and the new value added to the datasource(combobox) I would like that new value to be selected when the combobox is refreshed.
Can this be done? I imagine it can. As an added bonus I'd probably want to hide the textbox and button when the button is clicked but I think that might be trivial assuming that the submission always works.