How to add a second message?

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
digitalphotoworld
User
Posts: 416
Location: Nürnberg/Germany

How to add a second message?

Post 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.


mobhar
User
Posts: 11905

Post 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.


digitalphotoworld
User
Posts: 416
Location: Nürnberg/Germany

Post by digitalphotoworld »

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


mobhar
User
Posts: 11905

Post by mobhar »

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


Webmaster
User
Posts: 9438

Post 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";


Post Reply