Possible to have Dynamic Tags?

Hi,

I want to have a Profile Edit screen where users can choose from a list of tags to add to their profile.

I know how to set this up to a point, but how would I make the tags rearrange/order dynamically?

tags_example

If you look at the attached image (which is static currently) you will see that, say if the user did not use Sketch and Photoshop there would be empty spaces. How would I get it so the Tags would align correctly (without blank spaces) if they decide to add/remove tags?

Is this even possible with Bubble?

Many thanks

1 Like

The easiest solution is to place the tags within a repeating group and then making each box the same width. You could then, for example, display as many tags as you want dynamically this way.

Iā€™m sure there are other solutions too, but they almost certainly are more complicated.

4 Likes

Thanks buddy. Could I use this in conjunction with the Multi Dropdown plugin? And switch between them with States when a, for example, ā€˜Update your Profileā€™ button has been pressed?

many thanks

Yeah, I donā€™t see any reason why that wouldnā€™t work.

Also FYI - If you want them stored permanently, then youā€™ll want to save that data in the database too. If you just want it on the UI to customize a screen (for example, when filtering through search results) then custom-states work well for that.

1 Like

Thanks Scott. Youā€™ve been a great help :+1:emphasized text

Another question in regards to Repeating Groups. I have Inputs where a user can add their Dribbble URL, Twitter URL etcā€¦ and when they click Save the relevant icon is shown which links through to the website.

I cannot for the life of me get this to work with a repeating group. I have got it to a point where the first cell is empty, and then 2 Dribble icons are shown in cell 2 and 3, it looks a mess and Iā€™m having trouble getting it to work correctly!

Any ideas?

I typically only using repeating groups if there might be a lot of data loaded because theyā€™re the last thing to load on the page and often a materially slower than everything else.

In the instance of URLā€™s to multiple sites, I usually like to store each on the userā€™s table instead of in a separate table. This helps with performance in other areas of our app, but also makes this type of data harder to load into a repeating group (since thereā€™s no way to ā€œsearch forā€ a list of records and load themā€¦ itā€™s all 1 user and different fields).

So, this might be a scenario where itā€™s easier to create a few fields that behave the same way rather than using a repeating group. Additionally, you could use a re-usable element for this which is probably a bit easier to maintain.

Of course, it sounds entirely do-able within a repeating group too but perhaps another approach is better here.

1 Like

Thanks Scott for the detailed response. How would I go about achieving this, the non-repeating group way? Iā€™m really at a loss currently :frowning_face:

If you want users to be able to add, say, links to Dribble and Linkedin then:

  • Include two input fields, one for Dribble and one for LinkedIn
  • When the user clicks save, store this data in your database. Likely, on the userā€™s table youā€™d have a field for Dribble URL and Linkedin URL.
  • Include 2 groups on the page - one for Dribble and one for LinkedIn. Set them each to not visible by default. And, add a condition to each: when current userā€™s Dribble URL isnā€™t empty make this group visible (and same for LinkedIn)
  • Then, within that group put an icon for in the Middle and maybe a background color for the group.

Now, once you store the URLs for that user in the database, the groups will automatically appear and display the icons and colored background.

I hope this helps. Additionally, I strongly encourage you to go through Bubbleā€™s training modules if you havenā€™t already and perhaps another video course or something afterwards. Thereā€™s a lot to Bubble and itā€™s so much easier to learn from someone showing you the ropes than having to figure it all out on your own. At least, thatā€™s been my experience.

Best of luck!

2 Likes

Thanks Scott. When you say 2 groups, do you mean side by side? 1 Group for Dribbble, and to the right of that the other Group for LinkedIn? What would happen if the Dribbble Input wasnā€™t filled in there would be a gap to the left of the LinkedIn icon, or am I not understanding you correctly?

Many thanks

Marc, you could put the groups side by side or one above the other. There are lots of ways to manage these types of challenges, but the appropriate approach really depends on a lot of details about your app and implementation.

Iā€™d encourage you to take some video classes in Bubble - any good training course would show you a variety of solutions for this type of thing so that you can put together solutions that best fit your goals for your UI/UX.

1 Like

Thanks Scott. Will try out one of those methods. And yes, Iā€™ve watched/paid for over 5 premium tuts, joined the VIP on Coaching Bubble. This has taught me so much about Bubble, and enabled me to build around 50% of my App in such a short time.

1 Like

What did you mean by this -

Then, within that group put an icon for in the Middle and maybe a background color for the group

Didnā€™t quite understand this?

Many thanks

I simply meant that you can add an icon (and background color) so that when the group is visible, the icon shows up.

Sorry Scott. Iā€™m having a real dumb moment here. How does what you mention work exactly?

Really appreciate the help.

The groups show/hide based on whether thereā€™s a URL in your database. But, since the group is empty by default, youā€™d want to add an icon or something else thatā€™s visible to the user and set that up as a link that the user could click on to open the URL.

1 Like

Thanks Scott. Youā€™ve been awesome! Thanks for putting up with my constant question in this thread :slight_smile:

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.