# How to add custom field to topic?

**URL:** <https://meta.discourse.org/t/how-to-add-custom-field-to-topic/57948>\
**Category:** Development\
**Created:** [Fevereiro 25, 2017, 4:46pm UTC](https://meta.discourse.org/t/how-to-add-custom-field-to-topic/57948 "2017-02-25T16:46:16Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Janno\_Liivak](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/janno_liivak/32/352215_2.png) [@Janno\_Liivak](https://meta.discourse.org/u/Janno_Liivak)\
**Post date:** [Fevereiro 25, 2017, 4:46pm UTC](https://meta.discourse.org/t/how-to-add-custom-field-to-topic/57948/1 "2017-02-25T16:46:16Z")

</div>

I tried to add custom field to Topic but doing it the same way as for category gives me error:

`Property set failed: object in path "custom_fields" could not be found or was destroyed.`

Example of how it works successfully for category:

> <https://github.com/jannolii/discourse-bump-topic/blob/master/assets/javascripts/discourse/pre-initializers/extend-category-for-bump-topics.js.es6#L9-L23>

Suggestions, anyone?

---

_[View the full topic](https://meta.discourse.org/t/how-to-add-custom-field-to-topic/57948)._
