# Adding Custom Fields via Plugin Outlet

**URL:** <https://meta.discourse.org/t/adding-custom-fields-via-plugin-outlet/109003>\
**Category:** Development\
**Created:** [13.Февраль.2019 03:23:59 UTC](https://meta.discourse.org/t/adding-custom-fields-via-plugin-outlet/109003 "2019-02-13T03:23:59Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![zaino](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zaino/32/130057_2.png) [@zaino](https://meta.discourse.org/u/zaino)\
**Post date:** [13.Февраль.2019 03:23:59 UTC](https://meta.discourse.org/t/adding-custom-fields-via-plugin-outlet/109003/1 "2019-02-13T03:23:59Z")

</div>

In my custom theme, I am attempting to create custom user fields using the plugin-outlet at preferences/profile and I am part way there.

I have successfully inserted new custom fields into User Preferences, but the information I entered into the UI does not stick after clicking save.

For example, I created this checkbox like this:

```
       <script type="text/x-handlebars" data-template-name="preferences/profile"> [all the other code]
<div class="control-group pref-check1">
  <label class="control-label">I like beer</label>
  <div class="controls">
    {{input type="checkbox" name="check1" value="true" class="input-xxlarge"}}
  </div>
</div>
</script>

```

What do I need to do to save the info entered in the preferences UI (and then display it in the /user template)? Is this possible with a custom theme?

* * *

Why am I doing this?

I am aware that you can create custom user fields under settings. I have a 3-4 different types of user custom fields for which I want finer control over the visual display on the user profile. For example some fields are text and some are true/false.

Since all custom user fields have the same class this is difficult. And I find :nth-child() a pain.

So my goal is to insert them into the template and control their classes and display.

I am interested in guidance specific to my first question and to my larger goal.

Cheers

---

_[View the full topic](https://meta.discourse.org/t/adding-custom-fields-via-plugin-outlet/109003)._
