I’m struggling with trying to get users to a different “homepage” based on their role.
Adalo doesn’t seem to like it if their role is assigned by way of a collection relationship.
For example I have a collection of Users and a collection of Roles.
A user can hold multiple roles, and each Role contains multiple users, clearly.
However, when I try to set up the Login button to link to a different screen based on their Roles, it doesn’t work. Is this because it is a list?
When I try to set the button to Login, then another action of Link → User Page (sometimes) Logged In User’s > Roles > Contains it doesn’t give me any options to choose from, but only allows me to type in the box. However, if I just type in the name of one of the Roles, such as “Driver” it doesn’t work at all.
If I have that as the only link option, it doesn’t link anywhere and just sits on the login page.
How do I get the Link to be able to detect which Roles the user has without using another field in the Collection like a text value as that entirely defeats the purpose of having various roles set for various users.
Since this is the login page I can’t show a different login button via Visibility settings with different Links based on who is logged in, because they aren’t logged in yet!