Hi, I am creating an app that has a page on which the list of registered users should be displayed. The problem is that there are three types of users (in this case students, parents and teachers) and they need to be able to display the list with only other people with the same role (e.g. students need to display the list of only students, teachers the list of only teachers etc.).
Until now I have used 3 different lists because I could not find another way but I am asking you to find out if it would be possible to create this functionality with just one list.
Thank you for your attention,
Have a nice day:)
Pietro
Thanks for your help! I’m not too familiar with the technical terms you mentioned. Could you give me more details and explain your instructions in simpler terms? Also, could you let me know the specific steps you’d take on Adalo?
Other than a dropdown to choose from, there isn’t much advantage to having a separate table. What I suggested was a text field, and then you have your permission or role in that text field, directly in the user table.
If user define their role (at the registration) in a text field it could be possible, that a pupil writes
pupli or pulpi, or …
or a parent writes Parent or paretn or…
or a teacher writes the word “teacher” wrong (YESSSS, that could be!)
You are assuming that a user chooses their own role. There is more than one way to skin this cat.
Just because it is a text field, it does not mean it is open for only type input.