# Group choice during the registration

**URL:** https://meta.discourse.org/t/group-choice-during-the-registration/65809
**Category:** Development
**Created:** [2017年七月7日 14:01 UTC](https://meta.discourse.org/t/group-choice-during-the-registration/65809 "2017-07-07T14:01:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Yohan](https://avatars.discourse-cdn.com/v4/letter/y/e99b99/32.png) [@Yohan](https://meta.discourse.org/u/Yohan)
#### Post date: [2017年七月7日 14:01 UTC](https://meta.discourse.org/t/group-choice-during-the-registration/65809/1 "2017-07-07T14:01:27Z")

</div>

Hi,  
I want to force people to choose a group during their registration. So, i have modified the file /templates/modal/create\_account.hbs in order to insert a new field. But i m unable to get the groups.  
How can i do? I have tried to use Discourse.Site.currentProp(‘groups’), but it returns all groups (not only the public groups). And how to create the select input after and to save the new registration (with the group)?  
In the parameters, i have created new user field ‘group’ in the administration, but i don’t understand because i have recreated the same groups as groups users… but there are no link between them?!..  
ty for your help

---

<div class="post-metadata">

### Author: ![Joshua\_Kogan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshua_kogan/32/127595_2.png) [@Joshua\_Kogan](https://meta.discourse.org/u/Joshua_Kogan)
#### Post date: [2019年六月5日 19:11 UTC](https://meta.discourse.org/t/group-choice-during-the-registration/65809/2 "2019-06-05T19:11:57Z")

</div>

@Yohan were you able to accomplish this?
