I has a custom form that I return a message to when the submission succeds, how to do I clear that message on subsequent page load so its not always there?
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Can you provide more information like the form code or how you set the message after the form submission?
Are you using $form->sessionMessage()?
Right now I'm using
$form->addErrorMessage('Message', 'Message Body' , 'success');
I guess I'll try sessionMessage()