# How to hide invite button and close invite?

**URL:** <https://devforum.zoom.us/t/how-to-hide-invite-button-and-close-invite/4032>\
**Category:** Electron\
**Created:** [April 24, 2019, 10:48am UTC](https://devforum.zoom.us/t/how-to-hide-invite-button-and-close-invite/4032 "2019-04-24T10:48:51Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![700985](https://avatars.discourse-cdn.com/v4/letter/7/a4c791/32.png) [@700985](https://devforum.zoom.us/u/700985)\
**Post date:** [April 24, 2019, 10:48am UTC](https://devforum.zoom.us/t/how-to-hide-invite-button-and-close-invite/4032/1 "2019-04-24T10:48:51Z")

</div>

**Description**  
when I use zoomsdk program my app in windows and osx . I don’t want invite other guys. its a private a meeting, so I want to hide this button and close invite, but I had no idea.

 ![WechatIMG18](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/0454878c7e3c73a631ddd7f01c715bb52fff071e.png)

how to fix it?

I had use electron-macsdk-zoom and electron-windows-zomm.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [April 25, 2019, 3:08am UTC](https://devforum.zoom.us/t/how-to-hide-invite-button-and-close-invite/4032/2 "2019-04-25T03:08:48Z")

</div>

Hi 700985,  
Thanks for using Zoom SDK. We have an interface in our Electron addon:

```auto
MeetingConfig_EnableInviteButtonOnMeetingUI

```

You can refer to the method `MeetingConfig_EnableInviteButtonOnMeetingUI: function (opts)` in the `zoom_meeting_configuration.js` file to hide/show this invite button.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![daimoon.hunter](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@daimoon.hunter](https://devforum.zoom.us/u/daimoon.hunter)\
**Post date:** [April 25, 2019, 10:08am UTC](https://devforum.zoom.us/t/how-to-hide-invite-button-and-close-invite/4032/4 "2019-04-25T10:08:35Z")

</div>

Try to call “MeetingConfig\_EnableInviteButtonOnMeetingUI”

 ![WechatIMG475](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/369c047920d0aaeea2164a6438b8302c50f26eec.png)

Got an exception.

 ![1556186542226](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/b58de9599bf051733938b250473ec98687e01d01.jpeg)

But the method “MeetingConfig\_SetBottomFloatToolbarWndVisibility” is successful

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [April 26, 2019, 2:28am UTC](https://devforum.zoom.us/t/how-to-hide-invite-button-and-close-invite/4032/5 "2019-04-26T02:28:36Z")

</div>

Hi daimoon,  
Thanks for the detail. There are 2 issues here:

1. Regarding the parameter shown in the red rectangle, the `{show:'not'}` should be `{show:false}`.
2. Please change the position where you call this method, do not call this method right after the authentication. The best practice is to call this method in the meetingstatus\_callback, when the meeting status is MEETING\_STATUS\_INMEETING, call this method.

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![renming](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@renming](https://devforum.zoom.us/u/renming)\
**Post date:** [April 26, 2019, 8:35am UTC](https://devforum.zoom.us/t/how-to-hide-invite-button-and-close-invite/4032/6 "2019-04-26T08:35:39Z")

</div>

I try move to meetingstatuscb call this function. still same error!

 ![WX20190426-151300%402x](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/572480db3469a77045eb7cae0c68762e36ffbd77.png)  
I had use ‘console.log’ print it In the MeetingConfig\_EnableInviteButtonOnMeetingUI then ’\_addon.MeetingConfig\_EnableInviteButtonOnMeetingUI’ echo like this

```
console.log(_addon);
console.log(_addon.MeetingConfig_EnableInviteButtonOnMeetingUI); 

{ SetMeetingConfigService: [Function: SetMeetingConfigService],
  MeetingConfig_SetBottomFloatToolbarWndVisibility: [Function: MeetingConfig_SetBottomFloatToolbarWndVisibility],
  MeetingConfig_DisableFreeUserOriginAction: [Function: MeetingConfig_DisableFreeUserOriginAction] }

undefined
```

---

<div class="post-metadata">

**Author:** ![Derain\_Yuan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/derain_yuan/32/558_2.png) [@Derain\_Yuan](https://devforum.zoom.us/u/Derain_Yuan)\
**Post date:** [April 28, 2019, 2:05am UTC](https://devforum.zoom.us/t/how-to-hide-invite-button-and-close-invite/4032/7 "2019-04-28T02:05:55Z")

</div>

For mac electron sdk, ‘MeetingConfig\_EnableInviteButtonOnMeetingUI’ function havn’t been implement, we have implement this function in objective-c .  
You can set ‘disableToolbarInviteButtonClickOriginAction’ property to ‘true’ in ZoomSDKMeetingConfiguration.h to disable the action of invite button, and call ‘- (ZoomSDKError)hideSDKButtons:(BOOL)hide ButtonType:(SDKButton)button’ with param ‘button’ with ‘ToolBarInviteButton’ to hide the invite button. Please wrapper the code to js by yourself.

---

<div class="post-metadata">

**Author:** ![renming](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@renming](https://devforum.zoom.us/u/renming)\
**Post date:** [April 29, 2019, 3:16am UTC](https://devforum.zoom.us/t/how-to-hide-invite-button-and-close-invite/4032/8 "2019-04-29T03:16:56Z")

</div>

[quote=“Derain\_Yuan, post:7, topic:4032”]  
action  
[/quote]

 ![WX20190429-110006%402x](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/a5d6fff344be3a83fbaefee8a10f3f9ba42be669.png)

Thanks, but I am’t IOS developer. I try to do , it not work.  
I ask IOS developer ,He said .h files can’t change property.  
How to change ‘property’ in .h file?  
Cloud you share ‘ZoomSDK.framework’ to me?

---

<div class="post-metadata">

**Author:** ![Derain\_Yuan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/derain_yuan/32/558_2.png) [@Derain\_Yuan](https://devforum.zoom.us/u/Derain_Yuan)\
**Post date:** [April 30, 2019, 2:51am UTC](https://devforum.zoom.us/t/how-to-hide-invite-button-and-close-invite/4032/9 "2019-04-30T02:51:02Z")

</div>

You need refer to our demo code, write the wrapper code, but not directly change the .h file.

---

<div class="post-metadata">

**Author:** ![renming](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@renming](https://devforum.zoom.us/u/renming)\
**Post date:** [April 30, 2019, 7:07am UTC](https://devforum.zoom.us/t/how-to-hide-invite-button-and-close-invite/4032/10 "2019-04-30T07:07:52Z")

</div>

Thanks, Derain\_Yuan.  
meetingConfigObj(‘setDisableToolbarInviteButtonClickOriginAction’, true);  
this func is work for me! but ‘hideSDKButtons’ is wrong! I dont know , how to change this.  
meetingConfigObj(“hideSDKButtons”,true,‘ToolBarInviteButton’);

 ![WX20190430-150449%402x](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/b901e90d1bd491f02624cdff112b10f87c0b0873.png)

---

<div class="post-metadata">

**Author:** ![Derain\_Yuan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/derain_yuan/32/558_2.png) [@Derain\_Yuan](https://devforum.zoom.us/u/Derain_Yuan)\
**Post date:** [April 30, 2019, 9:04am UTC](https://devforum.zoom.us/t/how-to-hide-invite-button-and-close-invite/4032/11 "2019-04-30T09:04:50Z")

</div>

> [@renming](#):
>
> meetingConfigObj(“hideSDKButtons”,true,‘ToolBarInviteButton’);

meetingConfigObj(“hideSDKButtons”, true, ‘ButtonType’, 0);  
Please go to learn the nodobjc.

---

<div class="post-metadata">

**Author:** ![renming](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@renming](https://devforum.zoom.us/u/renming)\
**Post date:** [May 2, 2019, 5:14am UTC](https://devforum.zoom.us/t/how-to-hide-invite-button-and-close-invite/4032/12 "2019-05-02T05:14:46Z")

</div>

> [@Derain\_Yuan](#):
>
> meetingConfigObj(“hideSDKButtons”, true, ‘ButtonType’, 0);

LOL, It work.Thanks you ,dude ！

---

<div class="post-metadata">

**Author:** ![poonam.patil](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/poonam.patil/32/4121_2.png) [@poonam.patil](https://devforum.zoom.us/u/poonam.patil)\
**Post date:** [March 30, 2020, 6:01am UTC](https://devforum.zoom.us/t/how-to-hide-invite-button-and-close-invite/4032/13 "2020-03-30T06:01:14Z")

</div>

Hello,

I am using createMeeting API to create meeting and I want to disable invite button for participants. What should I do for that?

Thanks,  
Poonam

---

<div class="post-metadata">

**Author:** ![bella.tu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bella.tu/32/1227_2.png) [@bella.tu](https://devforum.zoom.us/u/bella.tu)\
**Post date:** [March 31, 2020, 3:17am UTC](https://devforum.zoom.us/t/how-to-hide-invite-button-and-close-invite/4032/14 "2020-03-31T03:17:52Z")

</div>

![屏幕快照 2020-03-31 上午11.13.57](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/6/6ce7e0e4ef8c5422c98b0d1011b4c395dc8bf314.png)

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [March 31, 2020, 3:36am UTC](https://devforum.zoom.us/t/how-to-hide-invite-button-and-close-invite/4032/15 "2020-03-31T03:36:52Z")

</div>

Hi [poonam.patil](https://devforum.zoom.us/u/poonam.patil),

Thanks for the reply. What is the SDK version you are using? If you are using the Electron SDK:[https://github.com/zoom/zoom-sdk-electron](https://github.com/zoom/zoom-sdk-electron) and like to hide the invite button, you could use the interface `MeetingConfig_EnableInviteButtonOnMeetingUI` as Bella mentioned above.

Hope this helps. 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, 7:24pm UTC](https://devforum.zoom.us/t/how-to-hide-invite-button-and-close-invite/4032/16 "2020-08-21T19:24:07Z")

</div>

Closed on August 21, 2020, 7:24pm UTC


