Forum Discussion
CarlFink1
1 month agoCommunity Member
Trigger can't change state of a Group
I have a Group on one slide that is just a tiny graphic and a text box, grouped. I want to hide it using a Trigger.
I can't. Groups don't appear in the "Set state" trigger target menu.
Weirdly (t...
Nedim
1 month agoCommunity Member
Currently, you can hide Groups using JavaScript only by targeting the “select group” by its data-model-id and assigning the hidden class. Example below:
const group = document.querySelector('[data-model-id="6Sxwfs3MmIr"]');
group.classList.add('hidden');
To unhide the group, remove the hidden class:
const group = document.querySelector('[data-model-id="6Sxwfs3MmIr"]');
group.classList.remove('hidden');
This can be done with the Execute JavaScript trigger at any available event.
CarlFink1
1 month agoCommunity Member
Thanks, but because the next person to work on the module I'm creating could be anyone, including someone not comfortable with JavaScript, I am avoiding it. I'll just use multiple triggers. Annoying, but it does work.
Related Content
- 3 months ago
- 1 year ago
- 10 years ago