Syntax for a .join('\n') in a Flow

I have this code I use outside of a flow:

booking_form_links.setValue(search_activities.data.search_activities.values(`title_internal`).join('\n'))

I want to replicate this code inside of a flow.

However, the Wappler user interface doesn’t present me with the Collections menu from where to choose the .join(). So I’ve just added this to the code created by the flow editor myself, but it gives a syntax error for the .join('\n') part.

What syntax should I have in the join to make this work in a Flow? :thinking:

Try escaping the backslash with another backslash. And if that doesn’t work, try adding another. I remember having a situation where were I needed 4. I’m not sure which variation you might need here.

1 Like

Thank you Ken!

I actually gave up in the end and embedded the code into an on-click… but your advice helped me with a problem there…

Within the .values(), this didn’t work:

+ '\n' +
+ '\\n' +

But this did! :slight_smile: