Custom User Field Enhancements

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

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

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.

2개의 좋아요

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

3개의 좋아요

There’s already the “Location” field, but it’s free text and our folks take full advantage of that. :stuck_out_tongue: 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. :smile:

2개의 좋아요

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:

User preferences:

Profile:

1개의 좋아요

Thanks, I’ve fixed it:

https://github.com/discourse/discourse/commit/b6155889d52cac5a79dc4ada37602b2b88d3e723

4개의 좋아요

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