Jump to:

2011 Posts in 1436 Topics by 620 members

Form Questions

SilverStripe Forums » Form Questions » Form not clearing values

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

Page: 1
Go to End
Author Topic: 348 Views
  • paradigm
    Community Member
    5 Posts

    Form not clearing values Link to this post


    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?

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.