Guys,
I'm struggling big time (totally new to coding, just over a week in but trying).
I have two user / member roles set up "Employer" and "Employee"
I want each to be directed to different profile pages upon login. I've tried doing this using the Wix API
How do I code so that it determins where to send each user depening on their role when logging in?
Apologies, just really struggling with this.
Tom
Just use Wix Users API to get the users role and then direct them from that.
https://www.wix.com/corvid/reference/wix-users.html
https://www.wix.com/corvid/reference/wix-users.User.html
https://www.wix.com/corvid/reference/wix-location.html#to
Also, use the forum's own search button, simply type in user role and look at the searches that come up, there are many that will help you with the code like this one for example.
https://www.wix.com/corvid/forum/community-discussion/user-roles