# Feature request: Success / error message when closing an iFrame

**URL:** <https://community.hubspot.com/t/feature-request-success-error-message-when-closing-an-iframe/20724>\
**Category:** APIs & Integrations\
**Created:** [May 9, 2020, 3:00pm UTC](https://community.hubspot.com/t/feature-request-success-error-message-when-closing-an-iframe/20724 "2020-05-09T15:00:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adelivet](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/adelivet/32/78471_2.png) [@adelivet](https://community.hubspot.com/u/adelivet)\
**Post date:** [May 9, 2020, 3:00pm UTC](https://community.hubspot.com/t/feature-request-success-error-message-when-closing-an-iframe/20724/1 "2020-05-09T15:00:00Z")

</div>

Hello,  
I’m using the card extension and I have actions in iFrames.

It would be great to be able to push a message when we close the iFrame.

ex:

`window.parent.postMessage(JSON.stringify({"action": "DONE","message": "Congrats"}), "*");`

It would be even better if we could choose between success message and error.

Thanks for your help.

Alex

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [May 11, 2020, 8:27pm UTC](https://community.hubspot.com/t/feature-request-success-error-message-when-closing-an-iframe/20724/2 "2020-05-11T20:27:15Z")

</div>

Thanks for sharing, @adelivet.

Could you actually post this on the [Ideas Forum](https://community.hubspot.com/t5/custom/page/page-id/ideaslandingpage)?

We ask that all feature requests be shared there so that othe users can upvote them and add their use cases. Feel free to share the link below so that others can navigate to the idea from here.

We appreciate the feedback!

---

<div class="post-metadata">

**Author:** ![adelivet](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/adelivet/32/78471_2.png) [@adelivet](https://community.hubspot.com/u/adelivet)\
**Post date:** [May 12, 2020, 8:44am UTC](https://community.hubspot.com/t/feature-request-success-error-message-when-closing-an-iframe/20724/3 "2020-05-12T08:44:25Z")

</div>

I’ve just posted it in ideas.  
 → [https://community.hubspot.com/t5/HubSpot-Ideas/Success-or-error-message-when-we-close-an-iframe-CRM-cards/idi-p/338275#M56792](https://community.hubspot.com/t5/HubSpot-Ideas/Success-or-error-message-when-we-close-an-iframe-CRM-cards/idi-p/338275#M56792)

Upvote it if you find it useful.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [May 12, 2020, 11:25am UTC](https://community.hubspot.com/t/feature-request-success-error-message-when-closing-an-iframe/20724/4 "2020-05-12T11:25:14Z")

</div>

Thanks for posting, @adelivet.

I do think that feature would be useful and have upvoted your post!
