Hey guys. I’m trying to create a functionality where users can connect to each other in a friends like way and I’m trying to figure out the best way to do this.
So far I’ve created a “list of users” field called “friends” for users in the database. So I should be able to add either username or e-mail of any user to any other users “friends field”.
But I haven’t been able to figure out the workflow.
I’ve got an input field for “username” and/or “email” (doesn’t really matter to me which I use) and a submit button. The workflow for submit button I can’t get to work.
Anyone who has done something similar who can point me in the right direction?
Ah no. It’s an input field without parent. It’s like in Snapchat – you need to know your friends username in order to add them. So you input the username and if it’s a match you get your friend added.