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.

General Questions /

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

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

Form Required Fields


Go to End


2 Posts   670 Views

Avatar
cornJ

Community Member, 3 Posts

7 April 2013 at 12:05am

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

Forum Moderator, 1899 Posts

8 April 2013 at 12:19am

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

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