# Hiding UNO elements

**URL:** <https://forum.collaboraonline.com/t/hiding-uno-elements/2754>\
**Category:** Development\
**Created:** [July 4, 2024, 11:23am UTC](https://forum.collaboraonline.com/t/hiding-uno-elements/2754 "2024-07-04T11:23:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![iwells](https://avatars.discourse-cdn.com/v4/letter/i/779978/32.png) [@iwells](https://forum.collaboraonline.com/u/iwells)\
**Post date:** [July 4, 2024, 11:23am UTC](https://forum.collaboraonline.com/t/hiding-uno-elements/2754/1 "2024-07-04T11:23:55Z")

</div>

Hi all,

I wonder anyone can please help me with a technical issue. I want to be able to hide some elements from certain menus. For example one of things I want to hide is the Format \> Theme… Option.

However, rather than a simple id being on the element in this case it’s like so: {uno: ‘.uno:ThemeDialog’}.

As I’m using the post API to send an array of ids and I have a custom function that takes that array in, I can successfully hide elements that have a normal id on them. How would I please hide any element that is an UNO element (ideally by using the id of the element)?

Thank you.

---

<div class="post-metadata">

**Author:** ![hub](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/hub/32/883_2.png) [@hub](https://forum.collaboraonline.com/u/hub)\
**Post date:** [July 4, 2024, 2:18pm UTC](https://forum.collaboraonline.com/t/hiding-uno-elements/2754/2 "2024-07-04T14:18:56Z")

</div>

Hi,

The `Hide_Command` post message works with UNO commands. It is used like `Hide_Menu_Item`, but takes a uno command instead. You can hide “Theme” from the menus or notebook bar with the `Hide_Command` and `id` set to `.uno:ThemeDialog`. It should hide menu, toolbar buttons and notebook bar buttons. Not all items have an associated UNO command though.

Hub

---

<div class="post-metadata">

**Author:** ![iwells](https://avatars.discourse-cdn.com/v4/letter/i/779978/32.png) [@iwells](https://forum.collaboraonline.com/u/iwells)\
**Post date:** [July 5, 2024, 10:29am UTC](https://forum.collaboraonline.com/t/hiding-uno-elements/2754/3 "2024-07-05T10:29:55Z")

</div>

Hi Hub, that worked a treat thank you

---

<div class="post-metadata">

**Author:** ![iwells](https://avatars.discourse-cdn.com/v4/letter/i/779978/32.png) [@iwells](https://forum.collaboraonline.com/u/iwells)\
**Post date:** [July 5, 2024, 12:50pm UTC](https://forum.collaboraonline.com/t/hiding-uno-elements/2754/4 "2024-07-05T12:50:01Z")

</div>

Sorry there is something further I please need to check. Where you have a dialog that is opened via an uno command, how do you then hide an element on that dialog? So for example there’s:

```auto
.uno:SpellingAndGrammarDialog

```

In the tools menu that then has an ‘opitions’ button. How would I hide that?

---

<div class="post-metadata">

**Author:** ![hub](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/hub/32/883_2.png) [@hub](https://forum.collaboraonline.com/u/hub)\
**Post date:** [July 8, 2024, 2:43pm UTC](https://forum.collaboraonline.com/t/hiding-uno-elements/2754/5 "2024-07-08T14:43:30Z")

</div>

There currently no mechanism to disable part of a UI dialog at runtime.

Sorry about that.

---

<div class="post-metadata">

**Author:** ![mmeeks](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/mmeeks/32/371_2.png) [@mmeeks](https://forum.collaboraonline.com/u/mmeeks)\
**Post date:** [July 8, 2024, 6:45pm UTC](https://forum.collaboraonline.com/t/hiding-uno-elements/2754/6 "2024-07-08T18:45:05Z")

</div>

But of course we’re really interested to know what features you want to hide. For example on-line help is something many people want to hide, so there is a setting for that; but is there some specific feature you don’t want to see ?  
Thanks!

---

<div class="post-metadata">

**Author:** ![iwells](https://avatars.discourse-cdn.com/v4/letter/i/779978/32.png) [@iwells](https://forum.collaboraonline.com/u/iwells)\
**Post date:** [July 16, 2024, 3:12pm UTC](https://forum.collaboraonline.com/t/hiding-uno-elements/2754/7 "2024-07-16T15:12:56Z")

</div>

Hi thanks for the reply, actually we would please like to know if the external help link can be configured to be changed?  
 ![external link](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/2X/a/ae08ee672c421d9b290d1bda95a5f61c7fa56cdd.jpeg)

---

<div class="post-metadata">

**Author:** ![hub](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/hub/32/883_2.png) [@hub](https://forum.collaboraonline.com/u/hub)\
**Post date:** [July 29, 2024, 9:16pm UTC](https://forum.collaboraonline.com/t/hiding-uno-elements/2754/8 "2024-07-29T21:16:22Z")

</div>

Yes you can. Set `<help_url>` to empty in the coolwsd.xml. As documented there it will hide the “Help” button in dialogs.
