# Custom Field not working

**URL:** https://meta.discourse.org/t/custom-field-not-working/89983
**Category:** Development
**Created:** [6월 15, 2018, 4:52오후 UTC](https://meta.discourse.org/t/custom-field-not-working/89983 "2018-06-15T16:52:29Z")
**Posts on this page:** 2
**Page:** 2

<div class="post-metadata">

### Author: ![Sanjay1](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@Sanjay1](https://meta.discourse.org/u/Sanjay1)
#### Post date: [7월 26, 2018, 10:55오전 UTC](https://meta.discourse.org/t/custom-field-not-working/89983/21 "2018-07-26T10:55:09Z")

</div>

@vinothkannans Again thanks for suggestion,

I have successfully added field.

I have one issue though the `add_to_serializer` is loaded before a HTTP request comes in, therefore if I set the value of the custom field with params[“value\_to\_field”] from the params Hash, it fails for obvious reason, the fact that it `add_to_serializer` does not have access to params, is there a way to circumvent this limitation.

Thanks

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [7월 26, 2018, 11:08오전 UTC](https://meta.discourse.org/t/custom-field-not-working/89983/22 "2018-07-26T11:08:11Z")

</div>

> [@Sanjay1](#):
>
> if I set the value of the custom field with params[“value\_to\_field”] from the params Hash

You can get `params` only in controllers.

> [@Sanjay1](#):
>
> the fact that it `add_to_serializer` does not have access to params

You have to understand the differences between serializers and controllers. Also read other Rails essentials.

[이전 페이지](https://meta.discourse.org/t/custom-field-not-working/89983.md?page=1)
