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"
Zappify Consumer Report

Zappify 2.0 Review- Picture this: you're sitting o[…]

Zappify Consumer Report

Zappify 2.0 Review- Picture this: you're sitting o[…]

🚨 Verpassen Sie nicht die neueste Handelsplattform[…]

Thanks. Very useful. https://www.solarpanelinstal[…]