Sure, as I mentioned above, the exact steps you use for this will depend on how your app functions and your existing processes, and there are multiple ways to achieve the same results…
But basically, once you have a user created and signed up, you’ll need to create social links for them.
One way (perhaps the easiest way) would be to automatically create all the user_social_links for a new user when they first sign up (one for each social platform you want to include), and add them to that user’s list of user_social_links. That way you only ever need to make changes to them when the user edits them (you could use autobinding for this to keep things simple).
Then just filter the repeating group to only show links for that user, where the link is not empty.
Thinking about it, that’s probably the easiest way - the only downside is you’ll end up with a lot of ‘empty’ user_social_links in your database.
The other (slightly more complex way) is to only create a new user_social_link whenever a user ads one.
So when they first enter details for a social link, you’d need to create a new user_social_link, then make changes to the user to add it to their list of user_social_links.
It get’s slightly more complex, because you’d only want to do that if the link didn’t already exist, so you’d have to have some conditions set up in your workflows that would check to see if it exists or not, then either create a new one or edit the existing one.
You could probably use a custom state on the edit popup, or on the input to determine whether or not to create a new one or modify an existing one.
That way you’d keep your database less cluttered as you’d only have user_social_links that actually have data in them.
As with most things in Bubble, there are always multiple ways to arrive at the same goal.
But the quickest and easiest way to set this up would be the first option i mentioned.
So create all the user_social_links for the user as part of the user-sign up process. Then you can display them in a repeating group for the user to view and edit in their profile, and use autobinding to make changes on them.
Then, wherever you want to display that user’s social links (only the ones they have), use a repeating group as outlined in the previous post, and filter it to only show that user’s social links where the link is not empty.
If you want to me outline the whole process, let me know and I’ll create a quick workflow and post some screenshots.