# CMS Nest...Clicking On A Nested Item And Opening A Popup

**URL:** <https://forum.finsweet.com/t/cms-nest-clicking-on-a-nested-item-and-opening-a-popup/2533>\
**Category:** Attributes\
**Created:** [February 20, 2024, 5:59pm UTC](https://forum.finsweet.com/t/cms-nest-clicking-on-a-nested-item-and-opening-a-popup/2533 "2024-02-20T17:59:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lovebrian649](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/lovebrian649/32/112_2.png) [@lovebrian649](https://forum.finsweet.com/u/lovebrian649)\
**Post date:** [February 20, 2024, 5:59pm UTC](https://forum.finsweet.com/t/cms-nest-clicking-on-a-nested-item-and-opening-a-popup/2533/1 "2024-02-20T17:59:24Z")

</div>

Hey there

I have a situation where I’m using CMS Nest to Nest more than 5 CMS items. The tricky thing is these nested items are events in a calendar list type component. As such, I am trying to create an interaction where when someone clicks on one of the nested items, a popup modal appears where they can sign up for that specific event.

I’ve tried using both native Webflow and javascript and in both situations, the popup modal doesn’t appear. Any ideas on how I can make this functionality work?

Sorry don’t have a share-link

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [February 20, 2024, 6:10pm UTC](https://forum.finsweet.com/t/cms-nest-clicking-on-a-nested-item-and-opening-a-popup/2533/2 "2024-02-20T18:10:26Z")

</div>

Hey @lovebrian649! If the elements are not nested, can you trigger the modal?

Webflow’s interaction engine might need a reset after the items are nested which can be done like this.

```js
<script>
  window.fsAttributes = window.fsAttributes || [];
  window.fsAttributes.push([
    'cmsnest',
    (listInstances) => {
      console.log('cmsnest Successfully loaded!');
      window.Webflow && window.Webflow.destroy();
      window.Webflow && window.Webflow.ready();
      window.Webflow && window.Webflow.require('ix2').init();
      document.dispatchEvent(new Event('readystatechange'));
    },
  ]);
</script>

```

---

<div class="post-metadata">

**Author:** ![lovebrian649](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/lovebrian649/32/112_2.png) [@lovebrian649](https://forum.finsweet.com/u/lovebrian649)\
**Post date:** [February 20, 2024, 6:19pm UTC](https://forum.finsweet.com/t/cms-nest-clicking-on-a-nested-item-and-opening-a-popup/2533/3 "2024-02-20T18:19:08Z")

</div>

Thanks so much for the quick reply @Support-Luis 🙏

Going to go give this a try

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [February 20, 2024, 8:37pm UTC](https://forum.finsweet.com/t/cms-nest-clicking-on-a-nested-item-and-opening-a-popup/2533/4 "2024-02-20T20:37:26Z")

</div>

Let me know if this fixes the issue!

---

<div class="post-metadata">

**Author:** ![lovebrian649](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/lovebrian649/32/112_2.png) [@lovebrian649](https://forum.finsweet.com/u/lovebrian649)\
**Post date:** [February 21, 2024, 8:19am UTC](https://forum.finsweet.com/t/cms-nest-clicking-on-a-nested-item-and-opening-a-popup/2533/5 "2024-02-21T08:19:25Z")

</div>

Worked like a charm…You are a lifesaver

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [February 21, 2024, 8:30am UTC](https://forum.finsweet.com/t/cms-nest-clicking-on-a-nested-item-and-opening-a-popup/2533/6 "2024-02-21T08:30:20Z")

</div>

Glad to hear! 💪
