I'd like to be able to use the User Registration feature and assign users to multiple roles via checkbox. I need a code snippet for that. I'm about to see if I can use conditional actions, but it doesn't look likely (or seem practical). Anyone have code they'd like to share? Much appreciated!
I do this on the Formidable Masterminds site. I’ll give you the code when I’m on my laptop later today.
Michael, this is the code I use for the developers directory. It should help you get started.
https://gist.github.com/vfontjr/263cdf33d5ea5a84e0f0601406ff99b9#file-user_role_add-remove-php
It'd be great if the FF folks added the ability to assign multiple roles to users created with their Register User action. Could implement via the ability to add multiple Reg User actions and we could then do conditionals, or better yet, let us use a checkbox field or multi-select field to assign roles.
Please login or Register to submit your answer