# userCustomFields attr is undefined when extending the poster-name widget

**URL:** <https://meta.discourse.org/t/usercustomfields-attr-is-undefined-when-extending-the-poster-name-widget/43398>\
**Category:** Development\
**Created:** [28 באפריל,‏ 2016,‏ 9:13pm UTC](https://meta.discourse.org/t/usercustomfields-attr-is-undefined-when-extending-the-poster-name-widget/43398 "2016-04-28T21:13:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [28 באפריל,‏ 2016,‏ 9:17pm UTC](https://meta.discourse.org/t/usercustomfields-attr-is-undefined-when-extending-the-poster-name-widget/43398/2 "2016-04-28T21:17:47Z")

</div>

If things haven’t changed, you need to add user custom fields to the post serializer when you want a **user** custom field on the **post** object.

Like this:

> <https://github.com/xfalcox/discourse-signatures/blob/master/plugin.rb#L20>

---

_[View the full topic](https://meta.discourse.org/t/usercustomfields-attr-is-undefined-when-extending-the-poster-name-widget/43398)._
