# How to make new members choose badge during signing up

**URL:** <https://forum.wixstudio.com/t/how-to-make-new-members-choose-badge-during-signing-up/32898>\
**Category:** Ask the community\
**Tags:** question, code, wix-members-area\
**Created:** [August 21, 2021, 6:05pm UTC](https://forum.wixstudio.com/t/how-to-make-new-members-choose-badge-during-signing-up/32898 "2021-08-21T18:05:58Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![biznesszymonczaja](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/biznesszymonczaja/32/29673_2.png) [@biznesszymonczaja](https://forum.wixstudio.com/u/biznesszymonczaja)\
**Post date:** [August 21, 2021, 6:05pm UTC](https://forum.wixstudio.com/t/how-to-make-new-members-choose-badge-during-signing-up/32898/1 "2021-08-21T18:05:58Z")

</div>

Hi everyone! I’ve got website with online lessons and I would like that new members could choose their badge between teacher and student on signup lightbox. Thank you so much in advance.

---

<div class="post-metadata">

**Author:** ![kylejsoutham](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/kylejsoutham/32/22430_2.png) [@kylejsoutham](https://forum.wixstudio.com/u/kylejsoutham)\
**Post date:** [August 21, 2021, 8:29pm UTC](https://forum.wixstudio.com/t/how-to-make-new-members-choose-badge-during-signing-up/32898/2 "2021-08-21T20:29:54Z")

</div>

You could have a radio button for Teacher/Student. On change of radio button you would have an IF statement work out and set a field for the member with their badge type. You can then later assign the badge to the member once the member has been created.

[https://www.wix.com/velo/reference/wix-users-backend/badges-obj](https://www.wix.com/velo/reference/wix-users-backend/badges-obj)

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [August 21, 2021, 9:41pm UTC](https://forum.wixstudio.com/t/how-to-make-new-members-choose-badge-during-signing-up/32898/3 "2021-08-21T21:41:42Z")

</div>

If you can wait a while, i will show you some cool stuff about this question…

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [August 21, 2021, 11:21pm UTC](https://forum.wixstudio.com/t/how-to-make-new-members-choose-badge-during-signing-up/32898/4 "2021-08-21T23:21:43Z")

</div>

Just a question! Do you realy talk about BADGES, or do you mean → ROLES ?

These a two different things!

For EXAMPLE!

A Teacher → can have several → BADGES…

**Role** : Teacher → **Badges** : [**MostClever, BiggestBrain, MonsterScientist** …]

Ok, even if my project is still in developement, you can take a look on it here…

[https://russian-dima.wixsite.com/login-system](https://russian-dima.wixsite.com/login-system)

There you can see an example-developement, of your expectations… (current-version-1.49).

---

<div class="post-metadata">

**Author:** ![biznesszymonczaja](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/biznesszymonczaja/32/29673_2.png) [@biznesszymonczaja](https://forum.wixstudio.com/u/biznesszymonczaja)\
**Post date:** [August 22, 2021, 10:30am UTC](https://forum.wixstudio.com/t/how-to-make-new-members-choose-badge-during-signing-up/32898/5 "2021-08-22T10:30:55Z")

</div>

I followed the instruction and what can I fix in my code to make it work?

import { badges } from ‘wix-users-backend’;

export function assignMembers ( badgeId , memberIds ) {  
**return** badges . assignMembers ( badgeId , memberIds );  
export function radioGroup1\_change ( event ) {  
**if** ( $w ( ‘#radioGroup1’ ). value === ‘Student’ ) {  
assignMembers ( Student );  
} **else** {

**if** ( $w ( ‘#radioGroup1’ ). value === ‘Teacher’ ) {  
assignMembers ( Teacher );

---

<div class="post-metadata">

**Author:** ![biznesszymonczaja](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/biznesszymonczaja/32/29673_2.png) [@biznesszymonczaja](https://forum.wixstudio.com/u/biznesszymonczaja)\
**Post date:** [August 22, 2021, 10:42am UTC](https://forum.wixstudio.com/t/how-to-make-new-members-choose-badge-during-signing-up/32898/6 "2021-08-22T10:42:15Z")

</div>

Basically I want to make like teacher has hidden some pages on my site. Especially like page with a lessons to book, because I want teachers only to manage their booked lessons. And I’m looking for way to do this. I thought that creating a badges and then setting a special permissions to them in dashboard is a kinda great solution. Maybe you have any other ideas? Thank you for your answer by the way 😃

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [August 22, 2021, 11:29am UTC](https://forum.wixstudio.com/t/how-to-make-new-members-choose-badge-during-signing-up/32898/7 "2021-08-22T11:29:38Z")

</div>

Can you give me a setup-example of the mentioned situation?

In my shown example you surely have recognize, that students can’t enter teachers-pages, but teachers can visit students pages.  
So first step is done → only teachers can enter their pages.  
What next? You want teachers to edit just their own content? → set right DB-permissions.

---

<div class="post-metadata">

**Author:** ![biznesszymonczaja](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/biznesszymonczaja/32/29673_2.png) [@biznesszymonczaja](https://forum.wixstudio.com/u/biznesszymonczaja)\
**Post date:** [August 23, 2021, 1:16pm UTC](https://forum.wixstudio.com/t/how-to-make-new-members-choose-badge-during-signing-up/32898/8 "2021-08-23T13:16:17Z")

</div>

Only teachers can’t enter some pages and i realized there is an option to set a badges permissions in dashboard, so it’s done. Now i just want to make that badge could be choosen in sign up form. I am totally beginner in coding and this is my first page ever. Could you give me some instruction how that code will work and look like? I really appreciate you want to help me in some way.

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [August 23, 2021, 1:39pm UTC](https://forum.wixstudio.com/t/how-to-make-new-members-choose-badge-during-signing-up/32898/9 "2021-08-23T13:39:38Z")

</div>

@biznesszymonczaja  
I do not know, why you are using badges instead of roles.  
I already tried to explain it somehere in another post, why using roles and not badges for it. ( **i realized → it was this post** 🤣😅)

Please take a look one more time here…

[https://russian-dima.wixsite.com/login-system](https://russian-dima.wixsite.com/login-system)

You can create a new ACCOUNT → by choosing (for example) your own ROLE right during the registration prozess.

1. Fill out the Registration form

 ![](https://us1.discourse-cdn.com/wix/original/3X/d/9/d927735a8ff943da67f594b7bd2eae41f90c39f2.png)

1. Choose your ROLE

![](https://us1.discourse-cdn.com/wix/original/3X/3/8/38a035c8dcb0e234a80f42d1d18c481fe41b0d4d.png)

1. Choose your AVATAR (profile-pic)

![](https://us1.discourse-cdn.com/wix/original/3X/2/1/211248caec45a51b1b25466170af16ad2b614fea.png)

1. Register

![](https://us1.discourse-cdn.com/wix/original/3X/0/4/041cc5be0dcfab775147a5bccdf224fd78e088fd.png)  
You will be logged-in immediately without any proving process.  
Do your testings and take also a look into the given RESULTS in the CONSOLE, when doing some actions.

You do not want to create an own ACCOUNT? → Use one of the predefined ones

Somewhere in your (member-management) DASHBOARD you will find this one…

 ![](https://us1.discourse-cdn.com/wix/original/3X/e/6/e63f5bb7f06c0b1f1b2dc86bc2a0a37671265f44.png)  
In this section you can manage all your ROLES and their ACCESSES…

Here an setted-up ROLE in my Login-Example → for PRESIDENT…

 ![](https://us1.discourse-cdn.com/wix/original/3X/b/7/b732842702d5088be014fa13a1b644b6bf93b421.png)

Every ROLE gets an own ID…which is used to identify the right role of a user (you can find this ID also in the SETUP of my Login-System…

 ![](https://us1.discourse-cdn.com/wix/original/3X/9/d/9daad41e56881af4fa4b3c1480a00c4445ed6619.png)

And on this Wix-DASHBOARD-SITE you can manage all permissions for every of your site-pages…

 ![](https://us1.discourse-cdn.com/wix/original/3X/c/a/ca7d98bbb95d54c97a00544ba1c0cd28f8090311.png)  
For example: → Log in a s → **STUDENT** ← and try to enter the given pages on this example-site…

Do the same, when logged-in as → **PRESIDENT** \<—, what has been changed?

So what was the question one more time? 😅

About ROLES →   
[https://www.wix.com/velo/reference/wix-users-backend/roles-obj](https://www.wix.com/velo/reference/wix-users-backend/roles-obj)

About BADGES —\>  
[https://www.wix.com/velo/reference/wix-users-backend/badges-obj](https://www.wix.com/velo/reference/wix-users-backend/badges-obj)

So if this way of permission setup is still not enough for your use-case, than perhaps you in fact will need the BADGES.

But here, i will first have to code it, to show you more of example (sorry).

Stay tuned until my badge-system is READY! 🕶

---

<div class="post-metadata">

**Author:** ![biznesszymonczaja](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/biznesszymonczaja/32/29673_2.png) [@biznesszymonczaja](https://forum.wixstudio.com/u/biznesszymonczaja)\
**Post date:** [August 24, 2021, 10:09am UTC](https://forum.wixstudio.com/t/how-to-make-new-members-choose-badge-during-signing-up/32898/10 "2021-08-24T10:09:14Z")

</div>

@russian-dima Aaa okay I understand 😂

So bagdes no needed in my case. I’ll try to code it by myself and wait for your results.

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [August 31, 2021, 4:09am UTC](https://forum.wixstudio.com/t/how-to-make-new-members-choose-badge-during-signing-up/32898/11 "2021-08-31T04:09:59Z")

</div>

@biznesszymonczaja  
Were you able to resolve your issue? Just wanted to ask you, because i will start working on my BADGE-MANAGEMENT-System soon. So if you have questions, perhaps i will be able to give you some hints, who knows.

---

<div class="post-metadata">

**Author:** ![CODE-NINJA](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-ninja/32/110588_2.png) [@CODE-NINJA](https://forum.wixstudio.com/u/CODE-NINJA)\
**Post date:** [September 3, 2021, 4:25am UTC](https://forum.wixstudio.com/t/how-to-make-new-members-choose-badge-during-signing-up/32898/12 "2021-09-03T04:25:54Z")

</div>

Ok, i do not know if you already could solve your issue, but my BADGE-System takes first progress…

You wanted to generate badges, which will be recognized later inside your login ?

 ![](https://us1.discourse-cdn.com/wix/original/3X/5/a/5a9db1ff6553d6171cef8e192d7c92f60668b69b.png)  
Check out my Login-System again 😉 —\> **FIRST - STEP → DONE!**
