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);

Try the CloudMigration PST Converter to convert […]

In the rapidly evolving world of online sports be[…]

STEPN integrates social networking and games that […]

Cenforce 150 is a medication used to cope with a c[…]