# window.HubSpotConversations.widget.load({ widgetOpen: true }) doesn't work

**URL:** <https://community.hubspot.com/t/window-hubspotconversations-widget-load-widgetopen-true-doesnt-work/16022>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [August 30, 2019, 7:51am UTC](https://community.hubspot.com/t/window-hubspotconversations-widget-load-widgetopen-true-doesnt-work/16022 "2019-08-30T07:51:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmontemc](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pmontemc/32/77060_2.png) [@pmontemc](https://community.hubspot.com/u/pmontemc)\
**Post date:** [August 30, 2019, 7:51am UTC](https://community.hubspot.com/t/window-hubspotconversations-widget-load-widgetopen-true-doesnt-work/16022/1 "2019-08-30T07:51:07Z")

</div>

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.

First I set up not to load immediately with:

```auto
window.hsConversationsSettings = {
 loadImmediately: false
};

```

Then, when the user press the button I fire:

`window.HubSpotConversations.widget.load({ widgetOpen: true });`

The chat loads, appears on screen but it is not open.

In other words

`window.HubSpotConversations.widget.load({ widgetOpen: true });`

and

`window.HubSpotConversations.widget.load({ widgetOpen: false});`

do the same thing.

Anyone could check this?

Thanks

---

<div class="post-metadata">

**Author:** ![Derek\_Gervais](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/derek_gervais/32/17429_2.png) [@Derek\_Gervais](https://community.hubspot.com/u/Derek_Gervais)\
**Post date:** [August 30, 2019, 7:16pm UTC](https://community.hubspot.com/t/window-hubspotconversations-widget-load-widgetopen-true-doesnt-work/16022/2 "2019-08-30T19:16:26Z")

</div>

Hey @pmontemc ,

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:

`window.HubSpotConversations.widget.load({ widgetOpen: true });`

If you wanted to test it yourself, you can navigate to my (very old and ugly) testing site: [https://www.over-understanding.info](https://www.over-understanding.info)

---

<div class="post-metadata">

**Author:** ![TonyHolt](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@TonyHolt](https://community.hubspot.com/u/TonyHolt)\
**Post date:** [August 27, 2023, 3:30pm UTC](https://community.hubspot.com/t/window-hubspotconversations-widget-load-widgetopen-true-doesnt-work/16022/3 "2023-08-27T15:30:25Z")

</div>

I can confirm that this does not work. Even on this “over-understanding” site, when running this command in the console, it does not work. 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.

```auto
 widget: {
 load: () => {
 const widgetShell = createWidgetShell({
 eventEmitter,
 logError
 });
 widgetShell.loadWidget();
 },
 remove: widgetNotYetLoadedWarning,
 open: widgetNotYetLoadedWarning,
 close: widgetNotYetLoadedWarning,
 refresh: widgetNotYetLoadedWarning,
 status: () => ({
 loaded: false
 })
 }

```

---

<div class="post-metadata">

**Author:** ![spathe](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/spathe/32/29572_2.png) [@spathe](https://community.hubspot.com/u/spathe)\
**Post date:** [May 7, 2021, 2:05pm UTC](https://community.hubspot.com/t/window-hubspotconversations-widget-load-widgetopen-true-doesnt-work/16022/4 "2021-05-07T14:05:18Z")

</div>

I am having the same problem right now.
