# Use of showInviteFunction

**URL:** <https://devforum.zoom.us/t/use-of-showinvitefunction/12709>\
**Category:** Web\
**Created:** [April 11, 2020, 6:26pm UTC](https://devforum.zoom.us/t/use-of-showinvitefunction/12709 "2020-04-11T18:26:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoom11](https://avatars.discourse-cdn.com/v4/letter/z/b5e925/32.png) [@zoom11](https://devforum.zoom.us/u/zoom11)\
**Post date:** [April 11, 2020, 6:26pm UTC](https://devforum.zoom.us/t/use-of-showinvitefunction/12709/1 "2020-04-11T18:26:24Z")

</div>

Sorry I’m trying to figure out how to hide the invite button.  
I understand that it should be used:

```
ZoomMtg.showInviteFunction({
show: true
});

```

but how do you use it?

```
    ZoomMtg.showInviteFunction({
        show: false
    });

    ZoomMtg.init({
        leaveUrl: 'http://www.zoom.us',
        isSupportAV: true,
        success: function () {
            ZoomMtg.join(
                    {
                        meetingNumber: meetConfig.meetingNumber,
                        userName: meetConfig.userName,
                        signature: signature,
                        apiKey: meetConfig.apiKey,
                        userEmail: '',
                        passWord: meetConfig.passWord,
                        success: function (res) {
                            $('#nav-tool').hide();
                            console.log('join meeting success');
                        },
                        error: function (res) {
                            console.log(res);
                        }
                    }
            );
        },
        error: function (res) {
            console.log(res);
        }
    });

```

in this way the button is always present. isn’t this the way?  
thank you so much  
Giuseppe

---

<div class="post-metadata">

**Author:** ![bdeanindy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bdeanindy/32/154_2.png) [@bdeanindy](https://devforum.zoom.us/u/bdeanindy)\
**Post date:** [April 11, 2020, 8:20pm UTC](https://devforum.zoom.us/t/use-of-showinvitefunction/12709/2 "2020-04-11T20:20:48Z")

</div>

Hey @zoom11 (Giuseppe)!

If you want to **DISABLE** the Invite function, a parameter `disableInvite` is a boolean flag you can use while creating the meeting `[ZoomMtg.init](https://zoom.github.io/sample-app-web/ZoomMtg.html#init)` as documented in the [WebSDK Reference](https://marketplace.zoom.us/docs/sdk/native-sdks/web/reference)…

```auto
ZoomMtg.init({
    debug: true, //optional
    leaveUrl: 'http://www.zoom.us', //required
    showMeetingHeader: false, //option
    **disableInvite: false, //default is false (enable), parameter is optional**
    disableCallOut: false, //optional
    disableRecord: false, //optional
    disableJoinAudio: false, //optional
    audioPanelAlwaysOpen: true, //optional
    showPureSharingContent: false, //optional
    isSupportAV: true, //optional,
    isSupportChat: true, //optional,
    isSupportQA: true, //optional,
    isSupportCC: true, //optional,
    screenShare: true, //optional,
    rwcBackup: '', //optional,
    videoDrag: true, //optional,
    sharingMode: 'both', //optional,
    videoHeader: true, //optional,
    isLockBottom: true, // optional,
    isSupportNonverbal: true, // optional,
    isShowJoiningErrorDialog: true // optional
    });

```

You also referenced in your post, the `[ZoomMtg.showInviteFunction()](https://zoom.github.io/sample-app-web/ZoomMtg.html#showInviteFunction)`. This method of the WebSDK is used to toggle visibility of the Invite function, but is NOT the same as disabling the invite function as I described earlier.

If your goal is to 100% HIDE / DISABLE the Invite function:

1. When creating the meeting make sure to set `disableInvite: true` in the configuration object parameter you pass into `ZoomMtg.init()`

2. In the callback when the meeting has been created, make a call to `ZoomMtg.showInviteFunction({show: false})` to HIDE the Invite function.

The `ZoomMtg.showInviteFunction()` is used AFTER a meeting has been created, and can be triggered/called by your web app as you see fit to make available (UI, data change, special event, etc…)

Does this help answer your question?

---

<div class="post-metadata">

**Author:** ![zoom11](https://avatars.discourse-cdn.com/v4/letter/z/b5e925/32.png) [@zoom11](https://devforum.zoom.us/u/zoom11)\
**Post date:** [April 12, 2020, 11:00am UTC](https://devforum.zoom.us/t/use-of-showinvitefunction/12709/3 "2020-04-12T11:00:52Z")

</div>

of course I solved thanks to you!!!

Giuseppe

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 13, 2020, 10:51pm UTC](https://devforum.zoom.us/t/use-of-showinvitefunction/12709/4 "2020-04-13T22:51:51Z")

</div>

Thanks @bdeanindy! 🙂

-Tommy

---

<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:27pm UTC](https://devforum.zoom.us/t/use-of-showinvitefunction/12709/5 "2020-08-21T20:27:50Z")

</div>

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


