# WebSDK custom dialogs and automatic failover to zoom.us

**URL:** <https://devforum.zoom.us/t/websdk-custom-dialogs-and-automatic-failover-to-zoom-us/12940>\
**Category:** Web\
**Created:** [April 13, 2020, 3:39pm UTC](https://devforum.zoom.us/t/websdk-custom-dialogs-and-automatic-failover-to-zoom-us/12940 "2020-04-13T15:39:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anton.skvortsov](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.skvortsov/32/5370_2.png) [@anton.skvortsov](https://devforum.zoom.us/u/anton.skvortsov)\
**Post date:** [April 13, 2020, 3:39pm UTC](https://devforum.zoom.us/t/websdk-custom-dialogs-and-automatic-failover-to-zoom-us/12940/1 "2020-04-13T15:39:38Z")

</div>

Hello All,

I was wondering if it’s possible to code some form of failover for WebSDK. I’m referring to last week’s update that created quite a bit of havoc. If we take JS code for WebSDK and disable default dialogs, perhaps we could automatically forward person to [zoom.us/j/---meeting\_number---](http://zoom.us/j/---meeting_number---) in case Zoom init or join fails?

In theory if default dialogs can be turned off, then we could create custom dialogs inside error handlers with something like a multiple choice: “Failed to join online webinar: [try again] [join through [zoom.us](http://zoom.us)]”.

Has anybody got anything of sort working on their end? Or is it even possible?

```
ZoomMtg.init({
        leaveUrl: 'http://www.zoom.us',
        isSupportAV: true,
        success: function () {
            ZoomMtg.join(
                {
                    meetingNumber: meetConfig.meetingNumber,
                    userName: meetConfig.userName,
                    signature: signature,
                    apiKey: meetConfig.apiKey,
                    passWord: meetConfig.passWord,
                    success: function(res){
                        $('#nav-tool').hide();
                        console.log('join meeting success');
                    },
                    error: function(res) {
                        console.log(res);
                        /* HANDLE THAT REFERRAL TO ZOOM.US HERE */
                    }
                }
            );
        },
        error: function(res) {
            console.log(res);
           /* AND SAME HERE, REFERRAL TO ZOOM.US HERE */
        }
    });
```

---

<div class="post-metadata">

**Author:** ![anton.skvortsov](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.skvortsov/32/5370_2.png) [@anton.skvortsov](https://devforum.zoom.us/u/anton.skvortsov)\
**Post date:** [April 13, 2020, 3:44pm UTC](https://devforum.zoom.us/t/websdk-custom-dialogs-and-automatic-failover-to-zoom-us/12940/2 "2020-04-13T15:44:07Z")

</div>

Nevermind! I actually just found there is a flag on INIT that can disable default dialogs:  
[https://marketplace.zoom.us/docs/sdk/sdk-reference/web-reference](https://marketplace.zoom.us/docs/sdk/sdk-reference/web-reference)

If you pass “isShowJoiningErrorDialog: false” to the .init function then those dialogs should not show and you can show your own inside error handlers. Should work in theory!

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [April 14, 2020, 6:03am UTC](https://devforum.zoom.us/t/websdk-custom-dialogs-and-automatic-failover-to-zoom-us/12940/3 "2020-04-14T06:03:30Z")

</div>

Hi @anton.skvortsov,

We’re glad that you were able to find the dialog issue and yes you could display your own dialog using the method you proposed. Please let us know if you have any other questions.

Thanks

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 8:29pm UTC](https://devforum.zoom.us/t/websdk-custom-dialogs-and-automatic-failover-to-zoom-us/12940/4 "2020-08-21T20:29:21Z")

</div>

Closed on August 21, 2020, 8:29pm UTC


