We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Nov 2, 2022 4:16 AM
Hi,
On my sandbox, when I run the out-of-the-box iFrame example (https://github.com/HubSpot/ui-extensions-examples/tree/main/display-iframe) of the CRM Development tools, the modal window is displayed with the following title:
Here's a screenshot:
and here's the corresponding console output in Chrome:
The code itself is exactly the one on github. Here's the crm-card.js file:
exports.main = async (context, sendResponse) => {
sendResponse({
sections: [
{
type: 'text',
text: 'Clicking the button will open a modal dialog with an iframe that displays the content at the provided URL.',
},
{
type: 'button',
text: 'Open iframe',
onClick: {
type: 'IFRAME',
// Width and height of the iframe (in pixels)
width: 1000,
height: 800,
uri: 'https://product.hubspot.com/blog',
},
},
],
});
};
I have the same issue happen when I add an iFrame button to my own project. Would anybody have any pointers? Thanks!
Nov 2, 2022 12:31 PM - edited Nov 2, 2022 12:31 PM
+2 for this bug. I also see the same text pictured above when using an iFrame in the sidebar panel.
Nov 2, 2022 8:39 AM
Hi Sejal,
glad it's not just me :-D. Thanks for taking the time to check.
P.
Nov 2, 2022 8:29 AM
Hi Paul, I tried this on the middle tab, and it worked fine for me; however, when I try on the sidebar, I see this. So thanks for reporting this.