How to expose "currentSelection" from a Multiselect control within a custom component

  1. I have a custom component, that wraps the Multiselect control.

  2. I want to be able to get the currently selected items in the Multiselect control - with other words the “currentSelection”.

How do I come about exposing that from the custom component?

Thx./Henrik

Hi, I think you can achieve that through component workflow. So you change global variable value with a workflow inside component every time multiselect control changes.

Right here @Broberto suggested this solution.

1 Like

Hi, I think you should trigger an update of a variable inside of the component. When you mark that variable as “Expose to outside”, it should appear on your page.