# Getting user profile custom field via JS

**URL:** <https://meta.discourse.org/t/getting-user-profile-custom-field-via-js/32257>\
**Category:** Feature\
**Created:** [August 18, 2015, 5:08pm UTC](https://meta.discourse.org/t/getting-user-profile-custom-field-via-js/32257 "2015-08-18T17:08:54Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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:** [April 14, 2016, 3:13am UTC](https://meta.discourse.org/t/getting-user-profile-custom-field-via-js/32257/12 "2016-04-14T03:13:04Z")

</div>

> [@Nuck](#):
>
> Wouldn’t this cause an N+1 query?

I don’t think so, because the serializer already has the user object, is just a matter of including it in the payload. I can be wrong, tough.

> [@Nuck](#):
>
> Is there any solid documentation on the whole custom field system somewhere?

Nope, but there are plenty of opensource plugins and the Discourse source code itself.

> [@Nuck](#):
>
> I didn’t realize you could register the custom field type or append to serialized\_current\_user\_fields

I found it trough other plugins code too.

---

_[View the full topic](https://meta.discourse.org/t/getting-user-profile-custom-field-via-js/32257)._
