# Hoe velden te verbergen (titel, categorie, tag-invoer) bij het aanmaken van een nieuw onderwerp met openNewTopic

**URL:** https://meta.discourse.org/t/how-to-hide-fields-title-category-tag-input-when-creating-a-new-topic-with-opennewtopic/368367
**Category:** Development
**Created:** [31 mei 2025 om 16:50 UTC](https://meta.discourse.org/t/how-to-hide-fields-title-category-tag-input-when-creating-a-new-topic-with-opennewtopic/368367 "2025-05-31T16:50:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kuaza](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kuaza/32/264151_2.png) [@kuaza](https://meta.discourse.org/u/kuaza)
#### Post date: [31 mei 2025 om 16:50 UTC](https://meta.discourse.org/t/how-to-hide-fields-title-category-tag-input-when-creating-a-new-topic-with-opennewtopic/368367/1 "2025-05-31T16:50:26Z")

</div>

When the “Create New Topic” button is clicked, I wish to display solely the message input fields. The other sections can be adjusted after the topic is initiated with AI.

[https://github.com/discourse/discourse-new-topic-button-theme-component](https://github.com/discourse/discourse-new-topic-button-theme-component)

My goal is that clicking the button added a top the website triggers the creation of a new topic, revealing only the message input area. Technically, I can specify the title within the plugin, thus avoiding missing title errors; however, I prefer to conceal these fields altogether.

Within the plugin, my daughter has implemented the following code to open the new topic editor:

```javascript
  @action
  createTopic() {
    this.composer.openNewTopic({
      preferDraft: true,
      category: this.currentCategory,
      tags: this.currentTag,
      title: "Example title hide.",
    });
  }

```

I want to enhance this code to hide the title, category, and tag fields. Is it possible to do so using “this.composer.openNewTopic” and its available parameters? Or should I consider an alternative approach, such as using JavaScript triggered by the button click to hide these fields?

In the response editor, there is only a writing area; I would like to use it similarly to create a new topic.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [1 juni 2025 om 00:44 UTC](https://meta.discourse.org/t/how-to-hide-fields-title-category-tag-input-when-creating-a-new-topic-with-opennewtopic/368367/2 "2025-06-01T00:44:50Z")

</div>

Just hide it with css.

---

<div class="post-metadata">

### Author: ![kuaza](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kuaza/32/264151_2.png) [@kuaza](https://meta.discourse.org/u/kuaza)
#### Post date: [1 juni 2025 om 09:28 UTC](https://meta.discourse.org/t/how-to-hide-fields-title-category-tag-input-when-creating-a-new-topic-with-opennewtopic/368367/3 "2025-06-01T09:28:52Z")

</div>

I have attempted this, yet unfortunately, it remains concealed in every aspect. Consequently, when I wish to edit the topic, the categories and tags are not visible. Ideally, I would like to know the functions that allow me to define these elements when opening the “composer.” This way, I could select what appears within the section that launches the “composer.” I believe there is no straightforward solution to this; I will contemplate it further.
