<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic window.HubSpotConversations.widget.load({ widgetOpen: true }) doesn't work in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/window-HubSpotConversations-widget-load-widgetOpen-true-doesn-t/m-p/288938#M26769</link>
    <description>&lt;P&gt;I'd need to load and open the chat when the user press a button. Reading the docs it looked easy but for some reasons it doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I set up not to load immediately with:&lt;/P&gt;&lt;PRE&gt;window.hsConversationsSettings = {
  loadImmediately: false
};&lt;/PRE&gt;&lt;P&gt;Then, when the user press the button I fire:&lt;/P&gt;&lt;PRE&gt;window.HubSpotConversations.widget.load({ widgetOpen: true });&lt;/PRE&gt;&lt;P&gt;The chat loads, appears on screen but it is not open.&lt;/P&gt;&lt;P&gt;In other words&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;window.HubSpotConversations.widget.load({ widgetOpen: true });&lt;/PRE&gt;&lt;P&gt;and&lt;/P&gt;&lt;PRE&gt;window.HubSpotConversations.widget.load({ widgetOpen: false});&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;do the same thing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone could check this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2019 07:51:07 GMT</pubDate>
    <dc:creator>pmontemc</dc:creator>
    <dc:date>2019-08-30T07:51:07Z</dc:date>
    <item>
      <title>window.HubSpotConversations.widget.load({ widgetOpen: true }) doesn't work</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/window-HubSpotConversations-widget-load-widgetOpen-true-doesn-t/m-p/288938#M26769</link>
      <description>&lt;P&gt;I'd need to load and open the chat when the user press a button. Reading the docs it looked easy but for some reasons it doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I set up not to load immediately with:&lt;/P&gt;&lt;PRE&gt;window.hsConversationsSettings = {
  loadImmediately: false
};&lt;/PRE&gt;&lt;P&gt;Then, when the user press the button I fire:&lt;/P&gt;&lt;PRE&gt;window.HubSpotConversations.widget.load({ widgetOpen: true });&lt;/PRE&gt;&lt;P&gt;The chat loads, appears on screen but it is not open.&lt;/P&gt;&lt;P&gt;In other words&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;window.HubSpotConversations.widget.load({ widgetOpen: true });&lt;/PRE&gt;&lt;P&gt;and&lt;/P&gt;&lt;PRE&gt;window.HubSpotConversations.widget.load({ widgetOpen: false});&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;do the same thing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone could check this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 07:51:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/window-HubSpotConversations-widget-load-widgetOpen-true-doesn-t/m-p/288938#M26769</guid>
      <dc:creator>pmontemc</dc:creator>
      <dc:date>2019-08-30T07:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: window.HubSpotConversations.widget.load({ widgetOpen: true }) doesn't work</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/window-HubSpotConversations-widget-load-widgetOpen-true-doesn-t/m-p/289076#M26788</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/85315"&gt;@pmontemc&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you happen to have an example page I can look at? I did some testing with a test website I have (where the widget is set to not load immediately), and it looks like the following works when I run it in the console:&lt;/P&gt;
&lt;PRE&gt;window.HubSpotConversations.widget.load({ widgetOpen: true });&lt;/PRE&gt;
&lt;P&gt;If you wanted to test it yourself, you can navigate to my (very old and ugly) testing site: &lt;A href="https://www.over-understanding.info" target="_self"&gt;https://www.over-understanding.info&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 19:17:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/window-HubSpotConversations-widget-load-widgetOpen-true-doesn-t/m-p/289076#M26788</guid>
      <dc:creator>Derek_Gervais</dc:creator>
      <dc:date>2019-08-30T19:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: window.HubSpotConversations.widget.load({ widgetOpen: true }) doesn't work</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/window-HubSpotConversations-widget-load-widgetOpen-true-doesn-t/m-p/435330#M43136</link>
      <description>&lt;P&gt;I am having the same problem right now.&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 14:05:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/window-HubSpotConversations-widget-load-widgetOpen-true-doesn-t/m-p/435330#M43136</guid>
      <dc:creator>spathe</dc:creator>
      <dc:date>2021-05-07T14:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: window.HubSpotConversations.widget.load({ widgetOpen: true }) doesn't work</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/window-HubSpotConversations-widget-load-widgetOpen-true-doesn-t/m-p/840821#M66861</link>
      <description>&lt;P&gt;I can confirm that this does not work.&amp;nbsp; Even on this "over-understanding" site, when running this command in the console, it does not work.&amp;nbsp; Furthermore, I can see in the code for the conversations that the "load" method does not take in any arguments, as it states in the documentation.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt; widget: {
        load: () =&amp;gt; {
          const widgetShell = createWidgetShell({
            eventEmitter,
            logError
          });
          widgetShell.loadWidget();
        },
        remove: widgetNotYetLoadedWarning,
        open: widgetNotYetLoadedWarning,
        close: widgetNotYetLoadedWarning,
        refresh: widgetNotYetLoadedWarning,
        status: () =&amp;gt; ({
          loaded: false
        })
      }&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Aug 2023 15:30:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/window-HubSpotConversations-widget-load-widgetOpen-true-doesn-t/m-p/840821#M66861</guid>
      <dc:creator>TonyHolt</dc:creator>
      <dc:date>2023-08-27T15:30:25Z</dc:date>
    </item>
  </channel>
</rss>

