Skip to main content

Hi All,

 

I want to have a line break in the toast message.

 

It results in following

 

Is there any syntax to add a line break between the lines?

 

Cheers!

Damith

 

Try <br> ??

 

 

<html>   <body>      <script>         <!--            document.write("Hello World!");            document.write("<br>");            document.write("Demo<br><br>Text!");          //-->      </script>   </body></html>

 

Hello World!

Demo

 

Text!


Thanks for the comment @ShawnBerk,. Unfortunately <br> didn’t work. I then tried the common newline (\n) but it didn’t work as well.

As a solution I used two toast messages 

 and the result looks promising and I could carry with my developments :)

 

But I’d still like to know what’s the syntax for adding a line break in a toast message since it could be useful.

 

Cheers!

Damith


I have registered a request with Idea to enable line breaks in toast messages.

https://community.ifs.com/ideas/toast-message-does-not-break-line-ifs-cloud-47396

 


Reply