# Wijzig het standaardgedrag van de knop "Nieuw onderwerp"

**URL:** <https://meta.discourse.org/t/modify-new-topic-button-default-behavior/184415>\
**Category:** Development\
**Created:** [25 maart 2021 om 12:31 UTC](https://meta.discourse.org/t/modify-new-topic-button-default-behavior/184415 "2021-03-25T12:31:31Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jotamartos](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jotamartos/32/214501_2.png) [@jotamartos](https://meta.discourse.org/u/jotamartos)\
**Post date:** [29 maart 2021 om 15:59 UTC](https://meta.discourse.org/t/modify-new-topic-button-default-behavior/184415/4 "2021-03-29T15:59:58Z")

</div>

Hi @pfaffman,

Thank you for the suggestion. However, if I’m not mistaken, that plugin allows you add a new custom field to a topic but what I want to do is to run my own javascript code when clicking on the “New Topic” button. I think my issue is basically related to the Discourse’s controller to use, the name of the function that is run and how to overwrite that function. Can you shed some light here?

Thanks

---

_[View the full topic](https://meta.discourse.org/t/modify-new-topic-button-default-behavior/184415)._
