# How to trigger a workflow (tooltip) only in the element you are hovering

**URL:** <https://community.weweb.io/t/how-to-trigger-a-workflow-tooltip-only-in-the-element-you-are-hovering/6120>\
**Category:** How do I?\
**Created:** [December 27, 2023, 8:35pm UTC](https://community.weweb.io/t/how-to-trigger-a-workflow-tooltip-only-in-the-element-you-are-hovering/6120 "2023-12-27T20:35:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Momuu](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/momuu/32/5001_2.png) [@Momuu](https://community.weweb.io/u/Momuu)\
**Post date:** [December 27, 2023, 8:35pm UTC](https://community.weweb.io/t/how-to-trigger-a-workflow-tooltip-only-in-the-element-you-are-hovering/6120/1 "2023-12-27T20:35:15Z")

</div>

Hi I have an icon (“ℹ”) in a page that, on hover, shows a tooltip with a workflow. Everything works well

If I duplicate that icon (ℹ) in the page, now, when hover one icon (“ℹ”) activates the tooltip also in the other duplicated (“ℹ,ℹ”) icon.

Is there a way for a workflow to be trigger only for the element you are hovering avoiding to create a new variable for each duplicate?

Many thanks for your help

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [December 27, 2023, 8:50pm UTC](https://community.weweb.io/t/how-to-trigger-a-workflow-tooltip-only-in-the-element-you-are-hovering/6120/2 "2023-12-27T20:50:18Z")

</div>

Have you tried [nocode components](https://docs.weweb.io/components/intro-to-components.html)? You can build reusable elements with internal variables and logic, and you can communicate with the parent element by triggering events (I made atutorial about this [here](https://community.weweb.io/t/trigger-component/5766/12))

---

<div class="post-metadata">

**Author:** ![Momuu](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/momuu/32/5001_2.png) [@Momuu](https://community.weweb.io/u/Momuu)\
**Post date:** [December 27, 2023, 8:53pm UTC](https://community.weweb.io/t/how-to-trigger-a-workflow-tooltip-only-in-the-element-you-are-hovering/6120/3 "2023-12-27T20:53:38Z")

</div>

Many thanks @dorilama as usual. I will give a try with components then. Thanks!

---

<div class="post-metadata">

**Author:** ![Momuu](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/momuu/32/5001_2.png) [@Momuu](https://community.weweb.io/u/Momuu)\
**Post date:** [June 20, 2024, 11:25pm UTC](https://community.weweb.io/t/how-to-trigger-a-workflow-tooltip-only-in-the-element-you-are-hovering/6120/4 "2024-06-20T23:25:18Z")

</div>

Hi @dorilama, sorry to come back to you directly but it is related to this conversation and you always have a solution. I have a collection list that filters the result of a collection.

 ![Screen Shot 2024-06-20 at 7.16.02 PM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/f/f30a55237db8705479c9883bac693321ecbd2307.png)

I’ve been trying everything for many hours but I can not achieve that when click on one of the filter buttons inside the collection list ONLY the button clicked remains in active state. I couldn’t find a solution in this case, when in other cases creating a component was helpful (as you indicated me ). Do you have any idea on how to solve this?. Many thanks again for all your help here.

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [June 21, 2024, 6:09am UTC](https://community.weweb.io/t/how-to-trigger-a-workflow-tooltip-only-in-the-element-you-are-hovering/6120/5 "2024-06-21T06:09:55Z")

</div>

you need to have unique ids in the collection, and on click set a global variable to store the id of the active button

---

<div class="post-metadata">

**Author:** ![Momuu](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/momuu/32/5001_2.png) [@Momuu](https://community.weweb.io/u/Momuu)\
**Post date:** [June 21, 2024, 1:45pm UTC](https://community.weweb.io/t/how-to-trigger-a-workflow-tooltip-only-in-the-element-you-are-hovering/6120/6 "2024-06-21T13:45:33Z")

</div>

Many thanks again for your help @dorilama
