<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title></title>
		<link>http://www.silverstripe.org/forums/rss</link>
		<atom:link href="http://www.silverstripe.org/forums/rss" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title>Displaying Radio button Options Horizontally</title>
			<link>http://www.silverstripe.org/form-questions/show/23800</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I want the radio buttons to be displayed within a label horizontally like the image attached.&lt;/p&gt;&lt;p&gt;Please help.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Displaying Radio button Options Horizontally | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/23800&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/23800&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 21 May 2013 21:27:56 +1200</pubDate>
			<dc:creator>neerom</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/23800</guid>
		</item>
		
		<item>
			<title>Re: ListboxField unable to set multiple = true</title>
			<link>http://www.silverstripe.org/form-questions/show/23651#post321863</link>
			<description>&lt;p&gt;OK to answer my own question I didn't realise value='', would be so important. Put that in and it works. &lt;/p&gt;&lt;p&gt;My question as to how to set the size to be that of the array still stands though!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: ListboxField unable to set multiple = true | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/23651#post321863&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/23651&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 06 May 2013 13:11:28 +1200</pubDate>
			<dc:creator>MartinPhone</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/23651#post321863</guid>
		</item>
		
		<item>
			<title>ListboxField unable to set multiple = true</title>
			<link>http://www.silverstripe.org/form-questions/show/23651</link>
			<description>&lt;p&gt;I'm feeling very stupid but no matter where I look I can't find what I'm doing wrong. I want to display a  ListboxField that contains all the values I've specified in my listboxArray array. The values are there alright, I just can't set it to multiple select. I only ever get a one-value dropdownlist...&lt;/p&gt;&lt;p&gt;I also would like to know how to set the $size to use the size value returned by getAttributes...&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$fields = parent::getCMSFields();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab(&quot;Root.Content.Main&quot;, new ListboxField(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   $name = &quot;Treatments&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   $title = &quot;All treatments offered by practitioner&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   $source = $listboxArray,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   $size=8,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   $multiple=true&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $fields;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;What am I doing wrong?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: ListboxField unable to set multiple = true | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/23651&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/23651&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 06 May 2013 12:52:55 +1200</pubDate>
			<dc:creator>MartinPhone</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/23651</guid>
		</item>
		
		<item>
			<title>Re: Problem With Creating Custom Form</title>
			<link>http://www.silverstripe.org/form-questions/show/23548#post321816</link>
			<description>&lt;p&gt;Then make sure you read documentation for 2.4 and use 2.4 supported modules. Your NewRegistrationForm class has mostly 3.0 related code so that will need to be changed to something like&lt;/p&gt;&lt;p&gt;public function __construct($controller, $name) { &lt;br /&gt;$fields = new FieldSet( &lt;br /&gt;new EmailField(&quot;Email&quot;), &lt;br /&gt;new PasswordField(&quot;Password&quot;) &lt;br /&gt;); &lt;br /&gt;$actions = new FieldSet(new FormAction('login', 'Login'));&lt;/p&gt;&lt;p&gt;parent::__construct($controller, $name, $fields, $actions); &lt;br /&gt;}&lt;/p&gt;&lt;p&gt;Though I wonder why you're creating a custom login form? You should use MemberAuthenicator and MemberLoginForm for handling security authentication as this will do all the work for you. Both of those classes can be altered via Object::useCustomClass() if you need to customize.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Problem With Creating Custom Form | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/23548#post321816&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/23548&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 03 May 2013 22:48:13 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/23548#post321816</guid>
		</item>
		
		<item>
			<title>Re: Problem With Creating Custom Form</title>
			<link>http://www.silverstripe.org/form-questions/show/23548#post321808</link>
			<description>&lt;p&gt;I'm using 2.4.5&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Problem With Creating Custom Form | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/23548#post321808&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/23548&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 03 May 2013 21:30:00 +1200</pubDate>
			<dc:creator>cachobong</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/23548#post321808</guid>
		</item>
		
		<item>
			<title>Re: Problem With Creating Custom Form</title>
			<link>http://www.silverstripe.org/form-questions/show/23548#post321806</link>
			<description>&lt;p&gt;Are you on 3.0? FieldList was introduced in 3.0.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Problem With Creating Custom Form | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/23548#post321806&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/23548&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 03 May 2013 21:25:59 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/23548#post321806</guid>
		</item>
		
		<item>
			<title>Re: Simplest way to make a form and processor??</title>
			<link>http://www.silverstripe.org/form-questions/show/23590#post321801</link>
			<description>&lt;p&gt;Have you done tutorial 3 (&lt;a href=&quot;http://doc.silverstripe.org/framework/en/tutorials/3-forms&quot; rel=&quot;nofollow&quot;&gt;http://doc.silverstripe.org/framework/en/tutorials/3-forms&lt;/a&gt;)? If covers an awesome simple as possible case of a form and result.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Simplest way to make a form and processor?? | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/23590#post321801&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/23590&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 03 May 2013 21:10:21 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/23590#post321801</guid>
		</item>
		
		<item>
			<title>Simplest way to make a form and processor??</title>
			<link>http://www.silverstripe.org/form-questions/show/23590</link>
			<description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;I was wondering if anyone can help me find the simplest solution to making a form and processor in silverstripe 3?&lt;/p&gt;&lt;p&gt;All the tutorials I seem to find are either centred around email submission forms, or they are overly-complicated integrations into silverstripe framework.&lt;/p&gt;&lt;p&gt;Basically, I have made a search form on a page which is designed to search for properties. The properties are already on a separate database, and all I want is to forward that form search to a processor function which will return a list of properties.&lt;/p&gt;&lt;p&gt;Can anyone tell me the easiest way to do this please? I am not exactly a PHP newbie but I'm still getting used to this MVC framework model.. I'm just used to form.php &amp;gt; processor.php....  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/sad.gif'&gt; &lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Simplest way to make a form and processor?? | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/23590&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/23590&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 30 Apr 2013 22:13:37 +1200</pubDate>
			<dc:creator>alekffs</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/23590</guid>
		</item>
		
		<item>
			<title>Potential bug? DropdownField</title>
			<link>http://www.silverstripe.org/form-questions/show/23580</link>
			<description>&lt;p&gt;I was wondering if anybody else had faced a bug where the population of dropdownfields with data where a setEmptyString had been added caused the first field not to be properly shown? I am asking this since what happens with me is that if i select the highest option and save the form. Upon opening the form again it does not show this value but instead just opts to show the setEmptyString string again. &lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$dropDownData = explode(',',$properties['PropValues']);&lt;br /&gt;                $field = new DropdownField($name, $properties['PropName'], $dropDownData);&lt;br /&gt;                $field-&amp;gt;setEmptyString('--- Selecteer ---');&lt;br /&gt;                return $field;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Potential bug? DropdownField | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/23580&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/23580&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 29 Apr 2013 22:50:30 +1200</pubDate>
			<dc:creator>Schippie</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/23580</guid>
		</item>
		
		<item>
			<title>Can&#39;t insert dynamic value into HiddenField</title>
			<link>http://www.silverstripe.org/form-questions/show/23569</link>
			<description>&lt;p&gt;I'm trying to automatically insert a dynamic value into a HiddenField, but I can't get it working. At the moment I just get 'value=&quot;0&quot;'.&lt;/p&gt;&lt;p&gt;This is a simplified version of what I'm trying to do:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;static $db = array(&lt;br /&gt;    'MyID' =&amp;gt; 'Int'&lt;br /&gt;);&lt;/p&gt;&lt;p&gt;public function getCMSFields()&lt;br /&gt;{&lt;br /&gt;    $fields = parent::getCMSFields();&lt;/p&gt;&lt;p&gt;    $myID = 9999; // In my code this value is set dynamically&lt;/p&gt;&lt;p&gt;    return new FieldList(&lt;br /&gt;        new HiddenField('MyID', 'My ID', $myID)&lt;br /&gt;    );&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;My dynamic value definitely works as I'm able to var_dump() it.&lt;/p&gt;&lt;p&gt;Can anyone explain why this doesn't work?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Can&amp;#39;t insert dynamic value into HiddenField | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/23569&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/23569&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sun, 28 Apr 2013 01:40:15 +1200</pubDate>
			<dc:creator>_Matt</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/23569</guid>
		</item>
		
		<item>
			<title>Problem With Creating Custom Form</title>
			<link>http://www.silverstripe.org/form-questions/show/23548</link>
			<description>&lt;p&gt;I created this custom form and put it in &lt;em&gt;mysite/code&lt;/em&gt; and named it NewRegistrationForm.php&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class NewRegistrationForm extends Form {&lt;/p&gt;&lt;p&gt;    public function __construct($controller, $name) {&lt;br /&gt;        $fields = new FieldList(&lt;br /&gt;            EmailField::create(&quot;Email&quot;),&lt;br /&gt;            PasswordField::create(&quot;Password&quot;)&lt;br /&gt;        );&lt;br /&gt;        $actions = new FieldList(FormAction::create(&quot;login&quot;)-&amp;gt;setTitle(&quot;Log in&quot;));&lt;/p&gt;&lt;p&gt;        parent::__construct($controller, $name, $fields, $actions);&lt;br /&gt;    }&lt;/p&gt;&lt;p&gt;    public function login(array $data, Form $form) {&lt;br /&gt;        // Do something with $data&lt;br /&gt;        Controller::curr()-&amp;gt;redirectBack();&lt;br /&gt;    }&lt;/p&gt;&lt;p&gt;    public function forTemplate() {&lt;br /&gt;        return $this-&amp;gt;renderWith(array($this-&amp;gt;class, 'Form'));&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;When i did a &lt;em&gt;?flush=1&lt;/em&gt;, it did not flush properly and displayed this PHP error:&lt;br /&gt;&lt;strong&gt;Fatal error: Class 'FieldList' not found in &amp;lt;omitted full path here&amp;gt;mysite/code/NewRegistrationForm.php on line 6&lt;/strong&gt; &lt;/p&gt;&lt;p&gt;Am i missing something?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Problem With Creating Custom Form | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/23548&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/23548&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 25 Apr 2013 18:25:22 +1200</pubDate>
			<dc:creator>cachobong</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/23548</guid>
		</item>
		
		<item>
			<title>Re: Custom validation of the form fields on the server side</title>
			<link>http://www.silverstripe.org/form-questions/show/11251?start=8#post321170</link>
			<description>&lt;p&gt;Just something I stumbled upon today in 2.4: instead of using RequiredFields you can use the CustomRequiredFields class that for every fiield lets you add an array, where you can add functionality to check if the value for that field is correct, and the error message to show if it isn't.&lt;/p&gt;&lt;p&gt;The message will be displayed next to the field, just like the regular required field message. I used that today in a form with a double e-mailfield, where the values in both fields should be equal. Works like a charm! Unfortunately, unless I'm mistaken, it doesn't seem to have made it into 3.0...&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Custom validation of the form fields on the server side | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/11251?start=8#post321170&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/11251&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 03 Apr 2013 09:44:12 +1300</pubDate>
			<dc:creator>martimiz</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/11251?start=8#post321170</guid>
		</item>
		
		<item>
			<title>Re: Custom validation of the form fields on the server side</title>
			<link>http://www.silverstripe.org/form-questions/show/11251?start=8#post321166</link>
			<description>&lt;p&gt;I've always thought there had to be an easy way to do this - took a lot of frustrating digging to work out a solution today but finally found one thanks to a hint in an &lt;a href=&quot;http://www.ssbits.com/tutorials/2010/site-members-registering-users-and-allowing-them-to-edit-their-details/&quot; rel=&quot;nofollow&quot;&gt;SSBits post&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;//The function that handles our form submission&lt;br /&gt;function sendForm($data, $form) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Custom validation&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if ($data['FieldName'] == 0) { //Some logical test&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Add error message to field&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$form-&amp;gt;addErrorMessage('FieldName','Something went wrong!','required');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Set form data from submitted values&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Session::set(&quot;FormInfo.&quot;.$form-&amp;gt;FormName().&quot;.data&quot;, $data);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Return back to form&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $this-&amp;gt;redirectBack();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Custom validation of the form fields on the server side | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/11251?start=8#post321166&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/11251&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 03 Apr 2013 07:09:24 +1300</pubDate>
			<dc:creator>JonoM</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/11251?start=8#post321166</guid>
		</item>
		
		<item>
			<title>Re: Table Field not displaying &#39;delete&#39; option for non Administrators</title>
			<link>http://www.silverstripe.org/form-questions/show/15051#post321118</link>
			<description>&lt;p&gt;Hi there,&lt;/p&gt;&lt;p&gt;I was looking for a solution for the same problem via google but unfortunately I couldn't find one.  So I started looking for some answers through the codes found in the core SS framework.  I found out that on line 50 of the TableField.ss template, it shows that &amp;lt;% if Can(delete) %&amp;gt; ... &amp;lt;% end_if %&amp;gt; doesn't get executed because Can(delete) is always null within the context of the loop block (lines 44 to 52). So even if you have set the mode to &quot;delete&quot; explicitly via the setPermissions method, it doesn't work.&lt;/p&gt;&lt;p&gt;So the work around for this issue is to copy the file TableField.ss from the folder &quot;sapphire/templates/&quot; to your themes folder &quot;themes/mysite&quot;.  After you copy the template file, replace line 50 with &amp;lt;% if Top.Can(delete) %&amp;gt; to make sure the Can method refers to the context outside of the loop block.&lt;/p&gt;&lt;p&gt;You can actually directly edit the &quot;TableField.ss&quot; which is part of core SS but its bad practice.  It is ideal to keep your core files untouched by copying templates that needs revisions to your themes folder.  Anyways, the templates found in the themes folder has higher precedence than the ones found in the core SS templates folder.&lt;/p&gt;&lt;p&gt;I hope the above makes sense to anyone who have the same issue.  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Table Field not displaying &amp;#39;delete&amp;#39; option for non Administrators | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/15051#post321118&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/15051&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 30 Mar 2013 13:48:50 +1300</pubDate>
			<dc:creator>sktzoootech</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/15051#post321118</guid>
		</item>
		
		<item>
			<title>Re: Custom validation of the form fields on the server side</title>
			<link>http://www.silverstripe.org/form-questions/show/11251?start=8#post320717</link>
			<description>&lt;p&gt;netefxvalidator is quite handy. &lt;/p&gt;&lt;p&gt;however, i think the best solution is to validate dats just before the write method. if fails, do a redirectBack. It's a shame the form got clear out. Hope wilr got time to find out? not sure how data are passed from one page to another.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Custom validation of the form fields on the server side | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/11251?start=8#post320717&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/11251&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 14 Mar 2013 04:05:25 +1300</pubDate>
			<dc:creator>BenWu</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/11251?start=8#post320717</guid>
		</item>
		
		<item>
			<title>Re: Search form includes error pages</title>
			<link>http://www.silverstripe.org/form-questions/show/23099#post320716</link>
			<description>&lt;p&gt;Temporary workaround (nasty I know, but it works)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function results($data, $form, $request) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$data = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Results' =&amp;gt; $form-&amp;gt;getResults(),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Query' =&amp;gt; $form-&amp;gt;getSearchQuery(),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Title' =&amp;gt; _t('SearchForm.SearchResults', 'Search Results')&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$searchLength = strlen($data[Query]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if($searchLength &amp;gt; 2){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $this-&amp;gt;owner-&amp;gt;customise($data)-&amp;gt;renderWith(array('Page_results', 'Page'));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $this-&amp;gt;owner-&amp;gt;customise($data);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Search form includes error pages | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/23099#post320716&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/23099&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 14 Mar 2013 03:53:06 +1300</pubDate>
			<dc:creator>Puddle</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/23099#post320716</guid>
		</item>
		
		<item>
			<title>Re: Custom validation of the form fields on the server side</title>
			<link>http://www.silverstripe.org/form-questions/show/11251?start=8#post320714</link>
			<description>&lt;p&gt;Benwu, did you check out the netefxvalidator module ?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Custom validation of the form fields on the server side | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/11251?start=8#post320714&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/11251&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 14 Mar 2013 03:44:39 +1300</pubDate>
			<dc:creator>lx</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/11251?start=8#post320714</guid>
		</item>
		
		<item>
			<title>Search form includes error pages</title>
			<link>http://www.silverstripe.org/form-questions/show/23099</link>
			<description>&lt;p&gt;Downloaded the latest SS. Great system and highly flexible. I haven't ran in to any problems uptil now: I implemented a search form, but when I start an empty search it includes everything (including error pages, images etc). Now I filtered out the empties using ContentControllerSearchExtension and filtering &quot;if(!emty($data[Query]))&quot; etc etc. That works, although the &quot;return&quot; statement in the &quot;else&quot; fails. &lt;/p&gt;&lt;p&gt;Anyway: can someone please help me? Unchecking 'Show in search' also does not work.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Search form includes error pages | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/23099&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/23099&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 14 Mar 2013 03:21:26 +1300</pubDate>
			<dc:creator>Puddle</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/23099</guid>
		</item>
		
		<item>
			<title>Re: Custom validation of the form fields on the server side</title>
			<link>http://www.silverstripe.org/form-questions/show/11251#post320694</link>
			<description>&lt;p&gt;Hello Willr,&lt;/p&gt;&lt;p&gt;I don't think what you suggested work. I got the same problem here: after redirectback, the form is clear although the error msg is displayed. &lt;/p&gt;&lt;p&gt;I have to extends the RequiredfieldClass and add it back to the form &lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class MemberProfileValidator extends RequiredFields {&lt;br /&gt;   public function php (){&lt;br /&gt;}&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;and then &lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$validator = new MyRequiredFields('Amount','Terms');&lt;br /&gt;        return new Form($this, 'bidForm', $fl, $actions, $validator);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Custom validation of the form fields on the server side | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/11251#post320694&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/11251&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 13 Mar 2013 12:09:39 +1300</pubDate>
			<dc:creator>BenWu</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/11251#post320694</guid>
		</item>
		
		<item>
			<title>Forms on dataobjects</title>
			<link>http://www.silverstripe.org/form-questions/show/22902</link>
			<description>&lt;p&gt;Hi guys,&lt;/p&gt;&lt;p&gt;Ok i need a bit of help.&lt;/p&gt;&lt;p&gt;I have a data object called SEARCH this lists info about a search (supprise supprise) each SEARCH can have many MISPERS. I have a SEARCHPAGE that lists all the current searches when i select a link it takes me to the rendered page for showing me the SEARCH and the MISPER details. what i would like to do is add a link in the page that allows me to edit the MISPER detail i am looking at.This is where i seem to have confused myself and now cannot see the wood from the trees. &lt;br /&gt;I don't have a huge amount of knowledge on the whole MVC type approach but what i would like to happen is that the dataobject MISPER has a form on it that i can call in the rendered searchpage so far i've got that working but when i try to save said form it doesn't work it doesn't seem to know where to send/process the data. I'm sure this is due to a lack of controller and i'm used to using forms on an actual defined Pages. So i need to work out how to process a form that is on a dataobject.&lt;br /&gt;If i try and process the form on the rendered search page i'm not sure how to pass the correct ID for the MISPER bearing in mind there could be multiple MISPERS per search on that page.&lt;/p&gt;&lt;p&gt;Any help or pointers appreciated.&lt;/p&gt;&lt;p&gt;Mick&lt;/p&gt;&lt;p&gt;Search.php&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class Search extends DataObject implements PermissionProvider  {&lt;/p&gt;&lt;p&gt;  &amp;nbsp;&amp;nbsp;&amp;nbsp;  &lt;br /&gt;   &amp;nbsp;&amp;nbsp;&amp;nbsp;static $db = array(&lt;br /&gt;   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Name' =&amp;gt; 'Varchar(50)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'IncidentNum' =&amp;gt; 'int',&lt;br /&gt;   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'CalloutDate' =&amp;gt; 'SS_Datetime',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Area' =&amp;gt; 'Varchar(250)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Notes' =&amp;gt; 'Text',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'RVGridref' =&amp;gt; 'Varchar(20)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'CurrentSearch' =&amp;gt; 'Boolean',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;   );&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $has_many = array (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'AuditTrails' =&amp;gt; 'AuditTrail',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Locations' =&amp;gt; 'Location',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Contacts' =&amp;gt; 'Contact',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Mispers' =&amp;gt; 'Misper'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;Misper.php&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class Misper extends DataObject  {&lt;/p&gt;&lt;p&gt;   static $db = array(&lt;br /&gt;   &amp;nbsp;&amp;nbsp;&amp;nbsp;'Name' =&amp;gt; 'Varchar(50)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Nickname' =&amp;gt; 'Varchar(50)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'MispNum' =&amp;gt; 'Varchar(5)',&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Description&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Age' =&amp;gt; 'Varchar(20)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Race' =&amp;gt; 'Varchar(50)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Gender' =&amp;gt;  &quot;Enum( array('Male','Female'),'Male')&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Height' =&amp;gt; 'Varchar(10)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Weight' =&amp;gt; 'Varchar(50)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Hair' =&amp;gt; 'Varchar(75)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'FacialHair' =&amp;gt; 'Varchar(50)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'DOB' =&amp;gt;  'Date',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Notes' =&amp;gt; 'Text',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'SearchedBefore' =&amp;gt; 'Boolean',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Clothing&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Shirt' =&amp;gt; 'Varchar(50)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Jumper' =&amp;gt; 'Varchar(50)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Jacket' =&amp;gt; 'Varchar(50)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Headwear' =&amp;gt; 'Varchar(50)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Trousers' =&amp;gt; 'Varchar(50)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Footwear' =&amp;gt; 'Varchar(50)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Gloves' =&amp;gt; 'Varchar(50)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Glasses' =&amp;gt; 'Varchar(50)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Description' =&amp;gt; 'Text',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;   );&lt;/p&gt;&lt;p&gt;   static $has_one = array (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Photo' =&amp;gt; 'Image',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Search' =&amp;gt; 'Search'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;function MisperClothing() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields = new FieldList(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;HiddenField::create('ID', 'aID', $this-&amp;gt;ID),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//HiddenField::create('MemberID', 'aID', $member),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;HeaderField::create('LocationHeader' ,  'Misper Clothing' , 3),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;TextField::create(&quot;Shirt&quot;,&quot;Shirt/Blouse&quot;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;TextField::create(&quot;Jumper&quot;, &quot;Jumper&quot;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;TextField::create(&quot;Jacket&quot;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;TextField::create(&quot;Headwear&quot;),&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;TextField::create(&quot;Trousers&quot;),&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;TextField::create(&quot;Footwear&quot;),&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;TextField::create(&quot;Gloves&quot;),&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;TextField::create(&quot;Glasses&quot;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;);&lt;/p&gt;&lt;p&gt;       &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$actions = FieldList::create(&lt;br /&gt;            FormAction::create(&quot;doMisperClothing&quot;,&quot;Update Mipser&quot;)&lt;br /&gt;               &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$form = Form::create($this, 'MisperClothing', $fields,  $actions);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$editmis = Misper::get()-&amp;gt;filter('ID', $this-&amp;gt;ID)-&amp;gt;First();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$form-&amp;gt;loadDataFrom($editmis-&amp;gt;data());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $form;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;}&lt;br /&gt;function doMisperClothing($data, $form){&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$theID = $_POST[&quot;ID&quot;];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$mis = Misper::get()-&amp;gt;byID($theID);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$form-&amp;gt;saveInto($mis);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$mis-&amp;gt;write();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Director::redirectBack();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;TheSearch.ss&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% with getSearch %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% loop Mispers %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$MisperClothing&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;...&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_loop %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% end_with %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Forms on dataobjects | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22902&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22902&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sun, 03 Mar 2013 10:38:26 +1300</pubDate>
			<dc:creator>cumquat</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22902</guid>
		</item>
		
		<item>
			<title>HowTo display a virtual column inside a GridField unescaped?</title>
			<link>http://www.silverstripe.org/form-questions/show/22901</link>
			<description>&lt;p&gt;Hallo,&lt;br /&gt;I have a DataObject with a virtual column (getPathsAsString()). The return value of this does contain HTML code. When this column is displayed in a GridField, the HTML code will be escaped. Does anyone know how to make the GridField not to escape that column?&lt;/p&gt;&lt;p&gt;I've already tried to set a casting to HTMLText for that field. But that doesn't make any difference.&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: HowTo display a virtual column inside a GridField unescaped? | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22901&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22901&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sun, 03 Mar 2013 09:52:12 +1300</pubDate>
			<dc:creator>wee-man</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22901</guid>
		</item>
		
		<item>
			<title>Re: Fatal Error - Class &#39;Form&#39; not found</title>
			<link>http://www.silverstripe.org/form-questions/show/22821#post320444</link>
			<description>&lt;p&gt;Does the file sapphire/forms/Form.php exist? Make sure you've uploaded the file and if it exists, try a /dev/build to update the manifest.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Fatal Error - Class &amp;#39;Form&amp;#39; not found | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22821#post320444&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22821&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 28 Feb 2013 20:59:44 +1300</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22821#post320444</guid>
		</item>
		
		<item>
			<title>Fatal Error - Class &#39;Form&#39; not found</title>
			<link>http://www.silverstripe.org/form-questions/show/22821</link>
			<description>&lt;p&gt;I am getting this fatal error message&lt;/p&gt;&lt;p&gt;Fatal error: Class 'Form' not found in /home/alsm_admin/alsm.org/www/sapphire/forms/ComplexTableField.php on line 1040&lt;/p&gt;&lt;p&gt;Not sure what the issue is. Please help&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Fatal Error - Class &amp;#39;Form&amp;#39; not found | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22821&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22821&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 27 Feb 2013 06:13:18 +1300</pubDate>
			<dc:creator>rsilvajls</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22821</guid>
		</item>
		
		<item>
			<title>Re: [SOLVED] Required Checkboxfield / Validator</title>
			<link>http://www.silverstripe.org/form-questions/show/19739#post320260</link>
			<description>&lt;p&gt;thanks - worked for me!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [SOLVED] Required Checkboxfield / Validator | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19739#post320260&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19739&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 21 Feb 2013 08:58:01 +1300</pubDate>
			<dc:creator>Futureweb</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19739#post320260</guid>
		</item>
		
		<item>
			<title>Re: Displaying link to file in GridField</title>
			<link>http://www.silverstripe.org/form-questions/show/22684#post320255</link>
			<description>&lt;p&gt;I've gotten a little farther using a new GridField Componant&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class GridFieldDownloadButton implements GridField_ColumnProvider {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function augmentColumns($field, &amp;amp;$cols) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(!in_array('Download', $cols)) $cols[] = 'Download';&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function getColumnsHandled($field) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return array('Download');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function getColumnContent($field, $record, $col) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if($record-&amp;gt;canView()) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$data = new ArrayData(array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Link' =&amp;gt; $record-&amp;gt;Filename&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $data-&amp;gt;renderWith('GridFieldDowloadButton');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function getColumnAttributes($field, $record, $col) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return array('class' =&amp;gt; 'col-link');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function getColumnMetadata($gridField, $col) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return array('title' =&amp;gt; &quot;Link to File&quot;, 'sortable' =&amp;gt; false);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;But the column renders as sortable with a blank Title&lt;/p&gt;&lt;p&gt;Any suggestions?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Displaying link to file in GridField | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22684#post320255&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22684&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 21 Feb 2013 08:02:12 +1300</pubDate>
			<dc:creator>zenmonkey</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22684#post320255</guid>
		</item>
		
		<item>
			<title>Displaying link to file in GridField</title>
			<link>http://www.silverstripe.org/form-questions/show/22684</link>
			<description>&lt;p&gt;I have a GridField diplaying as $has_many realtion with files, I'm tryin to add a column with a link to the file. I thought I'd be able to do it setFieldFormatting but at that level it seems to only have access the page object even though is I remove it, the gridfield does show the $Filename&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function FileForm(){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$config = GridFieldConfig_Base::create();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fileField = new GridField(&quot;Files&quot;, &quot;Documents&quot;, $this-&amp;gt;Files(), $config);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$dataColumns = $fileField-&amp;gt;getConfig()-&amp;gt;getComponentByType('GridFieldDataColumns');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$dataColumns-&amp;gt;setDisplayFields(array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Select' =&amp;gt; 'Select',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Title' =&amp;gt; 'Title',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Description' =&amp;gt; 'Description',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Size' =&amp;gt; 'Size',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'LastEdited' =&amp;gt; 'Changed',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Filename'=&amp;gt; 'Download'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;));&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$dataColumns-&amp;gt;setFieldFormatting(array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;Filename&quot; =&amp;gt; &quot;&amp;lt;a href=/'$Filename/'&amp;gt;Download&amp;lt;/a&amp;gt;&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields = new FieldList (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fileField&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$actions = new FieldList(FormAction::create(&quot;doEmail&quot;)-&amp;gt;setTitle(&quot;Send Files&quot;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return new Form($this, &quot;FileForm&quot;, $fields, $actions);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Displaying link to file in GridField | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22684&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22684&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 20 Feb 2013 09:48:38 +1300</pubDate>
			<dc:creator>zenmonkey</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22684</guid>
		</item>
		
		<item>
			<title>[SOLVED} Checkboxes In GridField</title>
			<link>http://www.silverstripe.org/form-questions/show/22676</link>
			<description>&lt;p&gt;I'm trying to create a form where a user can email selected files from a GridField, I had done something like this back in he day with a TableList Field, but I'm not sure how to augment teh gridfield witha column of checboxes, that the Submit action iterate through&lt;/p&gt;&lt;p&gt;Any guidance would be helpful&lt;/p&gt;&lt;p&gt;EDIT&lt;/p&gt;&lt;p&gt;I figured it out, I created the following GridField Componant:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class GridFieldSelectBox implements GridField_ColumnProvider {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function __construct($useToggle = true, $targetFragment = 'before') {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;targetFragment = $targetFragment;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;useToggle = $useToggle;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function augmentColumns($field, &amp;amp;$cols) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(!in_array('Select', $cols)) $cols[] = 'Select';&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function getColumnsHandled($field) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return array('Select');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function getColumnContent($field, $record, $col) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if($record-&amp;gt;canView()) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$data = new ArrayData(array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'ID' =&amp;gt; $record-&amp;gt;ID&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $data-&amp;gt;renderWith('GridFieldSelectItem');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function getColumnAttributes($field, $record, $col) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return array('class' =&amp;gt; 'col-select');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function getColumnMetadata($gridField, $col) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return array('title' =&amp;gt; &quot;Select&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;and this template to render the checkbox&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;input id=&quot;File_$ID&quot; class=&quot;checkbox&quot; name=&quot;AttachedFiles[]&quot; type=&quot;checkbox&quot; value=&quot;$ID&quot; /&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;I then added to the gridfield on the front end and I can iterate throught $data[&quot;AttachedFiles&quot;] on the form action&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [SOLVED} Checkboxes In GridField | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22676&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22676&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 20 Feb 2013 06:39:52 +1300</pubDate>
			<dc:creator>zenmonkey</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22676</guid>
		</item>
		
		<item>
			<title>Re: Problem with Silverstripe backend fatal error emssage</title>
			<link>http://www.silverstripe.org/form-questions/show/22650#post320186</link>
			<description>&lt;p&gt;stop looking for the item in sapphire now... search the ENTIRE webroot for &quot;class Form&quot; it could be anywhere.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Problem with Silverstripe backend fatal error emssage | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22650#post320186&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22650&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 19 Feb 2013 11:06:29 +1300</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22650#post320186</guid>
		</item>
		
		<item>
			<title>Re: Problem with Silverstripe backend fatal error emssage</title>
			<link>http://www.silverstripe.org/form-questions/show/22650#post320185</link>
			<description>&lt;p&gt;Thank you for all of your help. I have tried replacing the code and the core files of the sapphire framework and still get the same error message. I am sure that you know how frustrating it is to work on someone elses code. I am not even sure if this is the problem with the form. The website is working just fine. One of the contact forms is my problem.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Problem with Silverstripe backend fatal error emssage | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22650#post320185&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22650&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 19 Feb 2013 10:47:23 +1300</pubDate>
			<dc:creator>rsilvajls</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22650#post320185</guid>
		</item>
		
		<item>
			<title>Re: Problem with Silverstripe backend fatal error emssage</title>
			<link>http://www.silverstripe.org/form-questions/show/22650#post320180</link>
			<description>&lt;p&gt;Sorry if &quot;dev/build&quot; doesn't mean anything to you I'll have say RTM!  As that is a big question that is covered by doing the most basic of things...  like the tutorials... it is covered several times in this video... &lt;a href=&quot;http://vimeo.com/16842606&quot; rel=&quot;nofollow&quot;&gt;http://vimeo.com/16842606&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Problem with Silverstripe backend fatal error emssage | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22650#post320180&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22650&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 19 Feb 2013 09:45:22 +1300</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22650#post320180</guid>
		</item>
		
		<item>
			<title>Re: Problem with Silverstripe backend fatal error emssage</title>
			<link>http://www.silverstripe.org/form-questions/show/22650#post320179</link>
			<description>&lt;p&gt;Hi, yes yes its exactly a &quot;saphire&quot; fodler code.&lt;/p&gt;&lt;p&gt;I have tried not touching anything yet.  The worse part is that I am new to silverstripe and this is a site that someone else built alost 5 years ago. So I am trying to figure out what the problem is.&lt;/p&gt;&lt;p&gt;What exactly do you mean by a dev/build can help me sort this out? You mean like original core code that I can use to replace this one?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Problem with Silverstripe backend fatal error emssage | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22650#post320179&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22650&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 19 Feb 2013 09:22:07 +1300</pubDate>
			<dc:creator>rsilvajls</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22650#post320179</guid>
		</item>
		
		<item>
			<title>Re: Problem with Silverstripe backend fatal error emssage</title>
			<link>http://www.silverstripe.org/form-questions/show/22650#post320177</link>
			<description>&lt;p&gt;that looks like silverstipe core code (i.e. from &quot;sapphire&quot; or &quot;framework&quot; folder) - you are looking for it within *your* code as I assume you are not hacking the core code...  if you are you should strongly consider not doing so.&lt;/p&gt;&lt;p&gt;maybe you had it at one time and then it was removed, in which case a dev/build should sort it out&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Problem with Silverstripe backend fatal error emssage | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22650#post320177&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22650&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 19 Feb 2013 09:10:02 +1300</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22650#post320177</guid>
		</item>
		
		<item>
			<title>Re: Problem with Silverstripe backend fatal error emssage</title>
			<link>http://www.silverstripe.org/form-questions/show/22650#post320176</link>
			<description>&lt;p&gt;I did try doing that but on that line there is only a closing bracket. This is toward the end of the entire code. And this all there is. &lt;/p&gt;&lt;p&gt;before that..there is only one time that class form is mentioned at the very beginning&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/**&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Test an ajax submission of this form.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @return SS_HTTPResponse the response object that the handling controller produces.  You can interrogate this in your unit test.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function testAjaxSubmission($action, $data) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$data['ajax'] = 1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $this-&amp;gt;testSubmission($action, $data);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;/**&lt;br /&gt; * @package forms&lt;br /&gt; * @subpackage core&lt;br /&gt; */&lt;br /&gt;class Form_FieldMap extends ViewableData {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;protected $form;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function __construct($form) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;form = $form;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parent::__construct();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/**&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Ensure that all potential method calls get passed to __call(), therefore to dataFieldByName&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function hasMethod($method) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function __call($method, $args = null) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $this-&amp;gt;form-&amp;gt;Fields()-&amp;gt;fieldByName($method);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Problem with Silverstripe backend fatal error emssage | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22650#post320176&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22650&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 19 Feb 2013 08:52:23 +1300</pubDate>
			<dc:creator>rsilvajls</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22650#post320176</guid>
		</item>
		
		<item>
			<title>Re: Problem with Silverstripe backend fatal error emssage</title>
			<link>http://www.silverstripe.org/form-questions/show/22650#post320175</link>
			<description>&lt;p&gt;Sure! Search your code base for &quot;class Form&quot; then remove the duplicate class (or probably rename it to something else)&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Problem with Silverstripe backend fatal error emssage | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22650#post320175&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22650&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 19 Feb 2013 08:36:56 +1300</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22650#post320175</guid>
		</item>
		
		<item>
			<title>Problem with Silverstripe backend fatal error emssage</title>
			<link>http://www.silverstripe.org/form-questions/show/22650</link>
			<description>&lt;p&gt;I got a request from a client to fix a form on the website alsm.org. Apparently they stopped receiving the form inquiries. I logged into their backend and on every page I see this error.&lt;/p&gt;&lt;p&gt;Fatal error: Cannot redeclare class Form in /home/alsm_admin/alsm.org/www/sapphire/forms/Form.php on line 1289&lt;/p&gt;&lt;p&gt;Anyone can help me figure out the problem?&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Problem with Silverstripe backend fatal error emssage | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22650&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22650&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 19 Feb 2013 08:22:40 +1300</pubDate>
			<dc:creator>rsilvajls</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22650</guid>
		</item>
		
		<item>
			<title>Augmenting Validation on Subclassed Custom Forms</title>
			<link>http://www.silverstripe.org/form-questions/show/22648</link>
			<description>&lt;p&gt;I have a cusrtom form, with multiple subclasses forms that I want to augment the Validation porion on the sublcasses, but I'm not sure how to go about it.&lt;/p&gt;&lt;p&gt;The Custom Form&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class LeadCaptureForm extends Form {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function __construct($controller, $name) {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields = new FieldList(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$holder&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$actions = new FieldList(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   FormAction::create(&quot;leadSubmit&quot;)-&amp;gt;setTitle($controller-&amp;gt;FormButton)-&amp;gt;setUseButtonTag(true)-&amp;gt;addExtraClass('button red small point-right')&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$validation = new RequiredFields(array('Email'));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parent::__construct($controller, $name, $fields, $actions, $validation);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;The sublcassed forms look like this &lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class MarketForm extends LeadCaptureForm {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function __construct($controller, $name) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parent::__construct($controller, $name);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$newfields = new CompositeField(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$house,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$homedeet,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$propDeets&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;Fields()-&amp;gt;insertBefore($newfields, &quot;main&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;}&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;On the MarketForm I'd like to add a few of the LeadCaptureForms to the validation as well as the the fields from MarketForm.&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Augmenting Validation on Subclassed Custom Forms | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22648&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22648&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 19 Feb 2013 03:09:40 +1300</pubDate>
			<dc:creator>zenmonkey</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22648</guid>
		</item>
		
		<item>
			<title>Re: Problem with Recaptcha and Google Chrome</title>
			<link>http://www.silverstripe.org/form-questions/show/12821#post320164</link>
			<description>&lt;p&gt;Hi I have also this issue, now I have resolved by following the link below&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://groups.google.com/forum/?fromgroups=#!topic/recaptcha/ZwaZMwTjfFE&quot; rel=&quot;nofollow&quot;&gt;https://groups.google.com/forum/?fromgroups=#!topic/recaptcha/ZwaZMwTjfFE&lt;/a&gt;&lt;/p&gt;&lt;p&gt;hope this helps to you all  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;p&gt;Thanks &amp;amp; Regards,&lt;br /&gt;Agneya&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Problem with Recaptcha and Google Chrome | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/12821#post320164&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/12821&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 19 Feb 2013 01:42:25 +1300</pubDate>
			<dc:creator>agneya</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/12821#post320164</guid>
		</item>
		
		<item>
			<title>Re: Checking checkboxes in a templated form</title>
			<link>http://www.silverstripe.org/form-questions/show/22514#post320086</link>
			<description>&lt;p&gt;If you're using a CheckboxSetField you should be able to call setValue() on the field and pass in your array of defaults. As long as the keys match, they will be selected by default&lt;/p&gt;&lt;p&gt;$field = new CheckboxSetField('Field', 'Title', array('Option1' =&amp;gt; 'Foo', 'Option2' =&amp;gt; 'Bar'));&lt;br /&gt;$field-&amp;gt;setValue(array('Foo' =&amp;gt; true));&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Checking checkboxes in a templated form | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22514#post320086&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22514&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 16 Feb 2013 22:26:02 +1300</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22514#post320086</guid>
		</item>
		
		<item>
			<title>Re: Validate Confirm Email in custom form</title>
			<link>http://www.silverstripe.org/form-questions/show/22542#post320050</link>
			<description>&lt;p&gt;@see &lt;a href=&quot;http://doc.silverstripe.org/framework/en/topics/form-validation&quot; rel=&quot;nofollow&quot;&gt;http://doc.silverstripe.org/framework/en/topics/form-validation&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Either you check both emails in the SendContactForm method and redirect back on error. Or you subclass RequiredFields.&lt;/p&gt;&lt;p&gt;My favorite is subclassing, because the action method should not be called unless the form is properly validated and subclassing works for ModelAdmin too.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Validate Confirm Email in custom form | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22542#post320050&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22542&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 15 Feb 2013 02:40:49 +1300</pubDate>
			<dc:creator>Devlin</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22542#post320050</guid>
		</item>
		
		<item>
			<title>Validate Confirm Email in custom form</title>
			<link>http://www.silverstripe.org/form-questions/show/22542</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;How do you validate a confirm email field in a custom email form? Pasted below is the code that I am using. &lt;/p&gt;&lt;p&gt;function ContactForm() {&lt;br /&gt;        // Create fields   &lt;/p&gt;&lt;p&gt;        $fields = new FieldSet(&lt;br /&gt;            new TextField('Name', 'Name*'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new NumericField('Number', 'Number in Party*'),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new DropdownField('Time', 'Preferred Time', array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'12:30pm' =&amp;gt; '12:30pm',&lt;br /&gt;               '1:00pm' =&amp;gt; '1:00pm',&lt;br /&gt;               '1:30pm' =&amp;gt; '1:30pm'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    )),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;    new TextField('Telephone', 'Contact number*'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new EmailField('Email', 'Email address*'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new EmailField('CEmail', 'Confirm email address*'),&lt;br /&gt;        );&lt;/p&gt;&lt;p&gt;        // Create action&lt;br /&gt;        $actions = new FieldSet(&lt;br /&gt;            new FormAction('SendContactForm', 'Send')&lt;br /&gt;        );&lt;/p&gt;&lt;p&gt;        // Create Validators&lt;br /&gt;        $validator = new RequiredFields('Name', ,'Telephone', 'Email');&lt;/p&gt;&lt;p&gt;        return new Form($this, 'ContactForm', $fields, $actions, $validator);&lt;br /&gt;    }&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Validate Confirm Email in custom form | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22542&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22542&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 14 Feb 2013 22:32:37 +1300</pubDate>
			<dc:creator>Sindhura</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22542</guid>
		</item>
		
		<item>
			<title>Checking checkboxes in a templated form</title>
			<link>http://www.silverstripe.org/form-questions/show/22514</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Working on a site that has a search filter bar with checkboxes. &lt;/p&gt;&lt;p&gt;Try as i might i haven't been able to check the selected checkboxes when the page loads.&lt;/p&gt;&lt;p&gt;The basic idea is that a search page can be set to pre-select certain items (not all). The page will also check any checkboxes chosen by the user when the form reloads.&lt;/p&gt;&lt;p&gt;Any suggestions of how to do this?&lt;/p&gt;&lt;p&gt;Cheers,&lt;/p&gt;&lt;p&gt;T.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Checking checkboxes in a templated form | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22514&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22514&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 13 Feb 2013 05:26:12 +1300</pubDate>
			<dc:creator>NETim</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22514</guid>
		</item>
		
		<item>
			<title>Re: Custom Login SS3</title>
			<link>http://www.silverstripe.org/form-questions/show/22385#post319968</link>
			<description>&lt;p&gt;thank you,&lt;/p&gt;&lt;p&gt;i'll give it a try  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;p&gt;EDIT:&lt;br /&gt;How can I get the Login Form to the Template? :/&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Custom Login SS3 | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22385#post319968&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22385&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 12 Feb 2013 22:33:08 +1300</pubDate>
			<dc:creator>hobenni</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22385#post319968</guid>
		</item>
		
		<item>
			<title>Re: DropdownField not loading with loadDataFrom()</title>
			<link>http://www.silverstripe.org/form-questions/show/22364#post319864</link>
			<description>&lt;p&gt;I ended up switching to Yes/No radio buttons.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: DropdownField not loading with loadDataFrom() | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22364#post319864&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22364&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 09 Feb 2013 06:57:08 +1300</pubDate>
			<dc:creator>allenmccabe</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22364#post319864</guid>
		</item>
		
		<item>
			<title>Re: Custom Login SS3</title>
			<link>http://www.silverstripe.org/form-questions/show/22385#post319811</link>
			<description>&lt;p&gt;You could extend the LoginForm class and create your own LoginForm anyway you like. You could base it off of the MemberLoginForm.php class.&lt;/p&gt;&lt;p&gt;Check out this article here which may help: &lt;a href=&quot;http://tamethebackbutton.blogspot.ca/2009/09/customize-your-own-silverstripe-login.html&quot; rel=&quot;nofollow&quot;&gt;http://tamethebackbutton.blogspot.ca/2009/09/customize-your-own-silverstripe-login.html&lt;/a&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Custom Login SS3 | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22385#post319811&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22385&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 07 Feb 2013 01:14:09 +1300</pubDate>
			<dc:creator>IOTI</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22385#post319811</guid>
		</item>
		
		<item>
			<title>Custom Login SS3</title>
			<link>http://www.silverstripe.org/form-questions/show/22385</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I'm trying to create a custom login to include on my homepage.&lt;/p&gt;&lt;p&gt;At first i used $Loginform and the Form.ss form framework/templates/Includes but i want to know if there's a different way or a module for SS3. &lt;/p&gt;&lt;p&gt;I want to customize it, that it looks like the attachment.&lt;/p&gt;&lt;p&gt;Can anyone help me?&lt;/p&gt;&lt;p&gt;Benni&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Custom Login SS3 | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22385&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22385&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 06 Feb 2013 23:04:28 +1300</pubDate>
			<dc:creator>hobenni</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22385</guid>
		</item>
		
		<item>
			<title>DropdownField not loading with loadDataFrom()</title>
			<link>http://www.silverstripe.org/form-questions/show/22364</link>
			<description>&lt;p&gt;I have a custom form for updating a database row. I pre-populate the field values using $form-&amp;gt;loadDataFrom( $data ), where $data is an associative array of the field values.&lt;/p&gt;&lt;p&gt;This works great for all but the DropdownField; nothing is set as &quot;selected&quot;.&lt;/p&gt;&lt;p&gt;Relevant code:&lt;/p&gt;&lt;p&gt;On the form subclass:&lt;/p&gt;&lt;p&gt;$fields = FieldList::create(&lt;br /&gt;    ...&lt;br /&gt;    DropdownField::create('subscribed')-&amp;gt;setSource(array('1' =&amp;gt; 'Yes', '0' =&amp;gt; 'No'))-&amp;gt;setAttribute('class', 'default')&lt;br /&gt;);&lt;/p&gt;&lt;p&gt;In the controller:&lt;br /&gt;$form-&amp;gt;loadDataFrom($data);&lt;/p&gt;&lt;p&gt;I have verified that $data is a properly formatted associative array (after all, every other field gets the appropriate value).&lt;/p&gt;&lt;p&gt;The dropdown field will not set a selected value.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: DropdownField not loading with loadDataFrom() | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22364&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22364&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 05 Feb 2013 08:00:24 +1300</pubDate>
			<dc:creator>allenmccabe</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22364</guid>
		</item>
		
		<item>
			<title>Custom Form Insertion at home page</title>
			<link>http://www.silverstripe.org/form-questions/show/22347</link>
			<description>&lt;p&gt;Hello All,&lt;br /&gt;I have created one sample custom form at home page, and also i created table for it, by default the data is going to member's table, i want to insert data into custom table ??&lt;/p&gt;&lt;p&gt;Thanks in advance&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Custom Form Insertion at home page | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22347&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22347&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 04 Feb 2013 19:24:12 +1300</pubDate>
			<dc:creator>chinna</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22347</guid>
		</item>
		
		<item>
			<title>HTML form validation</title>
			<link>http://www.silverstripe.org/form-questions/show/22254</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Can anyone help my to get my html input types to validate? &lt;/p&gt;&lt;p&gt;I want to use the jquery.validation.js file in the framework.&lt;/p&gt;&lt;p&gt;But what do I have to put in my input types and in my jquery to get it working?&lt;br /&gt;The form takes five steps until the end. I need to say which input types are required &lt;br /&gt;en which input they may handle.&lt;/p&gt;&lt;p&gt;I will attach al my file so your can see.&lt;/p&gt;&lt;p&gt;Gr. Suzanne&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: HTML form validation | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22254&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22254&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 01 Feb 2013 22:57:18 +1300</pubDate>
			<dc:creator>Suzanne</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22254</guid>
		</item>
		
		<item>
			<title>How can I change limit of page ?</title>
			<link>http://www.silverstripe.org/form-questions/show/22253</link>
			<description>&lt;p&gt;Dear All,&lt;/p&gt;&lt;p&gt;On the admin I add a lot of page but It only shows 6 pages on front end .&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.neutrog.com.au/news/&quot; rel=&quot;nofollow&quot;&gt;http://www.neutrog.com.au/news/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;How can I change this limit on code&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: How can I change limit of page ? | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22253&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22253&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 01 Feb 2013 22:30:54 +1300</pubDate>
			<dc:creator>alex123</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22253</guid>
		</item>
		
		<item>
			<title>Search routine includes html markup?</title>
			<link>http://www.silverstripe.org/form-questions/show/22238</link>
			<description>&lt;p&gt;The default search behaviour seems to perform a match of the search against say the &quot;Content&quot; field;&lt;br /&gt;but the content field would contain html markup as well.&lt;/p&gt;&lt;p&gt;Thus this results in unexpected results when you search for terms such as &quot;href&quot; or &quot;strong&quot; where results are returned even when their meaningful content does not actually contain those terms.&lt;/p&gt;&lt;p&gt;Is there a way to avoid this?&lt;/p&gt;&lt;p&gt;I am thinking of creating a redundant &quot;SearchContent&quot; field in SiteTree and using onAfterWrite to duplicate the content into this field with tags stripped, and perform search on this field instead; is there another way? (Creating extra fields for each searchable dataobject  will be a pita).&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Search routine includes html markup? | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/22238&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/22238&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 31 Jan 2013 10:57:14 +1300</pubDate>
			<dc:creator>cwchong</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/22238</guid>
		</item>
		

	</channel>
</rss>