Is there a way to change the delimiter for :each items list to new line?

If you have an expression that calls for :each item’s [field], it automatically separates those items with a comma. I’ve been searching and searching to try and figure out how to change the delimiter from a comma to a new line.

Anyone know how to make this happen?

:split_by

line_break

Hi, Dustin.

You can use :format as text and content to show per list item to display your content, and for the delimiter, use a line break.

Screenshot 2023-06-18 at 22-13-51 Bubble - Visual Programming
Screenshot 2023-06-18 at 22-10-21 Bubble Editor - Wosocial


Screenshot 2023-06-18 at 22-12-23 Bubble - Visual Programming

1 Like

That was it! OMG thank you!

Couldn’t get that to work for some reason.

That’s because you need to use :split by (,) so use join with line_break. You need to type “line_break”, without quotes.

1 Like

:warning: A word of caution regarding the :split by parameter.

It’s an interesting solution, but from what I know, it may not be considered the best for what he wants to achieve. For example, if my data field contains a comma, it will automatically split it into a new line (even if it’s not new content).

So, if I have a clean field without commas, it’s perfect:
Screenshot 2023-06-18 at 22-27-55 Bubble - Visual Programming
But if my data starts to have a comma: Screenshot 2023-06-18 at 22-29-10 Bubble Editor - Wosocial

Oops… everything falls apart then:
Screenshot 2023-06-18 at 22-30-04 Bubble - Visual Programming

Well obviously… if you split by , then of course that will happen (that’s the whole point)…

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