Questions and discussion about using ProcessMaker: user interface, running cases & functionality
#812421
Hi,

When I call flashMessage function in onload form, I get this error:
"TypeError: window.dynaform is undefined"

How can I show message in onload form?

My code is like this:
Code: Select all
	$("document").ready( function(){
    window.dynaform.flashMessage( {
       duration : 8000,
       emphasisMessage: "ProcessMaker Flash Message Example",
       message:"Hello user, welcome to ProcessMaker Web Version.",
       type : 'success'
    } )
} );
Thanks
#812435
flashMessage() can't be executed at the same time as that DynaForm loads. You need to set a timeout to execute after the DynaForm loads.

Try this:
Code: Select all
function showFlashMsg() {
   window.dynaform.flashMessage( {
       duration : 8000,
       emphasisMessage: "ProcessMaker Flash Message Example",
       message:"Hello user, welcome to ProcessMaker Web Version.",
       type : 'success'
    } )
}
setTimeout(showFlashMsg, 300);
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[…]