# 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:** 1

<div class="post-metadata">

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

</div>

Continuing the discussion from [Getting joined data for widget scope](https://meta.discourse.org/t/getting-joined-data-for-widget-scope/42264/4):

I am trying to extend the `poster-name` widget and add some user custom fields next to a user’s name on a post.

As per @eviltrout:

> [@Getting joined data for widget scope](https://meta.discourse.org/t/getting-joined-data-for-widget-scope/42264/3):
>
> The poster-name widget has access to the entire post as attrs.

and…

> [@Getting joined data for widget scope](https://meta.discourse.org/t/getting-joined-data-for-widget-scope/42264/3):
>
> Remember to make sure you whitelist the custom field if you want it accessible in your plugin

`whitelist_staff_user_custom_field("myCustomField")` in `plugin.rb` ✅

I have whitelisted the custom field I am trying to access but when I view `attrs.userCustomFields` of the `poster-name` widget it is undefined. Am I missing a step to make the user custom fields available to the widget/plugin?

---

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