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 Templates


Reply


2 Posts   314 Views

Avatar
Schippie

Community Member, 37 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, 5513 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)