# Issues Creating Topic Custom Fields

**URL:** https://meta.discourse.org/t/issues-creating-topic-custom-fields/333701
**Category:** Development
**Created:** [October 30, 2024, 8:19pm UTC](https://meta.discourse.org/t/issues-creating-topic-custom-fields/333701 "2024-10-30T20:19:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jafab](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@jafab](https://meta.discourse.org/u/jafab)
#### Post date: [October 30, 2024, 8:19pm UTC](https://meta.discourse.org/t/issues-creating-topic-custom-fields/333701/1 "2024-10-30T20:19:46Z")

</div>

Hey so I have followed Angus McLeod’s [infamous guide](https://meta.discourse.org/t/how-to-add-custom-fields-to-models/184485) and am running into a couple issues.

My first issue is that the input from the custom field isn’t being sent from the client side to the backend upon submission. While looking for this I noticed this error in the topic-custom-field-initializer.js.es6:

 ![Screenshot 2024-10-30 at 4.18.47 PM](https://global.discourse-cdn.com/meta/original/4X/4/6/f/46fe21422d200b3052461dd2af4a7f8ec8d40251.png)

Could this be causing the failure of modification  
I am rather stumped to figuring out why it isn’t properly being sent from the client side to the server. Any help is greatly appreciated. Thank you!

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [October 30, 2024, 8:39pm UTC](https://meta.discourse.org/t/issues-creating-topic-custom-fields/333701/2 "2024-10-30T20:39:13Z")

</div>

The guide was written 3.5 years ago, so it needs some updating 🙂 I’ll do that soon. Perhaps if you could share your code (i.e in a repo) that’d allow me to tell you what you’re missing.

(“infamous” guide 😅)

---

<div class="post-metadata">

### Author: ![jafab](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@jafab](https://meta.discourse.org/u/jafab)
#### Post date: [October 30, 2024, 8:45pm UTC](https://meta.discourse.org/t/issues-creating-topic-custom-fields/333701/3 "2024-10-30T20:45:27Z")

</div>

Thanks for the reply Angus,  
I uploaded what I have to a repo [here](https://github.com/jacksnnn/discourse-custom-topic-field)

My current issues:  
The field input not being saved/ sent from the client to the server.  
The field is not displaying placeholder text/label

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [October 31, 2024, 11:50am UTC](https://meta.discourse.org/t/issues-creating-topic-custom-fields/333701/4 "2024-10-31T11:50:18Z")

</div>

@jafab I’ve updated the Topic Custom Field guide, so pull the latest and take another look.

> [@How to add custom fields to models](https://meta.discourse.org/t/how-to-add-custom-fields-to-models/184485/42):
>
> I’ve updated the Topic Custom Field guide to Discourse 3.4.0. I’ll update the category guide next week.
