# How to hide leave button on meeting just for host

**URL:** <https://devforum.zoom.us/t/how-to-hide-leave-button-on-meeting-just-for-host/53477>\
**Category:** Web\
**Created:** [July 2, 2021, 3:47am UTC](https://devforum.zoom.us/t/how-to-hide-leave-button-on-meeting-just-for-host/53477 "2021-07-02T03:47:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![agus.wiranata](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@agus.wiranata](https://devforum.zoom.us/u/agus.wiranata)\
**Post date:** [July 2, 2021, 3:47am UTC](https://devforum.zoom.us/t/how-to-hide-leave-button-on-meeting-just-for-host/53477/1 "2021-07-02T03:47:39Z")

</div>

**Description**  
Hello, I want to ask how to implement this function  
EnableLeaveMeetingOptionForHost()  
which I found at : [ZOOM Windows SDK: IMeetingUIElemConfiguration Class Reference](https://zoom.github.io/zoom-sdk-windows/class_i_meeting_u_i_elem_configuration.html#af58d38c519d3168d4923b5e4525c0649)

my case is I want to remove the leave button on the meeting page only for the host role. so when a user joins as a host there will only be an end meeting for all, but when a user joins as an attendee, the leave button is not lost.

I’m confused where to put the EnableLeaveMeetingOptionForHost() function in which file.

i am using zoom web sdk version 1.9.6  
what i want to ask is, is there a similar function in zoom web sdk?

**Screenshots**  
 ![leave](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/0/1062547028496badcf49e2bacacef4095f528807.jpeg)

Terima kasih

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [July 2, 2021, 6:53pm UTC](https://devforum.zoom.us/t/how-to-hide-leave-button-on-meeting-just-for-host/53477/2 "2021-07-02T18:53:16Z")

</div>

Hi @agus.wiranata ,

Thank you for your inquiry. Please reference this forum post for the solution: [I don't want to use leaveurl on meeting end (Meeting End without refreshing page due to data loss) - #2 by tommy](https://devforum.zoom.us/t/i-dont-want-to-use-leaveurl-on-meeting-end-meeting-end-without-refreshing-page-due-to-data-loss/8461/2)

Additionally, here are the Web SDK function docs: [ZoomMtg - Documentation](https://zoom.github.io/sample-app-web/ZoomMtg.html#leaveMeeting)

Let me know how this works out!

Gianni

---

<div class="post-metadata">

**Author:** ![agus.wiranata](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@agus.wiranata](https://devforum.zoom.us/u/agus.wiranata)\
**Post date:** [July 5, 2021, 5:11am UTC](https://devforum.zoom.us/t/how-to-hide-leave-button-on-meeting-just-for-host/53477/3 "2021-07-05T05:11:43Z")

</div>

Hi Gianni,

Thank you for answering my question.  
For this case, I ended up using a little trick, I triggered the end meeting function when the leave button was clicked.

and I have 1 other question, when the user has another meeting that is still active, can a button to end the other meeting be added to the popup in picture 1?

#Picture 1  
 ![endd](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/8/e848c125afcbb3a135a302ce0d767ef915632726.jpeg)

this function is similar to zoom if opened through a browser directly or using zoom desktop app as in picture 2.

#Picture 2

 ![endd2](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/a/ca13222cda30afde30485ae273f458af5d8ce7e7.jpeg)

Terima kasih

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [July 7, 2021, 7:25pm UTC](https://devforum.zoom.us/t/how-to-hide-leave-button-on-meeting-just-for-host/53477/4 "2021-07-07T19:25:34Z")

</div>

Hey @agus.wiranata,

Good question! In theory, this is something that you could accomplish but modifying the UI isn’t currently supported by the Web SDK. This is something we plan to add in the future but in the meantime, if you add a custom button, you can use the [Update Meeting Status API](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingstatus).

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![agus.wiranata](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@agus.wiranata](https://devforum.zoom.us/u/agus.wiranata)\
**Post date:** [July 19, 2021, 1:13am UTC](https://devforum.zoom.us/t/how-to-hide-leave-button-on-meeting-just-for-host/53477/5 "2021-07-19T01:13:23Z")

</div>

Hey Max,

Thanks for the advice, very helpful.  
I have tried and applied, and it works well.

Can’t wait for the latest version of Zoom Web SDK.

Thank you.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [July 19, 2021, 3:20pm UTC](https://devforum.zoom.us/t/how-to-hide-leave-button-on-meeting-just-for-host/53477/6 "2021-07-19T15:20:15Z")

</div>

Thanks for the feedback @agus.wiranata — we hope to have more flexibility to offer soon!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 19, 2021, 1:20am UTC](https://devforum.zoom.us/t/how-to-hide-leave-button-on-meeting-just-for-host/53477/7 "2021-08-19T01:20:23Z")

</div>

Closed on August 19, 2021, 1:20am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
