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'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.

Form Questions /

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

Form not clearing values


Go to End


993 Views

Avatar
paradigm

Community Member, 5 Posts

26 October 2011 at 12:37am

Hi,

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?