# Dropdown (or radio button) that assigns a role to a user on registration

**URL:** <https://forum.adalo.com/t/dropdown-or-radio-button-that-assigns-a-role-to-a-user-on-registration/51651>\
**Category:** Get Help\
**Created:** [December 3, 2024, 1:21am UTC](https://forum.adalo.com/t/dropdown-or-radio-button-that-assigns-a-role-to-a-user-on-registration/51651 "2024-12-03T01:21:42Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rogue](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/rogue/32/35858_2.png) [@Rogue](https://forum.adalo.com/u/Rogue)\
**Post date:** [December 3, 2024, 1:21am UTC](https://forum.adalo.com/t/dropdown-or-radio-button-that-assigns-a-role-to-a-user-on-registration/51651/1 "2024-12-03T01:21:42Z")

</div>

My app has to assign a role to the user upon signup, either supplier or consumer and depending on which is chosen a different section of the application appears. How can I create this upon registration so that the chosen user type is then assigned to that new register registered us for all future logins

---

<div class="post-metadata">

**Author:** ![ishantanusrivastava](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ishantanusrivastava/32/34947_2.png) [@ishantanusrivastava](https://forum.adalo.com/u/ishantanusrivastava)\
**Post date:** [December 3, 2024, 3:02pm UTC](https://forum.adalo.com/t/dropdown-or-radio-button-that-assigns-a-role-to-a-user-on-registration/51651/2 "2024-12-03T15:02:38Z")

</div>

Hi @Rogue

You can use a dropdown for this and set up redirection accordingly. To implement this, create a collection named “User Roles” and save the two roles in it. When a new user signs up, they can select their role from the dropdown.

---

<div class="post-metadata">

**Author:** ![Benalihoussam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/benalihoussam/32/10346_2.png) [@Benalihoussam](https://forum.adalo.com/u/Benalihoussam)\
**Post date:** [December 3, 2024, 7:14pm UTC](https://forum.adalo.com/t/dropdown-or-radio-button-that-assigns-a-role-to-a-user-on-registration/51651/3 "2024-12-03T19:14:44Z")

</div>

Hi,  
Alternatively you can add a true/false property on the users collection like "supplier/consumer  
If it’s false it’ll be supplier, if true it’ll be consumer, and link them to the relevant screen accordingly

---

<div class="post-metadata">

**Author:** ![Rogue](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/rogue/32/35858_2.png) [@Rogue](https://forum.adalo.com/u/Rogue)\
**Post date:** [December 3, 2024, 11:14pm UTC](https://forum.adalo.com/t/dropdown-or-radio-button-that-assigns-a-role-to-a-user-on-registration/51651/4 "2024-12-03T23:14:09Z")

</div>

Hi All, appreciate the feedback!

 ![Screenshot 2024-12-04 at 9.02.35 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/8/5/858a068a46e5e065f975ec20f9787f6e3d53ae38.png)

I have managed to create the drop-down (woohoo!)…but I need to embed the following logic / actions:

1. When the user selects their role, their profile needs to be updated with that role, for future logins.

2. When selecting a role from the drop-down, depending on what option was selected, the user needs to be directed to the respective screen. i.e. if they select ‘Consumer’ it needs to take them to the Consumer home screen.

Any ideas? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Benalihoussam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/benalihoussam/32/10346_2.png) [@Benalihoussam](https://forum.adalo.com/u/Benalihoussam)\
**Post date:** [December 3, 2024, 11:29pm UTC](https://forum.adalo.com/t/dropdown-or-radio-button-that-assigns-a-role-to-a-user-on-registration/51651/5 "2024-12-03T23:29:01Z")

</div>

Since you are using the dorpdown method you’ll need to makke a relationship between the users and the roles, “one role to many users”  
when the user clicks “continue” button, put an action to update loggedin user and update the role to the selected role  
2nd action “link” to the supplier screen (add a condition under “advanced” in the link action (if-other components- dropdown-selected role- name is equal to- Supplier)  
3rd action, link to consumer

---

<div class="post-metadata">

**Author:** ![SFJerry](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@SFJerry](https://forum.adalo.com/u/SFJerry)\
**Post date:** [December 4, 2024, 12:49am UTC](https://forum.adalo.com/t/dropdown-or-radio-button-that-assigns-a-role-to-a-user-on-registration/51651/6 "2024-12-04T00:49:22Z")

</div>

I have something very similar in mind, is this the best way to accomplish directing different types of roles - each will get a different sign in screen, initially the supplier should be provided with their own password which will be emailed to them, so that when they first sign in, it will be with the email/password provided, they can then change it – how would this be accomplished in the user collection?

---

<div class="post-metadata">

**Author:** ![Benalihoussam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/benalihoussam/32/10346_2.png) [@Benalihoussam](https://forum.adalo.com/u/Benalihoussam)\
**Post date:** [December 4, 2024, 12:54am UTC](https://forum.adalo.com/t/dropdown-or-radio-button-that-assigns-a-role-to-a-user-on-registration/51651/7 "2024-12-04T00:54:30Z")

</div>

Hey Jerry,  
My usual goto solution in these cases is that I build a different app for each type of users, share the same database between them, it makkes the apps much lighter, since the users will never need to see the “other side”

but in your case it’s simple, when creating the profiles, emails and passwords you should just add true/false property, then on the login button let’s say, you can add conditional links, (link to supplier screen if loggedin user- supplier- is true) and so on for all your cases

---

<div class="post-metadata">

**Author:** ![SFJerry](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@SFJerry](https://forum.adalo.com/u/SFJerry)\
**Post date:** [December 4, 2024, 12:57am UTC](https://forum.adalo.com/t/dropdown-or-radio-button-that-assigns-a-role-to-a-user-on-registration/51651/8 "2024-12-04T00:57:29Z")

</div>

thank you

---

<div class="post-metadata">

**Author:** ![SFJerry](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@SFJerry](https://forum.adalo.com/u/SFJerry)\
**Post date:** [December 4, 2024, 12:58am UTC](https://forum.adalo.com/t/dropdown-or-radio-button-that-assigns-a-role-to-a-user-on-registration/51651/9 "2024-12-04T00:58:36Z")

</div>

what is the best way to create an original password to block others from getting in

---

<div class="post-metadata">

**Author:** ![Benalihoussam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/benalihoussam/32/10346_2.png) [@Benalihoussam](https://forum.adalo.com/u/Benalihoussam)\
**Post date:** [December 4, 2024, 1:07am UTC](https://forum.adalo.com/t/dropdown-or-radio-button-that-assigns-a-role-to-a-user-on-registration/51651/10 "2024-12-04T01:07:00Z")

</div>

here you go : [https://api.genratr.com/](https://api.genratr.com/)

---

<div class="post-metadata">

**Author:** ![Rogue](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/rogue/32/35858_2.png) [@Rogue](https://forum.adalo.com/u/Rogue)\
**Post date:** [December 4, 2024, 1:42am UTC](https://forum.adalo.com/t/dropdown-or-radio-button-that-assigns-a-role-to-a-user-on-registration/51651/11 "2024-12-04T01:42:07Z")

</div>

Hi Ben, before i post my screens, am i on the wrong track here? Should i just do two apps?

Regardless…created this but no luck.

 ![Screenshot 2024-12-04 at 11.33.52 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/6/4/640373edbdee8a19300820d557741b82d2b256ac.png)

Based on this:

 ![Screenshot 2024-12-04 at 11.33.12 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/2/3/236439f3feba5c38d6a66c7a750ccc645be88198.png)

Actions:

 ![Screenshot 2024-12-04 at 11.33.52 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/6/4/640373edbdee8a19300820d557741b82d2b256ac.png)

 ![Screenshot 2024-12-04 at 11.35.12 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/c/e/cea72e0e7edcc0c8e8591e71df63a7c58b410d30.png)

 ![Screenshot 2024-12-04 at 11.29.22 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/f/3/f37a677d4b34327251296037d1482944b0623403.png)

Again, if you think i am over complicating things…i can try build two apps rather. Once again appreciate the feedback!

---

<div class="post-metadata">

**Author:** ![SFJerry](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@SFJerry](https://forum.adalo.com/u/SFJerry)\
**Post date:** [December 4, 2024, 3:57am UTC](https://forum.adalo.com/t/dropdown-or-radio-button-that-assigns-a-role-to-a-user-on-registration/51651/12 "2024-12-04T03:57:17Z")

</div>

basically I want to create a field that will be the password I generate, they use that to log in , and then they create their own, for further access

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [December 14, 2024, 3:57am UTC](https://forum.adalo.com/t/dropdown-or-radio-button-that-assigns-a-role-to-a-user-on-registration/51651/13 "2024-12-14T03:57:31Z")

</div>

Closed on December 14, 2024, 3:57am UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
