Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Form Questions

Clearig Form Messages


Reply

3 Posts   435 Views

Avatar
zenmonkey

15 April 2014 at 6:16am Community Member, 528 Posts

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?

Avatar
camfindlay

15 April 2014 at 11:07am Forum Moderator, 149 Posts

Can you provide more information like the form code or how you set the message after the form submission?

Are you using $form->sessionMessage()?

Avatar
zenmonkey

16 April 2014 at 1:35am Community Member, 528 Posts

Right now I'm using

$form->addErrorMessage('Message', 'Message Body' , 'success');

I guess I'll try sessionMessage()