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   443 Views

Avatar
zenmonkey

Community Member, 528 Posts

15 April 2014 at 6:16am

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

Forum Moderator, 157 Posts

15 April 2014 at 11:07am

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

Community Member, 528 Posts

16 April 2014 at 1:35am

Right now I'm using

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

I guess I'll try sessionMessage()