# Closing UI Extension IFrames

**URL:** <https://community.hubspot.com/t/closing-ui-extension-iframes/136085>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [July 11, 2025, 3:34pm UTC](https://community.hubspot.com/t/closing-ui-extension-iframes/136085 "2025-07-11T15:34:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AHammouda](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@AHammouda](https://community.hubspot.com/u/AHammouda)\
**Post date:** [July 11, 2025, 3:34pm UTC](https://community.hubspot.com/t/closing-ui-extension-iframes/136085/1 "2025-07-11T15:34:58Z")

</div>

Currently UI Extensions beta allows opening an iframe modal: [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/guides/crm/ui-extensions/sdk#open-an-iframe-in-a-modal)

However, it doesn’t allow for programmatically closing an iFrame. This means that if you expose a workflow through your own website, the user can’t click a button that has side effects AND on success closes the parent iframe. This is a giant usability issue for me.  
Can the iframe implementation specify a listener, or some property so that the enclosing code can programmatically close the window without requiring the user to manually click “X”?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [July 12, 2025, 12:02am UTC](https://community.hubspot.com/t/closing-ui-extension-iframes/136085/2 "2025-07-12T00:02:51Z")

</div>

Hey, @AHammouda 👋 You are correct that the documentation doesn’t prove a mechanism to do what you are requesting. If you have a moment, submitting your feedback to the [Developer Feedback](https://developers.hubspot.com/feedback) form is always appreciated. It is not a support for and does not issue direct responses, but it is seen by the product teams, especially for ongoing betas for developer tools.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![AHammouda](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@AHammouda](https://community.hubspot.com/u/AHammouda)\
**Post date:** [July 14, 2025, 1:19pm UTC](https://community.hubspot.com/t/closing-ui-extension-iframes/136085/3 "2025-07-14T13:19:19Z")

</div>

Hey [@Jaycee\_Lewis](https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074) - thanks. I also cross posted as an idea that may not be accepted yet. I’ll submit as feedback as well: [https://community.hubspot.com/t5/HubSpot-Ideas/Improve-UI-Extension-open-IFrame-Modal-action/idi-p/1175599](https://community.hubspot.com/t5/HubSpot-Ideas/Improve-UI-Extension-open-IFrame-Modal-action/idi-p/1175599)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [July 14, 2025, 10:47pm UTC](https://community.hubspot.com/t/closing-ui-extension-iframes/136085/4 "2025-07-14T22:47:27Z")

</div>

Looks like it’s live. I gave it an upvote ✅ - Jaycee
