# Option to add custom leavemeeting function as a parameter to zoom component

**URL:** <https://devforum.zoom.us/t/option-to-add-custom-leavemeeting-function-as-a-parameter-to-zoom-component/68244>\
**Category:** Feature Requests\
**Tags:** webinar\
**Created:** [April 28, 2022, 4:28am UTC](https://devforum.zoom.us/t/option-to-add-custom-leavemeeting-function-as-a-parameter-to-zoom-component/68244 "2022-04-28T04:28:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zerodistance](https://avatars.discourse-cdn.com/v4/letter/z/58f4c7/32.png) [@Zerodistance](https://devforum.zoom.us/u/Zerodistance)\
**Post date:** [April 28, 2022, 4:28am UTC](https://devforum.zoom.us/t/option-to-add-custom-leavemeeting-function-as-a-parameter-to-zoom-component/68244/1 "2022-04-28T04:28:45Z")

</div>

UseCase:  
when the client clicks the end meeting button available in the zoom component view,  
the meeting gets ended  
at this point, I wish to run some functionality however zoom doesn’t give us any trigger or notification  
to perform any cleanup actions

current fix:  
I am using the custom button to trigger my own leave meeting function

issues with the current fix: the custom button is present inside more button dropdown \<so the client tend to click zoom’s default end meeting, leaving the journey incomplete without the necessary cleanups

request:  
it would be great if we can send a function as a parameter to zoom, which zoom can trigger when default end meeting button is clicked

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [April 28, 2022, 2:36pm UTC](https://devforum.zoom.us/t/option-to-add-custom-leavemeeting-function-as-a-parameter-to-zoom-component/68244/2 "2022-04-28T14:36:20Z")

</div>

Hi @Zerodistance

Thanks for your suggestion! I understand how this can be valuable.  
Feel free to add this request here:

> **[Feature Requests](https://devforum.zoom.us/c/feature-requests/23)**
>
> Have an API or SDK feature request? Share it here!

Cheers,  
Elisa

---

<div class="post-metadata">

**Author:** ![Zerodistance](https://avatars.discourse-cdn.com/v4/letter/z/58f4c7/32.png) [@Zerodistance](https://devforum.zoom.us/u/Zerodistance)\
**Post date:** [April 29, 2022, 4:03am UTC](https://devforum.zoom.us/t/option-to-add-custom-leavemeeting-function-as-a-parameter-to-zoom-component/68244/3 "2022-04-29T04:03:38Z")

</div>

Hello @elisa.zoom

Thanks for the reply, I’ll move the request to feature requests, ill be adding some more  
requests, so please keep an eye on those

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [April 29, 2022, 7:28pm UTC](https://devforum.zoom.us/t/option-to-add-custom-leavemeeting-function-as-a-parameter-to-zoom-component/68244/4 "2022-04-29T19:28:05Z")

</div>

@Zerodistance

Will do, thanks a lot!
