Hi,
I wanted to know if there is any way when I press button 1 a specific TagSelection button is activated (Example Green).Can you help me?
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
Francisco, you can set it either by the selectedIndices property which accepts an array of numbers that specifies the index of the item(s) to be selected, or the value property, which takes a string array of values. An example of how to apply the selectedIndices to your example:
$w("#TagSelection").selectedIndices = [1];
It's 0-based, so to select the red tag would be [0] and blue would [2]. To select all of them would go like this:
$w("#TagSelection").selectedIndices = [0,1,2];
Perfect!Thank you very much.
To deselect all tags, assign an empty array.
$w("#TagSelection").selectedIndices = [];
How do I get back from deselecting the item (green) when I press button 1?