Issues Creating Topic Custom Fields

AI-generated summary

Issues Creating Topic Custom Fields

jafab is experiencing difficulties implementing custom fields in a topic, following Angus McLeod’s guide. Specifically, the input from the custom field is not being sent from the client side to the backend upon submission. jafab shared an error screenshot and later uploaded their code to a repo.

Angus suggested that the guide is outdated and requested access to jafab’s code to provide assistance. After reviewing the code, Angus updated the guide and advised jafab to pull the latest changes to resolve the issues.

Hey so I have followed Angus McLeod’s infamous guide 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:

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!

The guide was written 3.5 years ago, so it needs some updating :slight_smile: 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 :sweat_smile:)

Thanks for the reply Angus,
I uploaded what I have to a repo here

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

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