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 Templates


Go to End


2 Posts   581 Views

Avatar
Schippie

Community Member, 38 Posts

23 April 2013 at 12:55am

I have been having a question about form templates. Since i have noticed that trying to overrule them simply by including them in your own theme template files (under the folder forms) doesn't always seem to work. Which is quite strange, since some do work but others don't seem to have any effect. Now is my question am i simply overlooking something really easy that causes some to work and others to be ignored and not used?

Also have already tried the standard /dev/build en flush=1 / =all to no avail .

Avatar
Willr

Forum Moderator, 5523 Posts

3 May 2013 at 9:35pm

You can call setTemplate() to set the form template (http://api.silverstripe.org/3.0/source-class-Form.html#766-775)