Skip Navigation

[Resolved] Assign appropriate user role when registering with Forms

This support ticket is created 3 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Author
Posts
#1897839

When creating an account we can only assign 1 user role to it, although we have multiple account types possible (koper, verkoper, bouwprofessional, vastgoedprofessional,...). We've allready created those different user roles. Is there a way to assign the appropriate user role to each registration?

#1897897
role-assignment.png

Each User Form can create Users in one Role (see role-assignment.png). You can create multiple Forms, one for each role, and display those Forms in different pages of your site. Or, if you want to let the User choose their own role in the Form using a select field, you can see how another client set this up with a custom field and a custom code snippet in another ticket here: https://toolset.com/forums/topic/choose-user-role-on-registration/

To add multiple roles to a single User, see this ticket for more information and some example code: https://toolset.com/forums/topic/allow-users-to-add-a-second-custom-role-to-their-own-account/

If you'd like to take a different approach, please explain what you want to achieve in more detail and I can give you some feedback.

#1898543

My issue is not yet resolved.