How can I include a newline in a mobiscroll.alert message to break to a new line? I’ve tried \n
, \\n
, and <br>
but none of those work.
Newlines in Alert Message
Hello @Joe
Unfortunately, the alert does not support HTML content, only text.
If you need to show formatted text, you can use a popup instead. You can create a list with the errors (ul, li elements) and wrap it in a mobiscroll popup. It looks very similar to the alert, because under the hood the alert uses the popup as well.