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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Form Required Fields


Reply

2 Posts   288 Views

Avatar
cornJ

7 April 2013 at 12:05am Community Member, 3 Posts

Hello there.

Topic: Forms
Problem: If validation fails all FormFields are empty.
I Want the old (even thogh faild to validate) values to be filled in, so that a user does not have to reenter it.

Before you flame me: I did search docs,forum and google, but there were no accurate results within the first 30/40 results.
Suggestion: I think what I want is not so odd. You may consider to mention that in the Form-Topic of the doc section.

Thanks & best regards,
CornJ

Avatar
swaiba

8 April 2013 at 12:19am Forum Moderator, 1796 Posts

I think you are missing the "redirectBack", see this example..

http://www.silverstripe.org/form-questions/show/11251?start=8#post321166