We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34926
    • 87 Posts
    I have a plugin using the 'OnDocFormSave' event. It returns a success/failure message with:

    return $modx->error->success($message);


    The message is just a string. I have a couple of questions.

    1. Why does the box not close? It remains open forever until clicked on.
    2. Is it possible to append the existing message? Usually it says 'Save successful' which is pretty important.

    Edit: I've attached an image of the success box to show what I mean.

    Cheers