# 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:** 1\
**Showing post:** 2

<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?

---

_[View the full topic](https://devforum.zoom.us/t/use-of-showinvitefunction/12709)._
