Page 1 of 1

How to add a second message?

Posted: Thu Sep 12, 2013 5:34 pm
by digitalphotoworld

How could I add a message in a server event?

If I use

CurrentPage()->setSuccessMessage("Please send an Email to support");

It is overwriting the original Message. I just want add a second message with additional informationn for the user.


Re: How to add a second message?

Posted: Thu Sep 12, 2013 6:14 pm
by mobhar

The message should not replace the existing (if any), but the latest message will be appended to the latest. All messages will be displayed as stacked for each session.


Re: How to add a second message?

Posted: Thu Sep 12, 2013 7:53 pm
by digitalphotoworld

In my case the standard-message is not displayed - only my custom message showed up.


Re: How to add a second message?

Posted: Fri Sep 13, 2013 10:01 am
by mobhar

What is the standard message that you meant? Can you give us the example?


Re: How to add a second message?

Posted: Fri Sep 13, 2013 10:46 am
by Webmaster

Use Message_Showing server event (see Server Events and Client Sripts in the help file), e.g.

if ($type == 'success') $msg .= "your second success message";