Selection Tag on click function

Little late on this, but thought I’d post for anyone having the same issue.

You would need to use onChange to access the selected tag.

Example code…

$w('#selectionTags').onChange((event) => {
                    const selectedTags = event.target.value;
                });

Please note: If you have more than 1 selection tag, the value will show as an array for all of the tags that are selected. You can work around this by setting all the tags to deselected after your desired code has run.

Hope this helps.

1 Like