CRM Development Tools Beta

PAtlan
Contributor

Weird title for iFrame modals

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: 

– [missing {{ action }} value]

Here's a screenshot:

CleanShot Google Chrome-Sandro Colletti2022-11-02 at 09.09.39@2x.png

and here's the corresponding console output in Chrome:

CleanShot Google Chrome-Sandro Colletti2022-11-02 at 09.09.13@2x.png

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!

3 Replies 3
CDow
Participant | Elite Partner
Participant | Elite Partner

Weird title for iFrame modals

+2 for this bug. I also see the same text pictured above when using an iFrame in the sidebar panel.

PAtlan
Contributor

Weird title for iFrame modals

Hi Sejal, 

glad it's not just me :-D. Thanks for taking the time to check.

P.

0 Upvotes
sejal_parikh
HubSpot Product Team
HubSpot Product Team

Weird title for iFrame modals

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. 

0 Upvotes