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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Form not clearing values

Go to End



Community Member, 5 Posts

26 October 2011 at 12:37am


I have set up a custom form and I have a template to render the form within the "Includes" directory used to add some custom mark-up I need.

My problem is that when using a template file to render the form, all values I enter are being stored in the session and fields are re-populated even when I navigate to another section of the site and back to the form. Errors are also retained.

The only way to stop the issue is to not use a template (which I need to add extra mark-up) or to manually clear the session from my browser.

Has anyone experienced this problem and found a solution?