# \[New Free Plugin\] Prevent Right Click Context Menu

**URL:** <https://forum.bubble.io/t/new-free-plugin-prevent-right-click-context-menu/119659>\
**Category:** Showcase\
**Created:** [November 5, 2020, 8:35pm UTC](https://forum.bubble.io/t/new-free-plugin-prevent-right-click-context-menu/119659 "2020-11-05T20:35:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex4](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alex4/32/38254_2.png) [@alex4](https://forum.bubble.io/u/alex4)\
**Post date:** [November 5, 2020, 8:35pm UTC](https://forum.bubble.io/t/new-free-plugin-prevent-right-click-context-menu/119659/1 "2020-11-05T20:35:39Z")

</div>

Hey Bubblers, I just released “[Prevent Right Click Context Menu](https://tech-blocks.bubbleapps.io/?tab=Prevent-Right-Click)” — a very simple plugin to prevent users from opening the context menu when they right click on your app’s page.

**Main features:**

1. You can turn it on or off using workflow actions
2. You can add an exception element (via HTML id attribute) so that users can still open the context menu by right clicking the exception element.

Example in [run mode](http://pluginsbyalex.bubbleapps.io/prevent-right-click-context-menu) and [editor mode](https://bubble.io/page?version=live&type=page&name=drawing-painting-canvas&id=pluginsbyalex&tab=tabs-1).

Let me know if you have any questions or feedback. Enjoy!  
Alex  
[TechBlocks](https://tech-blocks.bubbleapps.io)

---

<div class="post-metadata">

**Author:** ![tona](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@tona](https://forum.bubble.io/u/tona)\
**Post date:** [November 12, 2020, 8:39pm UTC](https://forum.bubble.io/t/new-free-plugin-prevent-right-click-context-menu/119659/2 "2020-11-12T20:39:02Z")

</div>

It works, thank you for your work. FYI, when you leave the exception element html id blank, it causes an issue. The issue doesn’t prevent the page from working, but thought you should know. I saw the code, I think it’s because the field isn’t listed as optional. Thank you so much.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/e/feb811aaf92c9455b64abdac9a7b78b03f13e8f4.png)

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/b/5b6951d3058ed5f18d3cbfde7bd8a3cfea0b066d.png)

---

<div class="post-metadata">

**Author:** ![julienallard1](https://avatars.discourse-cdn.com/v4/letter/j/ac8455/32.png) [@julienallard1](https://forum.bubble.io/u/julienallard1)\
**Post date:** [November 12, 2020, 8:52pm UTC](https://forum.bubble.io/t/new-free-plugin-prevent-right-click-context-menu/119659/3 "2020-11-12T20:52:28Z")

</div>

This is cool!  
Perhaps it would be useful if exceptions could be made with classes also? For instance, all elements with class `allow-context` would work without the need to register IDs one by one…

I know class manipulation aren’t natively supported, but there are almost 1000 apps using the plugin Classify which allow just that…

Just an idea!

---

<div class="post-metadata">

**Author:** ![alex4](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alex4/32/38254_2.png) [@alex4](https://forum.bubble.io/u/alex4)\
**Post date:** [November 13, 2020, 3:34pm UTC](https://forum.bubble.io/t/new-free-plugin-prevent-right-click-context-menu/119659/4 "2020-11-13T15:34:27Z")

</div>

Thanks for the feedback @tona – I’ve make that adjustment to make the exception element optional and pushed the update. Feel free to upgrade the plugin and take a look. Let me know how that works!

Alex  
[TechBlocks](https://tech-blocks.bubbleapps.io)

---

<div class="post-metadata">

**Author:** ![tona](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@tona](https://forum.bubble.io/u/tona)\
**Post date:** [November 14, 2020, 4:01am UTC](https://forum.bubble.io/t/new-free-plugin-prevent-right-click-context-menu/119659/5 "2020-11-14T04:01:18Z")

</div>

Thank you for the update. For some reason, the update is not showing in my plugins. It’s still saying version 1.0.1 is the latest available. I checked the code and it has been changed, so that’s strange.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/f/df2e013982dcb7c4bebbb0942133fce5520d8463.png)

---

<div class="post-metadata">

**Author:** ![alex4](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alex4/32/38254_2.png) [@alex4](https://forum.bubble.io/u/alex4)\
**Post date:** [November 14, 2020, 10:07pm UTC](https://forum.bubble.io/t/new-free-plugin-prevent-right-click-context-menu/119659/6 "2020-11-14T22:07:18Z")

</div>

@tona – Strange, did you try refreshing your Bubble page?

Alex  
[TechBlocks](https://tech-blocks.bubbleapps.io)

---

<div class="post-metadata">

**Author:** ![tona](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@tona](https://forum.bubble.io/u/tona)\
**Post date:** [November 16, 2020, 8:02pm UTC](https://forum.bubble.io/t/new-free-plugin-prevent-right-click-context-menu/119659/7 "2020-11-16T20:02:59Z")

</div>

I refreshed it then, but the update is showing today. Thank you much.

---

<div class="post-metadata">

**Author:** ![alex4](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alex4/32/38254_2.png) [@alex4](https://forum.bubble.io/u/alex4)\
**Post date:** [November 16, 2020, 8:24pm UTC](https://forum.bubble.io/t/new-free-plugin-prevent-right-click-context-menu/119659/8 "2020-11-16T20:24:04Z")

</div>

Good to hear it’s showing up now. Enjoy!

Alex  
[TechBlocks](https://tech-blocks.bubbleapps.io)

---

<div class="post-metadata">

**Author:** ![abe1366](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@abe1366](https://forum.bubble.io/u/abe1366)\
**Post date:** [March 27, 2024, 2:49am UTC](https://forum.bubble.io/t/new-free-plugin-prevent-right-click-context-menu/119659/9 "2024-03-27T02:49:27Z")

</div>

What if you’re trying to provide exception to an input inside of a repeating group?
