# Custom User Field Enhancements

**URL:** <https://meta.discourse.org/t/custom-user-field-enhancements/31572>\
**Category:** Feature\
**Tags:** feedback\
**Created:** [2015年七月30日 18:59 UTC](https://meta.discourse.org/t/custom-user-field-enhancements/31572 "2015-07-30T18:59:27Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![OnceWas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oncewas/32/40734_2.png) [@OnceWas](https://meta.discourse.org/u/OnceWas)\
**Post date:** [2015年八月30日 17:31 UTC](https://meta.discourse.org/t/custom-user-field-enhancements/31572/22 "2015-08-30T17:31:07Z")

</div>

Is there a way to import a large-ish number of options for dropdowns?

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [2015年八月31日 15:49 UTC](https://meta.discourse.org/t/custom-user-field-enhancements/31572/23 "2015-08-31T15:49:56Z")

</div>

No, you’d have to write something like that yourself in Ruby or Javascript. How many are you adding?

---

<div class="post-metadata">

**Author:** ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)\
**Post date:** [2015年八月31日 15:57 UTC](https://meta.discourse.org/t/custom-user-field-enhancements/31572/24 "2015-08-31T15:57:19Z")

</div>

> [@OnceWas](#):
>
> Is there a way to import a large-ish number of options for dropdowns?

We were hoping to do the same thing with a “Country” field to get some normalized data and eventually a way to group people geographically, perhaps by badges.

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [2015年八月31日 15:59 UTC](https://meta.discourse.org/t/custom-user-field-enhancements/31572/25 "2015-08-31T15:59:08Z")

</div>

Country might be better served by a new field type. I can actually imagine many people would want such a thing.

---

<div class="post-metadata">

**Author:** ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)\
**Post date:** [2015年八月31日 16:00 UTC](https://meta.discourse.org/t/custom-user-field-enhancements/31572/26 "2015-08-31T16:00:44Z")

</div>

> [@eviltrout](#):
>
> Country might be better served by a new field type. I can actually imagine many people would want such a thing.

There’s already the “Location” field, but it’s free text and our folks take full advantage of that. 😛 Lots of value for a global community in getting some more structure there … we’re ready to hack what we can easily to get that when circumstances permit. 😄

---

<div class="post-metadata">

**Author:** ![OnceWas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oncewas/32/40734_2.png) [@OnceWas](https://meta.discourse.org/u/OnceWas)\
**Post date:** [2015年九月21日 16:38 UTC](https://meta.discourse.org/t/custom-user-field-enhancements/31572/27 "2015-09-21T16:38:54Z")

</div>

Reordering the user fields changes their position in user preferences, but it doesn’t seem to change their position on the user profile. The fields on the user profile remain in the order in which the fields were originally added:

Settings:

 ![](https://global.discourse-cdn.com/meta/original/3X/9/7/975312b9c7fba7a61895449d6eb7a119031d7524.png)

User preferences:

 ![](https://global.discourse-cdn.com/meta/original/3X/3/9/3926a1fef5be383954cfa5ac61241d47a691c831.png)

Profile:

 ![](https://global.discourse-cdn.com/meta/original/3X/7/3/73e9ce4c1ca9211a43a3a5cf9e2191e656afe568.png)

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [2015年九月21日 19:26 UTC](https://meta.discourse.org/t/custom-user-field-enhancements/31572/28 "2015-09-21T19:26:29Z")

</div>

Thanks, I’ve fixed it:

[https://github.com/discourse/discourse/commit/b6155889d52cac5a79dc4ada37602b2b88d3e723](https://github.com/discourse/discourse/commit/b6155889d52cac5a79dc4ada37602b2b88d3e723)

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [2015年九月22日 19:27 UTC](https://meta.discourse.org/t/custom-user-field-enhancements/31572/29 "2015-09-22T19:27:05Z")

</div>

This topic was automatically closed after 24 hours. New replies are no longer allowed.

[上一頁](https://meta.discourse.org/t/custom-user-field-enhancements/31572.md?page=1)
