Questions and discussion about using ProcessMaker: user interface, running cases & functionality
#812412
flashMessage() is defined in workflow/public_html/lib/pmdynaform/build/js/PMDynaform.js: 2241
but I can't find where in the code it converts <br> into <br> (HTML entities). This is what prevents you from inserting line breaks.

What you can do is change its template file workflow/public_html/lib/pmdynaform/build/pmdynaform.html: 1539
from:
Code: Select all
<script type="text/template" id="tpl-flashMessage">
    <div class='alert alert-<%-type%> fade in'>
        <%if(closable){%>
            <a href='#' class='close' data-dismiss='alert'></a>
        <%}%>
        <strong><%-emphasisMessage%></strong>
        <%-message%>
    </div>
</script> 
To:
Code: Select all
<script type="text/template" id="tpl-flashMessage">
    <div class='alert alert-<%-type%> fade in'>
        <%if(closable){%>
            <a href='#' class='close' data-dismiss='alert'></a>
        <%}%>
        <strong><%-emphasisMessage%></strong><br><br>
        <%-message%>
    </div>
</script> 
#812413
Oh, I see the problem, underscore.js escapes the HTML if you reference the variable as <%-variable%>. You need to reference it as <%=variable%> to prevent escaping of the HTML.

Change the code to:
Code: Select all
<script type="text/template" id="tpl-flashMessage">
    <div class='alert alert-<%-type%> fade in'>
        <%if(closable){%>
            <a href='#' class='close' data-dismiss='alert'></a>
        <%}%>
        <strong><%=emphasisMessage%></strong>
        <%=message%>
    </div>
</script>
Now it should be possible to use: "test<br><br>test"
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]