Create better visible SMS message

Hello,
I have to send a SMS message during logic process in my app, in this message I have to concatenate several text notifications and variables.
I want to split the message into several sections with carrige return in between, meaning like press enter and continue the message such as:
“An error was occur in order 123, material 345
Gas composition of CO2 - 21, O2 - 0.31 in first check
In second check - CO2 - 23, O2 - 0.32”

If you had a way to split those lines by a symbol in the expression text, it would be great or a ready function to do so.

Thank you,
Amit Berku

I’m not sure if you’ve tried this, but you can split strings in the expression editor to be on different lines by holding shift and pressing enter within the expression editor.

So in your case, I would split it into three strings, and at the start of the second and third string, I’d put the starting quote, then press shift+enter and put the text on the next line.

Here’s an example image. You’d hit shift+enter where the red arrows are:

You can add multiple lines as well. I use this for formatting bug report emails.

One thing to note though, is that if you edit that expression again, it will remove those shift+enters and you’ll have to redo them.

Hope this helps.

Hi,
Thank you for your quick help, this will cause the expression to be much more readable but will not change the result in the recieved SMS by the user mobile phone, my suggestion was to make the SMS more readable

Thanks,
Amit Berku

1 Like

Hey @Amit -

Work is actually happening right now around this exactly, how do we better display strings with complex formatting and dynamic data. I shot this thread their way as another example case we need to handle better.

Keep the pain points coming and we will keep knocking em down!
Pete

1 Like

Ah, that makes sense. I haven’t utilized the SMS feature yet, I just knew this helped formatting with Tulip email alerts.