<?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>Re: FormField for editing has_many relationships</title>
			<link>http://www.silverstripe.org/form-questions/show/19138#post311606</link>
			<description>&lt;p&gt;so it does!&lt;/p&gt;&lt;p&gt;&lt;del&gt;I'd forgotten that - in that case - &lt;em&gt;if you get a working example&lt;/em&gt; please post it asap &lt;/del&gt;&lt;/p&gt;&lt;p&gt;couldn't wait  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt;  - here is my test for the many many sorting - works great trick is to add a field to the many many relationship...&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;?php&lt;/p&gt;&lt;p&gt;class ObjectA extends DataObject {&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',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Description' =&amp;gt; 'Varchar(255)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $has_one = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'ObjectB' =&amp;gt; 'ObjectB'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&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;'ObjectC' =&amp;gt; 'ObjectC'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $many_many = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'ObjectD' =&amp;gt; 'ObjectD'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $many_many_extraFields = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'ObjectD' =&amp;gt; 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;'Sort' =&amp;gt; 'Int'&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;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function getCMSFields() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields = parent::getCMSFields();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;replaceField('ObjectB',new HasOnePickerField($this,'ObjectB'));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;replaceField('ObjectC',new HasManyPickerField($this,'ObjectC'));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;replaceField('ObjectD',new ManyManyPickerField($this,'ObjectD','',array('Sortable'=&amp;gt;true)));&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $fields;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;class ObjectB extends DataObject {&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',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Description' =&amp;gt; 'Varchar(255)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $has_one = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'ObjectA' =&amp;gt; 'ObjectA'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;class ObjectC extends DataObject {&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',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Description' =&amp;gt; 'Varchar(255)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $has_one = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'ObjectA' =&amp;gt; 'ObjectA'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;class ObjectD extends DataObject {&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',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Description' =&amp;gt; 'Varchar(255)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $belongs_many_many = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'ObjectA' =&amp;gt; 'ObjectA'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: FormField for editing has_many relationships &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19138#post311606&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19138&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 04 Feb 2012 02:59:32 +1300</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19138#post311606</guid>
		</item>
		
		<item>
			<title>Re: FormField for editing has_many relationships</title>
			<link>http://www.silverstripe.org/form-questions/show/19138#post311604</link>
			<description>&lt;p&gt;Actually, it looks like it already support sorting:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/ajshort/silverstripe-itemsetfield/blob/master/docs/en/index.md&quot; rel=&quot;nofollow&quot;&gt;https://github.com/ajshort/silverstripe-itemsetfield/blob/master/docs/en/index.md&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I haven't tried the sorting yet, but this looks very promising!&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: FormField for editing has_many relationships &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19138#post311604&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19138&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 04 Feb 2012 02:49:26 +1300</pubDate>
			<dc:creator>jthomerson</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19138#post311604</guid>
		</item>
		
		<item>
			<title>Re: FormField for editing has_many relationships</title>
			<link>http://www.silverstripe.org/form-questions/show/19138#post311601</link>
			<description>&lt;p&gt;Very welcome!&lt;/p&gt;&lt;p&gt;If you add the drag drop reorder with this I would be eternally grateful if you'd report back with your enhancments  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: FormField for editing has_many relationships &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19138#post311601&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19138&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 04 Feb 2012 02:26:32 +1300</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19138#post311601</guid>
		</item>
		
		<item>
			<title>Re: FormField for editing has_many relationships</title>
			<link>http://www.silverstripe.org/form-questions/show/19138#post311599</link>
			<description>&lt;p&gt;Very cool.  Thanks for the tip.  I may need to add some ability to order (probably drag and drop with jQuery), but this gets me leaps and bounds towards what I need!&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: FormField for editing has_many relationships &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19138#post311599&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19138&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 04 Feb 2012 02:24:08 +1300</pubDate>
			<dc:creator>jthomerson</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19138#post311599</guid>
		</item>
		
		<item>
			<title>Re: FormField for editing has_many relationships</title>
			<link>http://www.silverstripe.org/form-questions/show/19138#post311592</link>
			<description>&lt;p&gt;Have you tried... &lt;a href=&quot;https://github.com/ajshort/silverstripe-itemsetfield&quot; rel=&quot;nofollow&quot;&gt;https://github.com/ajshort/silverstripe-itemsetfield&lt;/a&gt; ?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: FormField for editing has_many relationships &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19138#post311592&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19138&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 03 Feb 2012 22:52:09 +1300</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19138#post311592</guid>
		</item>
		
		<item>
			<title>FormField for editing has_many relationships</title>
			<link>http://www.silverstripe.org/form-questions/show/19138</link>
			<description>&lt;p&gt;I have a data model that basically boils down to:&lt;/p&gt;&lt;p&gt;&lt;ul&gt;&lt;li&gt;Page has_many Views&lt;br /&gt;&lt;/li&gt;&lt;li&gt;View has_many PageReferences&lt;br /&gt;&lt;/li&gt;&lt;li&gt;PageReference has_one Page and has an integer &quot;Sort&quot;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/p&gt;&lt;p&gt;I've played with a couple of the *ComplexTableField form field options.  They are really nice for some things, but not what I need.  I need something that will allow management of the &quot;View has_many PageReferences&quot; and &quot;PageReference has_one Page&quot; relationships.  At its core, I need something that will:&lt;/p&gt;&lt;p&gt;&lt;ul&gt;&lt;li&gt;List all of the current values contained in a has_many relationship (list all the page references a view has)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Allow re-ordering of those values (pagereferences in this case)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Allow deletion of some of the values in the list&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Allow the addition of a new value by a popup (in this case, a popup that would allow you to select a page from your SiteTree)&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/p&gt;&lt;p&gt;Of course, that's only the View-&amp;gt;PageReference relationship.  I'll also need a very similar form control for listing the views a page contains and allowing you to add a new one.  But, I think if I can solve the problem above, this secondary problem is so similar that it will be no problem.&lt;/p&gt;&lt;p&gt;I figure that I'll need to create a custom FormField for this.  My question is: where should I start?  What should it extend?  And do you have any documentation on what to do / to avoid when making a FormField?&lt;/p&gt;&lt;p&gt;I've attached a mockup of roughly what I want this tab to look like.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: FormField for editing has_many relationships &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19138&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19138&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 03 Feb 2012 18:02:50 +1300</pubDate>
			<dc:creator>jthomerson</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19138</guid>
		</item>
		
		<item>
			<title>Re: How to loop through a CheckboxsetField?</title>
			<link>http://www.silverstripe.org/form-questions/show/19084#post311536</link>
			<description>&lt;p&gt;As I read this, you want to create some sort of nested CheckBoxSetField where the 'inner' options are represented by dropdown fields. If that's what you mean, I don't think it can be done. &lt;/p&gt;&lt;p&gt;Can you give us an idea of the relations involved?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: How to loop through a CheckboxsetField? &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19084#post311536&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19084&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 01 Feb 2012 06:33:09 +1300</pubDate>
			<dc:creator>martimiz</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19084#post311536</guid>
		</item>
		
		<item>
			<title>Re: Limit Characters Displayed in ComplexTableField</title>
			<link>http://www.silverstripe.org/form-questions/show/19115#post311535</link>
			<description>&lt;p&gt;One simple way to do is to create a function in your DataObject that returns the truncated text, then add the name of that function to the summary fields, like&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;static $summary_fields = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Name',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Title',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'TruncatedCondent'&lt;br /&gt;);&lt;/p&gt;&lt;p&gt;function TruncatedContent() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// return $this-&amp;gt;Content, truncated in some way&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Limit Characters Displayed in ComplexTableField &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19115#post311535&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19115&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 01 Feb 2012 06:23:33 +1300</pubDate>
			<dc:creator>martimiz</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19115#post311535</guid>
		</item>
		
		<item>
			<title>Limit Characters Displayed in ComplexTableField</title>
			<link>http://www.silverstripe.org/form-questions/show/19115</link>
			<description>&lt;p&gt;Hi, I'd like to limit the number of characters that are displayed in a ComplexTableField (in CMS) while keeping the underlying data in tact for display in the popup.  Any thoughts?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Limit Characters Displayed in ComplexTableField &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19115&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19115&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 31 Jan 2012 13:01:01 +1300</pubDate>
			<dc:creator>Marko</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19115</guid>
		</item>
		
		<item>
			<title>Re: How to loop through a CheckboxsetField?</title>
			<link>http://www.silverstripe.org/form-questions/show/19084#post311474</link>
			<description>&lt;p&gt;Anybody? All I want is to be able to loop through the CheckboxsetField so I can lay them out in different ways.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: How to loop through a CheckboxsetField? &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19084#post311474&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19084&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 28 Jan 2012 10:07:52 +1300</pubDate>
			<dc:creator>_Vince</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19084#post311474</guid>
		</item>
		
		<item>
			<title>Re: Custom Form Validation Error in SESSION</title>
			<link>http://www.silverstripe.org/form-questions/show/19055#post311468</link>
			<description>&lt;p&gt;ok&lt;br /&gt;i rendered the errors manually from FormName.errors[]&lt;br /&gt;that works fine&lt;/p&gt;&lt;p&gt;thanks both&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Custom Form Validation Error in SESSION &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19055#post311468&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19055&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 28 Jan 2012 04:14:13 +1300</pubDate>
			<dc:creator>ivo</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19055#post311468</guid>
		</item>
		
		<item>
			<title>Re: Custom Form Validation Error in SESSION</title>
			<link>http://www.silverstripe.org/form-questions/show/19055#post311423</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;if I get you right you are looking for this:&lt;br /&gt;&lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19073#post311384#post311384&quot; rel=&quot;nofollow&quot;&gt;http://www.silverstripe.org/form-questions/show/19073#post311384#post311384&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Regards&lt;br /&gt;SF&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Custom Form Validation Error in SESSION &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19055#post311423&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19055&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 26 Jan 2012 22:58:03 +1300</pubDate>
			<dc:creator>Silverfish</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19055#post311423</guid>
		</item>
		
		<item>
			<title>Re: Custom Form Validation Error in SESSION</title>
			<link>http://www.silverstripe.org/form-questions/show/19055#post311405</link>
			<description>&lt;p&gt;Alright&lt;br /&gt;I had expected them in FormName.formError, thou.&lt;br /&gt;I thouht the Validator of the form would place them there automatically.&lt;/p&gt;&lt;p&gt;So they could be rendered as usual:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% if Message %&amp;gt; &lt;br /&gt;&amp;lt;p id=&quot;{$FormName}_error&quot; class=&quot;message $MessageType&quot;&amp;gt;$Message&amp;lt;/p&amp;gt; &lt;br /&gt;&amp;lt;% else %&amp;gt; &lt;br /&gt;&amp;lt;p id=&quot;{$FormName}_error&quot; class=&quot;message $MessageType&quot; style=&quot;display: none;&quot;&amp;gt;&amp;lt;/p&amp;gt; &lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;What do i have to do to get them there?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Custom Form Validation Error in SESSION &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19055#post311405&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19055&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 26 Jan 2012 05:01:38 +1300</pubDate>
			<dc:creator>ivo</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19055#post311405</guid>
		</item>
		
		<item>
			<title>Re: SearchContext filters and WithinRangeFilter</title>
			<link>http://www.silverstripe.org/form-questions/show/11685#post311398</link>
			<description>&lt;p&gt;I haven't used the WithinRangeFilter before but by looking at the code,  sapphire/search/filters/WithinRangeFilter.php you will probably need to do something like:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;//setup within range filter 200 - 500&lt;br /&gt;$within_range_filter = new WithinRangeFilter('SQFTRangeLow');&lt;br /&gt;$within_range_filter-&amp;gt;setMin(200);&lt;br /&gt;$within_range_filter-&amp;gt;setMax(500);&lt;/p&gt;&lt;p&gt;//then perhaps do something like this. &lt;br /&gt;$filters = array(&lt;br /&gt;  'SQFTRangeLow' =&amp;gt; $within_range_filter&lt;br /&gt;);&lt;/p&gt;&lt;p&gt;return new SearchContext(&lt;br /&gt;  $this-&amp;gt;class,&lt;br /&gt;  $fields,&lt;br /&gt;  $filters&lt;br /&gt;);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: SearchContext filters and WithinRangeFilter &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/11685#post311398&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/11685&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 25 Jan 2012 19:51:06 +1300</pubDate>
			<dc:creator>chillburn.com.au</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/11685#post311398</guid>
		</item>
		
		<item>
			<title>How to loop through a CheckboxsetField?</title>
			<link>http://www.silverstripe.org/form-questions/show/19084</link>
			<description>&lt;p&gt;I have a table of skills and a table of EmployeeSkills. to display this on a form, I use a CheckboxsetField and it works great.&lt;/p&gt;&lt;p&gt;But now, I am being asked to add a dropdown list of skill levels for each Employee Skill. &lt;/p&gt;&lt;p&gt;So what I want to do is have &lt;br /&gt;a checkbox and a dropdown list next to it&lt;br /&gt;a checkbox and a dropdown list next to it &lt;br /&gt;a checkbox and a dropdown list next to it &lt;/p&gt;&lt;p&gt;and so on. &lt;/p&gt;&lt;p&gt;Is there any way to say something like&lt;/p&gt;&lt;p&gt;&amp;lt;% control MyCheckboxSetField %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div class=&quot;field checkbox&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;label class=&quot;left&quot; for=&quot;{$FormName}_SkillName&quot;&amp;gt;Skill Name&amp;lt;/label&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div class=&quot;middleColumn&quot;&amp;gt;&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;$dataFieldByName(Current Iteration Of The Checkbox List)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div class=&quot;field list&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;label class=&quot;left&quot; for=&quot;{$FormName}_SkillName&quot;&amp;gt;Skill level&amp;lt;/label&amp;gt;&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;% end_control %&amp;gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: How to loop through a CheckboxsetField? &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19084&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19084&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 25 Jan 2012 10:55:39 +1300</pubDate>
			<dc:creator>_Vince</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19084</guid>
		</item>
		
		<item>
			<title>Re: [solved] Showing Form Validation Messages above the form (instead of inline)</title>
			<link>http://www.silverstripe.org/form-questions/show/19073#post311384</link>
			<description>&lt;p&gt;Hi Delvin,&lt;/p&gt;&lt;p&gt;since I also have to do some custom validation I chose the 2nd, subclassing method. Works perfect!&lt;/p&gt;&lt;p&gt;Thanks a lot for saving the rest of my Day!  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;p&gt;Regards&lt;br /&gt;SF&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: [solved] Showing Form Validation Messages above the form (instead of inline) &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19073#post311384&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19073&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 25 Jan 2012 04:18:21 +1300</pubDate>
			<dc:creator>Silverfish</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19073#post311384</guid>
		</item>
		
		<item>
			<title>Re: [solved] Showing Form Validation Messages above the form (instead of inline)</title>
			<link>http://www.silverstripe.org/form-questions/show/19073#post311380</link>
			<description>&lt;p&gt;The form won't call the submit method unless all required fields are correct validated. To do what you want the 'simple way', you can just parse the error messages in your page controller and call it via your template.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class FormPage extends Page{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function showFormErrors() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$errors = Session::get('FormInfo.FormName.errors');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$_errors = array();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if( !empty($errors) &amp;amp;&amp;amp; is_array($errors) ) foreach($errors AS $error) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$_errors[] = $error['message'];&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;Session::clear('FormInfo.FormName.errors');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return !empty($_errors) ? &quot;&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;&quot;.implode(&quot;&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;&quot;, $_errors).&quot;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&quot; : false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Or if have a form subclass you can add your own validation method.&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class MyForm extends Form{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function validate() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parent::validate();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if ($this-&amp;gt;validator) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$errors = $this-&amp;gt;validator-&amp;gt;getErrors();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$data = $this-&amp;gt;getData();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// edit&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$_errors = array();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if( !empty($errors) &amp;amp;&amp;amp; is_array($errors) ) foreach($errors AS $error) {&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;$_errors[] = $error['message'];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;if( !empty($_errors) ) {&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;$this-&amp;gt;sessionMessage(implode(', ', $_errors), 'bad');&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;return false;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;* Code not tested&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: [solved] Showing Form Validation Messages above the form (instead of inline) &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19073#post311380&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19073&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 25 Jan 2012 01:41:26 +1300</pubDate>
			<dc:creator>Devlin</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19073#post311380</guid>
		</item>
		
		<item>
			<title>Re: [solved] Showing Form Validation Messages above the form (instead of inline)</title>
			<link>http://www.silverstripe.org/form-questions/show/19073#post311377</link>
			<description>&lt;p&gt;Thx Devlin 4 your answer.&lt;/p&gt;&lt;p&gt;Ok, so I know how to add a message to the form. Now have to look for a way to only add it if validation of the form failed and to get all the (custom?) error messages (from requiredFields?) in there.&lt;/p&gt;&lt;p&gt;I am searching the docs and the net for hors for something like&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;if ( $form-&amp;gt;is_valid() ) {&lt;br /&gt;foreach($form-&amp;gt;RequriedFields() as $no =&amp;gt; $field) {&lt;br /&gt;messages[] = $field-&amp;gt;errorMessage;&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;without any results.&lt;/p&gt;&lt;p&gt;Seems like i have to do the whole validation myself / customized just to get the errore messages somewhere else? &lt;/p&gt;&lt;p&gt;Still grateful for any hints  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;p&gt;Regads&lt;br /&gt;S.F.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: [solved] Showing Form Validation Messages above the form (instead of inline) &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19073#post311377&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19073&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 25 Jan 2012 00:55:16 +1300</pubDate>
			<dc:creator>Silverfish</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19073#post311377</guid>
		</item>
		
		<item>
			<title>Re: [solved] Showing Form Validation Messages above the form (instead of inline)</title>
			<link>http://www.silverstripe.org/form-questions/show/19073#post311360</link>
			<description>&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$form-&amp;gt;sessionMessage('hello world', 'good');&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Edit: If you're thinking of disabling js validation, otherwise you'll have some js coding to do, you can get all validation errors from $form-&amp;gt;validator-&amp;gt;getErrors().&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: [solved] Showing Form Validation Messages above the form (instead of inline) &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19073#post311360&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19073&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 24 Jan 2012 09:26:29 +1300</pubDate>
			<dc:creator>Devlin</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19073#post311360</guid>
		</item>
		
		<item>
			<title>Re: Custom Form Validation Error in SESSION</title>
			<link>http://www.silverstripe.org/form-questions/show/19055#post311359</link>
			<description>&lt;p&gt;Semantics. &lt;br /&gt;FormName.formError is the message of the form and FormName.errors[] are the messages of the fields.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Custom Form Validation Error in SESSION &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19055#post311359&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19055&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 24 Jan 2012 09:24:55 +1300</pubDate>
			<dc:creator>Devlin</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19055#post311359</guid>
		</item>
		
		<item>
			<title>[solved] Showing Form Validation Messages above the form (instead of inline)</title>
			<link>http://www.silverstripe.org/form-questions/show/19073</link>
			<description>&lt;p&gt;Hi There,&lt;/p&gt;&lt;p&gt;I would like to have a form that displays all validation messages in one box above the form instead of every message inline under their form-field.&lt;br /&gt;I saw that silverstripe even generates a &lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;p id=&quot;Form_TestForm_error&quot; class=&quot;message &quot; style=&quot;&quot;&amp;gt;&amp;lt;/p&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;paragraph at top of the form, so I wonder if there's a (simple) way to display messages there?&lt;/p&gt;&lt;p&gt;Thanks for any hint!&lt;/p&gt;&lt;p&gt;Regards&lt;br /&gt;S.F.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: [solved] Showing Form Validation Messages above the form (instead of inline) &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19073&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19073&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 24 Jan 2012 05:11:27 +1300</pubDate>
			<dc:creator>Silverfish</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19073</guid>
		</item>
		
		<item>
			<title>Re: Why is field layout hard-wired in FormField.php and not in a template?</title>
			<link>http://www.silverstripe.org/form-questions/show/13333#post311338</link>
			<description>&lt;p&gt;I would also like to know this have tried to subclass FormField and overload the FieldHolder so I can render the form fields with custom markup.&lt;/p&gt;&lt;p&gt;I created a class CustomFormField extends FormField added it it to config but get error:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;Fatal error: Object::add_extension() - Extension &quot;CustomFormField&quot; is not a subclass of Extension&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Was looking at &lt;a href=&quot;http://api.silverstripe.org/2.4/forms/transformations/FormTransformation.html&quot; rel=&quot;nofollow&quot;&gt;FormTransformation&lt;/a&gt; is there an easier way I am missing here?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Why is field layout hard-wired in FormField.php and not in a template? &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/13333#post311338&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/13333&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 23 Jan 2012 16:05:29 +1300</pubDate>
			<dc:creator>CodeGuerrilla </dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/13333#post311338</guid>
		</item>
		
		<item>
			<title>Re: MultiSelect with Custom / Filtered Source</title>
			<link>http://www.silverstripe.org/form-questions/show/18958#post311299</link>
			<description>&lt;p&gt;Ok, in case someone else is looking for a solution:&lt;/p&gt;&lt;p&gt;I could not figure out how to solve this with a TreeMultiselectField so I ended up using the CheckboxSetField, because it's constructor takes the selected values as an argument:&lt;/p&gt;&lt;p&gt; &lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;// get the IDs of all Pages with this root: &lt;br /&gt;$root = $this-&amp;gt;Level(1); &lt;br /&gt;$ids = $root-&amp;gt;getDescendantIDList();&lt;/p&gt;&lt;p&gt;// get all ReferencePages that are in that idlist and convert to dropdown map: &lt;br /&gt;$query = '(&quot;SiteTree&quot;.&quot;ID&quot; = ' . implode(' OR &quot;SiteTree&quot;.&quot;ID&quot; = ', $ids) .')'; &lt;br /&gt;$items = DataObject::get(&quot;ReferencePage&quot;, $query)-&amp;gt;map('ID', 'Title');&lt;/p&gt;&lt;p&gt;// create field: &lt;br /&gt;$fields-&amp;gt;addFieldToTab( 'Root.Content.References', new CheckboxSetField( $name = &quot;References&quot;, $title = &quot;References&quot;,  $source = $items , $value = $this-&amp;gt;References())) ;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;just a little update:&lt;br /&gt;replaced:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$items = DataObject::get(&quot;ReferencePage&quot;, $query)-&amp;gt;map('ID', 'Title');&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;with:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$items = DataObject::get(&quot;ReferencePage&quot;, $query);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;because otherwise it would fail, if there are no ReferencePages in that section yet. You could check for that, but since the map function was not necessary anyways and CheckboxSetField can handle an empty source the best thing to do is just remove it.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: MultiSelect with Custom / Filtered Source &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18958#post311299&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18958&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 21 Jan 2012 02:35:31 +1300</pubDate>
			<dc:creator>x75</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18958#post311299</guid>
		</item>
		
		<item>
			<title>Custom Form Validation Error in SESSION</title>
			<link>http://www.silverstripe.org/form-questions/show/19055</link>
			<description>&lt;p&gt;Hi,&lt;br /&gt;i have a custom Form:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class ContactForm extends Form {...}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;which gets passed a Validator&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$validator = new RequiredFields('Name', 'Email', 'Comments');&lt;br /&gt;return new ContactForm($this, 'ContactForm', $fields, $actions, $validator);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;The validator seems to work because in the Session there are Errors:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;array&lt;br /&gt;  'errors' =&amp;gt; &lt;br /&gt;    array&lt;br /&gt;      0 =&amp;gt; &lt;br /&gt;        array&lt;br /&gt;          'fieldName' =&amp;gt; string 'Name' (length=4)&lt;br /&gt;          'message' =&amp;gt; string '&quot;Name*&quot; wird benötigt.' (length=23)&lt;br /&gt;          'messageType' =&amp;gt; string 'required' (length=8)&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;But in Form.php from sapphire the Message() method looks for 'formError' key and so the validation errors arent found in $Message:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$this-&amp;gt;message = Session::get(&quot;FormInfo.{$this-&amp;gt;FormName()}.formError.message&quot;);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;How comes that the validation errors of the custom Form are stored in 'errors' instead of 'formError' in the SESSION?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Custom Form Validation Error in SESSION &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19055&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19055&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 21 Jan 2012 00:01:27 +1300</pubDate>
			<dc:creator>ivo</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19055</guid>
		</item>
		
		<item>
			<title>Re: Form submit method isn&#39;t called</title>
			<link>http://www.silverstripe.org/form-questions/show/11249#post311270</link>
			<description>&lt;p&gt;Hi I have similar problem (&lt;em&gt;form submit generate in response form, action is never called&lt;/em&gt;) but I don't see if there is a problem with name of function with generate the form.&lt;/p&gt;&lt;p&gt;see code below&lt;/p&gt;&lt;p&gt;&lt;strong&gt;BookVisitForm&lt;/strong&gt;&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;?php&lt;br /&gt;class BookVisitForm extends Page {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $db = array();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $has_one = array();&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;class BookVisitForm_Controller extends Page_Controller {&lt;/p&gt;&lt;p&gt;public function init() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;parent::init();&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 $allowed_actions = array( &lt;br /&gt;   );&lt;/p&gt;&lt;p&gt;public function BookVisitForm() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$bookVisitForm =  new BookVisitFormTemplate($this, &quot;BookVisitForm&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$bookVisitForm -&amp;gt;getValidator()-&amp;gt;setJavascriptValidationHandler('none');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $bookVisitForm;&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;function BookVisitAction($data, $form) {&lt;br /&gt;                /* NEVER CALL*/&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$form-&amp;gt;addErrorMessage(&quot;Message&quot;,&quot;Send msg&quot;,&quot;good&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Director::redirectBack();&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;BookVisitFormTemplate&lt;/strong&gt;&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class BookVisitFormTemplate extends Form {&lt;/p&gt;&lt;p&gt;   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;   .....&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;  $reservation= new FormAction('BookVisitAction', 'RESERVATION');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;  $reservation-&amp;gt;AddExtraClass('button');&lt;br /&gt;          $actions = new FieldSet(&lt;br /&gt;             $reservation&lt;br /&gt;          );&lt;/p&gt;&lt;p&gt;          parent::__construct($controller, $name, $fields, $actions, $validator);&lt;br /&gt;   }&lt;/p&gt;&lt;p&gt;   function forTemplate() {&lt;br /&gt;      return $this-&amp;gt;renderWith(array(&lt;br /&gt;         $this-&amp;gt;class,&lt;br /&gt;         'Form'&lt;br /&gt;      ));&lt;br /&gt;   }&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;this is generated html code (looks fine)&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;form id=&quot;BookVisitFormTemplate_BookVisitForm&quot; action=&quot;........../BookVisitForm&quot; method=&quot;post&quot; enctype=&quot;application/x-www-form-urlencoded&quot; class=&quot;jqtransformdone&quot;&amp;gt;&lt;br /&gt;........&lt;br /&gt;&amp;lt;input class=&quot;action button&quot; id=&quot;BookVisitFormTemplate_BookVisitForm_action_BookVisitAction&quot; type=&quot;submit&quot; name=&quot;action_BookVisitAction&quot; value=&quot;RESERVATION&quot; title=&quot;RESERVATION&quot; /&amp;gt;&lt;br /&gt;..........&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;but after submit form in response I get the same form (when I'm submitting by ajax I see exactly html code generated in response).&lt;/p&gt;&lt;p&gt;does anyone see the problem??? &lt;br /&gt;Thanks in advance for your help&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Form submit method isn't called &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/11249#post311270&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/11249&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 19 Jan 2012 13:02:57 +1300</pubDate>
			<dc:creator>sanzios</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/11249#post311270</guid>
		</item>
		
		<item>
			<title>Re: Customize search to omit assets folder</title>
			<link>http://www.silverstripe.org/form-questions/show/19022#post311222</link>
			<description>&lt;p&gt;or this...&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://doc.silverstripe.org/sapphire/en/trunk/changelogs/2.4.6#security-user-uploaded-files-searchable-when-using-fulltextsearchable&quot; rel=&quot;nofollow&quot;&gt;http://doc.silverstripe.org/sapphire/en/trunk/changelogs/2.4.6#security-user-uploaded-files-searchable-when-using-fulltextsearchable&lt;/a&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Customize search to omit assets folder &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19022#post311222&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19022&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 18 Jan 2012 08:20:24 +1300</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19022#post311222</guid>
		</item>
		
		<item>
			<title>Re: Customize search to omit assets folder</title>
			<link>http://www.silverstripe.org/form-questions/show/19022#post311214</link>
			<description>&lt;p&gt;function results($data, $form, $request) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$form-&amp;gt;classesToSearch(array('Page', 'SiteTree'));&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;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;}&lt;/p&gt;&lt;p&gt;Above is my overloaded &quot;results&quot; method.&lt;/p&gt;&lt;p&gt;You can set the classesToSearch on your form in your form action. The above will only search in the Page and SiteTree tables.&lt;/p&gt;&lt;p&gt;Hope that helps.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Customize search to omit assets folder &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19022#post311214&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19022&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 18 Jan 2012 03:27:38 +1300</pubDate>
			<dc:creator>SamTheJarvis</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19022#post311214</guid>
		</item>
		
		<item>
			<title>Customize search to omit assets folder</title>
			<link>http://www.silverstripe.org/form-questions/show/19022</link>
			<description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I would like my search results to not show anything from the &quot;assets&quot; folder. How can I keep that folder out of the search results.&lt;/p&gt;&lt;p&gt;Here's my page_results.ss file:&lt;br /&gt;&amp;lt;div class=&quot;viewport results-page&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;div class=&quot;content clearfix&quot; style=&quot;padding:40px;&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;h1&amp;gt;Search Results&amp;lt;/h1&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% if Results %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    &amp;lt;ul id=&quot;SearchResults&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;      &amp;lt;% control Results %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;        &amp;lt;li&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;            &amp;lt;% if MenuTitle %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;              &amp;lt;h3&amp;gt;&amp;lt;a class=&quot;searchResultHeader&quot; href=&quot;$Link&quot;&amp;gt;$MenuTitle&amp;lt;/a&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;            &amp;lt;% else %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;              &amp;lt;h3&amp;gt;&amp;lt;a class=&quot;searchResultHeader&quot; href=&quot;$Link&quot;&amp;gt;$Title&amp;lt;/a&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;            &amp;lt;% end_if %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;% if Content %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;          &amp;nbsp;&amp;nbsp;&amp;nbsp;$Content.FirstParagraph(NoHTML)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;% end_if %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;          &amp;lt;a class=&quot;readMoreLink&quot; href=&quot;$Link&quot; title=&quot;Read more about &amp;amp;quot;{$Title}&amp;amp;quot;&quot;&amp;gt;Read more about &amp;amp;quot;{$Title}&amp;amp;quot;...&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;        &amp;lt;/li&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;      &amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    &amp;lt;/ul&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;% else %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    &amp;lt;p&amp;gt;Sorry, your search query did not return any results.&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;% end_if %&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;% if Results.MoreThanOnePage %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    &amp;lt;div id=&quot;PageNumbers&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;      &amp;lt;% if Results.NotLastPage %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;        &amp;lt;a class=&quot;next&quot; href=&quot;$Results.NextLink&quot; title=&quot;View the next page&quot;&amp;gt;Next&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;      &amp;lt;% end_if %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;      &amp;lt;% if Results.NotFirstPage %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;        &amp;lt;a class=&quot;prev&quot; href=&quot;$Results.PrevLink&quot; title=&quot;View the previous page&quot;&amp;gt;Prev&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;      &amp;lt;% end_if %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;      &amp;lt;span&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;        &amp;lt;% control Results.SummaryPagination(5) %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;          &amp;lt;% if CurrentBool %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;            $PageNum&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;          &amp;lt;% else %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;            &amp;lt;a href=&quot;$Link&quot; title=&quot;View page number $PageNum&quot;&amp;gt;$PageNum&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;          &amp;lt;% end_if %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;        &amp;lt;% end_control %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;      &amp;lt;/span&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    &amp;lt;/div&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;% end_if %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/p&gt;&lt;p&gt;Thank You,&lt;br /&gt;Alex&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Customize search to omit assets folder &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19022&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19022&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 17 Jan 2012 06:53:24 +1300</pubDate>
			<dc:creator>webmmsd</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19022</guid>
		</item>
		
		<item>
			<title>Re: LoginForm not maintaining the right locale</title>
			<link>http://www.silverstripe.org/form-questions/show/18644#post311177</link>
			<description>&lt;p&gt;Thanks Smurkas that helped a lot...&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: LoginForm not maintaining the right locale &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18644#post311177&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18644&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 16 Jan 2012 18:45:22 +1300</pubDate>
			<dc:creator>CodeGuerrilla </dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18644#post311177</guid>
		</item>
		
		<item>
			<title>Re: SearchContext filters and WithinRangeFilter</title>
			<link>http://www.silverstripe.org/form-questions/show/11685#post311109</link>
			<description>&lt;p&gt;Hi Terry !&lt;/p&gt;&lt;p&gt;I was wondering if you managed to use that WithinRangeFilter.&lt;br /&gt;I have trouble doing a &quot;GreaterThan or equal filter&quot; in my search form  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/sad.gif'&gt;  ... and a Lessthan or equal as well !&lt;/p&gt;&lt;p&gt;That filter would be of great use !&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: SearchContext filters and WithinRangeFilter &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/11685#post311109&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/11685&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 14 Jan 2012 04:20:51 +1300</pubDate>
			<dc:creator>VRoxane</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/11685#post311109</guid>
		</item>
		
		<item>
			<title>Re: Setting defaults in CheckboxSetField</title>
			<link>http://www.silverstripe.org/form-questions/show/18948#post311106</link>
			<description>&lt;p&gt;Resolved =&amp;gt; code was working but was being overwritten by loading data into the form.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Setting defaults in CheckboxSetField &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18948#post311106&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18948&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 14 Jan 2012 02:48:12 +1300</pubDate>
			<dc:creator>jayslippy</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18948#post311106</guid>
		</item>
		
		<item>
			<title>Re: Setting defaults in CheckboxSetField</title>
			<link>http://www.silverstripe.org/form-questions/show/18948#post311105</link>
			<description>&lt;p&gt;I eventually gave up on this one, and used a series of optionsetfields instead.  It was quite easy that way to set the values to '1' or '0'.&lt;/p&gt;&lt;p&gt;Now though, I'm running into the same problem with a DropdownField.  I'm trying to set the selected value of the field when the form is loaded but everything I try to set as a default value (eg, '4', 4, $capabilityMap[4], $capabilityMap['4'], Capability objects, titles of capability objects) has zero effect.&lt;/p&gt;&lt;p&gt;Can somebody please point me in the direction of the correct syntax for the $value parameter to get this to work?  There are quite a few web pages describing the use of DropdownField, but very few show the $value functionality in use.&lt;/p&gt;&lt;p&gt;$capabilities = DataObject::get('Capability');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$capabilityMap = $capabilities-&amp;gt;toDropDownMap('ID','Title');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$capabilityField = new DropdownField(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'capability',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Main capability requirement',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$capabilityMap,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'4'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Setting defaults in CheckboxSetField &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18948#post311105&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18948&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 14 Jan 2012 02:14:58 +1300</pubDate>
			<dc:creator>jayslippy</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18948#post311105</guid>
		</item>
		
		<item>
			<title>Re: Contact form - send mail not working...</title>
			<link>http://www.silverstripe.org/form-questions/show/14076#post311090</link>
			<description>&lt;p&gt;After using this form successfully on a few sites I've struck a similar problem: &lt;/p&gt;&lt;p&gt;-- Form will submit in Mac OSX/Firefox but returns empty message to site administrator. &lt;br /&gt;-- Form will not submit at all in Win/IE7&lt;/p&gt;&lt;p&gt;Don't know if this is down to it being Friday 13th or something more sinister... can anybody offer any useful suggestions? &lt;/p&gt;&lt;p&gt;thanks!&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Contact form - send mail not working... &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/14076#post311090&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/14076&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 13 Jan 2012 13:15:51 +1300</pubDate>
			<dc:creator>arthurdent</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/14076#post311090</guid>
		</item>
		
		<item>
			<title>Re: Custom Form Rendering</title>
			<link>http://www.silverstripe.org/form-questions/show/7269#post311049</link>
			<description>&lt;p&gt;I was having similar issues. Check this forum post. It was my answer:&lt;br /&gt;&lt;a href=&quot;http://doc.silverstripe.org/sapphire/en/topics/forms#using_a_custom_template&quot; rel=&quot;nofollow&quot;&gt;http://doc.silverstripe.org/sapphire/en/topics/forms#using_a_custom_template&lt;/a&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Custom Form Rendering &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/7269#post311049&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/7269&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 12 Jan 2012 13:27:27 +1300</pubDate>
			<dc:creator>TDNP</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/7269#post311049</guid>
		</item>
		
		<item>
			<title>MultiSelect with Custom / Filtered Source</title>
			<link>http://www.silverstripe.org/form-questions/show/18958</link>
			<description>&lt;p&gt;Hi,&lt;br /&gt;I have build a ProductPage which can have many ReferencePages (many_many and belongs_many_many). So far it works.&lt;/p&gt;&lt;p&gt;Now I want to be able to only select ReferencePages that are within the same &quot;section&quot; of the website. (ProductPage and ReferencePages have the same Root)&lt;/p&gt;&lt;p&gt;I tried using TreeMultiselectField with a DropDownMap as DataSource:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;// get the IDs of all Pages with this root:&lt;br /&gt;$root = $this-&amp;gt;Level(1);&lt;br /&gt;$ids =  $root-&amp;gt;getDescendantIDList();&lt;/p&gt;&lt;p&gt;// get all ReferencePages that are in that idlist and convert to dropdown map: &lt;br /&gt;$query = '(&quot;SiteTree&quot;.&quot;ID&quot; = ' . implode(' OR &quot;SiteTree&quot;.&quot;ID&quot; = ', $ids) .')';&lt;br /&gt;$items = DataObject::get(&quot;ReferencePage&quot;, $query)-&amp;gt;map('ID', 'Title', '--empty--');&lt;/p&gt;&lt;p&gt;// create field:&lt;br /&gt;$treeField = new TreeMultiselectField(&quot;References&quot;, &quot;References&quot;, $items);&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &lt;br /&gt;Works: The TreeMultiselectField only shows References that i want it to show. You can select References and it actually saves the selection to the DB.&lt;br /&gt;Problem: The selected References are not selected /checked in the TreeMultiselectField when the control loads.&lt;/p&gt;&lt;p&gt;Can I select them manually somehow? By setting $treeField-&amp;gt;value or something?&lt;br /&gt;Or is there an other way to do all this?&lt;/p&gt;&lt;p&gt;Thanks&lt;br /&gt;Johannes&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: MultiSelect with Custom / Filtered Source &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18958&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18958&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 11 Jan 2012 07:15:23 +1300</pubDate>
			<dc:creator>x75</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18958</guid>
		</item>
		
		<item>
			<title>Re: FullTextSearchable does not work on custom fields</title>
			<link>http://www.silverstripe.org/form-questions/show/18547?start=8#post310989</link>
			<description>&lt;p&gt;I’ve not used the Metatags and Description idea (I took what I saw first). Anyway, I needed a title and a hash link to address the DataObject among a list of other DataObjects in a long Category page. If you use this idea, I guess you will only be able to redirect visitors to the page containing your DataObject and not to the DataObject itself.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: FullTextSearchable does not work on custom fields &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18547?start=8#post310989&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18547&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 11 Jan 2012 06:37:00 +1300</pubDate>
			<dc:creator>Juanitou</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18547?start=8#post310989</guid>
		</item>
		
		<item>
			<title>Passing DO Id to form action</title>
			<link>http://www.silverstripe.org/form-questions/show/18953</link>
			<description>&lt;p&gt;Hello,&lt;br /&gt;i have this codes:&lt;br /&gt;&lt;a href=&quot;http://sspaste.com/paste/show/4f0c0fd19b03e&quot; rel=&quot;nofollow&quot;&gt;http://sspaste.com/paste/show/4f0c0fd19b03e&lt;/a&gt;&lt;/p&gt;&lt;p&gt;my edit url is = site.com/market/edit/1&lt;br /&gt;when i click save i should get the id in edit_save method but dont know how.&lt;/p&gt;&lt;p&gt;i tryed also writing the ID into an hiddenfield but its also not working.&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;public function getFrontEndFields(){&lt;br /&gt;    &amp;nbsp;&amp;nbsp;&amp;nbsp;$fields = $this-&amp;gt;scaffoldFormFields(array(&lt;br /&gt;    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'restrictFields' =&amp;gt; array(&lt;br /&gt;    &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'ID','Name','Description','Photo'&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;return $fields;&lt;br /&gt;    }&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;public function getCMSFields()&lt;br /&gt;    {&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;        $fields = parent::getCMSFields();  &lt;br /&gt;    &amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab('Root.Main', new HiddenField('ID','','editid'));&lt;br /&gt;        $fields-&amp;gt;addFieldToTab(&quot;Root.Main&quot;, new TextField('Name'));  &lt;br /&gt;        $fields-&amp;gt;addFieldToTab(&quot;Root.Main&quot;, new TextareaField('Description'));&lt;br /&gt;       // $fields-&amp;gt;removeFieldFromTab('Root.Main', 'MarketPageID');&lt;/p&gt;&lt;p&gt;        return $fields;&lt;br /&gt;    }&lt;/p&gt;&lt;/div&gt;&lt;br /&gt;anyone any idea how to to this?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Passing DO Id to form action &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18953&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18953&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 11 Jan 2012 00:46:03 +1300</pubDate>
			<dc:creator>skorp</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18953</guid>
		</item>
		
		<item>
			<title>Re: FullTextSearchable does not work on custom fields</title>
			<link>http://www.silverstripe.org/form-questions/show/18547#post310975</link>
			<description>&lt;p&gt;Bonjour Juan, je ferai de mon mieux!&lt;/p&gt;&lt;p&gt;- - -&lt;/p&gt;&lt;p&gt;Ill try custom_search. But ive read on another posts that one could possibly have SS search thru customs textfields by populating $Metatags and $Description with its content. As those later two are looked over by the standard search engine, it supposely works.&lt;/p&gt;&lt;p&gt;Back to my AS3 days, it would like this.&lt;/p&gt;&lt;p&gt;var $Metatags.text = $Nom.text + $Prenom.text + $Entreprise.text &lt;/p&gt;&lt;p&gt;where the later three are my custom textfields.&lt;/p&gt;&lt;p&gt;Any idea?&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: FullTextSearchable does not work on custom fields &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18547#post310975&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18547&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 11 Jan 2012 00:31:32 +1300</pubDate>
			<dc:creator>wilsonStaff</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18547#post310975</guid>
		</item>
		
		<item>
			<title>Re: FullTextSearchable does not work on custom fields</title>
			<link>http://www.silverstripe.org/form-questions/show/18547#post310973</link>
			<description>&lt;p&gt;Hi!&lt;/p&gt;&lt;p&gt;I wish you a nice séjour in France.&lt;/p&gt;&lt;p&gt;I used the solution posted by Aram. Get the ZIP file, install the module custom_search and use the example provided in a folder sibling folder to understand how does it work. Don’t forget to provide your DataObjects with Link, Title and canView functions, or you’ll see nothing in the search results.&lt;/p&gt;&lt;p&gt;A side note: This didn’t worked for me with a has_many object, I couldn’t get Links and Titles for it in the search results, so I had to change it to a many_many. I don’t know if there is a problem with the code or, more probably, if I overlooked something in my code. I’m not a good programmer.&lt;/p&gt;&lt;p&gt;Hope it helps,&lt;br /&gt;Juan&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: FullTextSearchable does not work on custom fields &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18547#post310973&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18547&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 10 Jan 2012 21:44:41 +1300</pubDate>
			<dc:creator>Juanitou</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18547#post310973</guid>
		</item>
		
		<item>
			<title>Re: FullTextSearchable does not work on custom fields</title>
			<link>http://www.silverstripe.org/form-questions/show/18547#post310968</link>
			<description>&lt;p&gt;Hi Juanito, funny i learned that i am gonna spend a month in France next summer: either Montpellier or Les Herbiers. Long way from Canada!&lt;/p&gt;&lt;p&gt;- - -&lt;/p&gt;&lt;p&gt;Back to the thread: on the link you provided, do i start from page 1 or solution is a the section/page you highligted?&lt;/p&gt;&lt;p&gt;Better, give me a hint on how to solve this?&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: FullTextSearchable does not work on custom fields &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18547#post310968&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18547&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 10 Jan 2012 13:54:56 +1300</pubDate>
			<dc:creator>wilsonStaff</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18547#post310968</guid>
		</item>
		
		<item>
			<title>Re: FullTextSearchable does not work on custom fields</title>
			<link>http://www.silverstripe.org/form-questions/show/18547#post310966</link>
			<description>&lt;p&gt;Hi!&lt;/p&gt;&lt;p&gt;I finished using this old hack:&lt;br /&gt;&lt;a href=&quot;http://www.silverstripe.org/all-other-modules/show/6641?start=24#post290089&quot; rel=&quot;nofollow&quot;&gt;http://www.silverstripe.org/all-other-modules/show/6641?start=24#post290089&lt;/a&gt;&lt;/p&gt;&lt;p&gt;It works, at least here.&lt;/p&gt;&lt;p&gt;Hope it helps,&lt;br /&gt;Juan&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: FullTextSearchable does not work on custom fields &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18547#post310966&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18547&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 10 Jan 2012 13:33:16 +1300</pubDate>
			<dc:creator>Juanitou</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18547#post310966</guid>
		</item>
		
		<item>
			<title>Re: FullTextSearchable does not work on custom fields</title>
			<link>http://www.silverstripe.org/form-questions/show/18547#post310962</link>
			<description>&lt;p&gt;I am having the extact same problem. But i might add this.&lt;/p&gt;&lt;p&gt;In that line below, where Nom, Prenom eand Entreprise are custom textFields&lt;/p&gt;&lt;p&gt;Object::add_extension('MyObject', &quot;FulltextSearchable('Nom','Prenom', 'Entreprise')&quot;);&lt;/p&gt;&lt;p&gt;What is 'MyObject' refers to?&lt;/p&gt;&lt;p&gt;I tried Page, no change.&lt;br /&gt;I tried HomePage, error.&lt;br /&gt;I tried MemberPage (name of the page where customs fields ae added), no change i.e. no results found from customs textFields..&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: FullTextSearchable does not work on custom fields &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18547#post310962&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18547&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 10 Jan 2012 08:56:07 +1300</pubDate>
			<dc:creator>wilsonStaff</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18547#post310962</guid>
		</item>
		
		<item>
			<title>Setting defaults in CheckboxSetField</title>
			<link>http://www.silverstripe.org/form-questions/show/18948</link>
			<description>&lt;p&gt;I've got a form that's part of an 'Edit Profile' type page where the user makes a check box style selection from a list of Capabilities.  I'm having problems figuring out what to pass as the last value in the constructor to set the defaults though.  Obviously since it's an edit profile page I need the users current selections to show up when they load the page.&lt;/p&gt;&lt;p&gt;Code so far:&lt;/p&gt;&lt;p&gt;$capabilities = DataObject::get('Capability');&lt;br /&gt;$capabilityField = new CheckboxSetField(&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;'Name',&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;'Capabilities: ',&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;$capabilities,&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;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;&amp;nbsp;&amp;nbsp;&amp;nbsp;$testcap-&amp;gt;Name&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;I have tried lots of different formats for the last parameter, including an array of Capability names, an array that looks like 'engines' =&amp;gt; '1', an array of integers.  What is the correct format to pass for the default array so that I can control which of the checkboxes are ticked?&lt;/p&gt;&lt;p&gt;Any advice appreciated.&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Setting defaults in CheckboxSetField &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18948&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18948&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 10 Jan 2012 05:58:42 +1300</pubDate>
			<dc:creator>jayslippy</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18948</guid>
		</item>
		
		<item>
			<title>Re: Contact Form unique number and redirection after submit</title>
			<link>http://www.silverstripe.org/form-questions/show/18921#post310911</link>
			<description>&lt;p&gt;Well using the User form module it writes to &quot;SubmittedForm&quot; that has an ID... is that good enough to use?&lt;br /&gt;If not you could write some custom code in the &quot;process&quot; function of userforms\code\UserDefinedForm.php&lt;/p&gt;&lt;p&gt;If you wanted to build the form using code then put what processing you'd need in &lt;a href=&quot;http://doc.silverstripe.org/sapphire/en/tutorials/3-forms#processing-the-form&quot; rel=&quot;nofollow&quot;&gt;http://doc.silverstripe.org/sapphire/en/tutorials/3-forms#processing-the-form&lt;/a&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Contact Form unique number and redirection after submit &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18921#post310911&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18921&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 07 Jan 2012 23:00:31 +1300</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18921#post310911</guid>
		</item>
		
		<item>
			<title>Textareafield default value</title>
			<link>http://www.silverstripe.org/form-questions/show/18934</link>
			<description>&lt;p&gt;Hi, as i understand from the docs, &lt;/p&gt;&lt;p&gt;new TextareaField(&lt;br /&gt;    $name = &quot;description&quot;,&lt;br /&gt;    $title = &quot;Description&quot;,&lt;br /&gt;    $rows = 8,&lt;br /&gt;    $cols = 3,&lt;br /&gt;    $value = &quot;This is the default description&quot;&lt;br /&gt; );&lt;/p&gt;&lt;p&gt;However, when i tried to add a new textfield to a page:&lt;br /&gt;function getCMSFields() {&lt;br /&gt;   ...&lt;br /&gt;   $fields-&amp;gt;addFieldToTab(&quot;Root.Content&quot;, new TextareaField('test', 'test', 5, 10, 'default value'));&lt;br /&gt;   ...&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;The textarea comes up with a blank content value.&lt;br /&gt;The same &quot;bug&quot; occurs when using derivatives of TextareaField&lt;/p&gt;&lt;p&gt;Can anyone do a quick test on the latest 2.4.6 and check if this happens for you too?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Textareafield default value &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18934&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18934&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 07 Jan 2012 15:50:02 +1300</pubDate>
			<dc:creator>cwchong</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18934</guid>
		</item>
		
		<item>
			<title>Contact Form unique number and redirection after submit</title>
			<link>http://www.silverstripe.org/form-questions/show/18921</link>
			<description>&lt;p&gt;Okay can anyone help. I want to setup a contact form so a member (have setup registration area) can forward and order to a company. The order needs to have a unique number and when form is filled it gets sent to both sender and receiver. After submit the user then redirects to a page with printable postage label with unique order number and member name and company address. Anyone done anything like this before using userform or custom form. Tried googling but have not found anything like what I am trying to create.&lt;/p&gt;&lt;p&gt;Any help would be great.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Contact Form unique number and redirection after submit &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18921&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18921&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 06 Jan 2012 05:53:14 +1300</pubDate>
			<dc:creator>stevanovich</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18921</guid>
		</item>
		
		<item>
			<title>RequiredFields</title>
			<link>http://www.silverstripe.org/form-questions/show/18915</link>
			<description>&lt;p&gt;Before you say it, I've looked through the forums and haven't found why this would be happening. &lt;/p&gt;&lt;p&gt;$fields = new FieldSet(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField('FirstName', 'First Name*'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField('LastName', 'Last Name*'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField('Business', 'Business Name'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField('Address', 'Full Address*'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField('Address2', 'Address Continued'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField('City', 'City'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField('State', 'State'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField('Zip', 'Zipcode'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;new NumericField('HomePhone', 'Home Phone* (No Dashes)', null, 9),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;new NumericField('CellPhone', 'Cell Phone', null, 9),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;new EmailField('Email', 'Email Address*')&lt;br /&gt;);&lt;br /&gt;// Create action&lt;br /&gt;$actions = new FieldSet(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;new FormAction('XMLWrite', 'Submit')&lt;br /&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;// Create validator&lt;br /&gt;$validator = new RequiredFields('FirstName', 'LastName', 'Address', 'HomePhone', 'Email');&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;return new Form($this, 'DonationForm', $fields, $actions, $validator);&lt;/p&gt;&lt;p&gt;The form renders properly but the validation doesn't work. I can tab through the fields and submit the form without being required to enter any data. I don't want to write a validation script knowing that SS has one built in. Also, I have this working in a contact form on the same site. I've double and triple-checked my typing but after a while, my eyes get numb to reading the same code over and over. Can anyone offer a little help here?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: RequiredFields &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18915&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18915&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 05 Jan 2012 11:03:18 +1300</pubDate>
			<dc:creator>TDNP</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18915</guid>
		</item>
		
		<item>
			<title>Re: Possible bugfix many_many relations management via ModelAdmin</title>
			<link>http://www.silverstripe.org/form-questions/show/18912#post310833</link>
			<description>&lt;p&gt;Hi Maurice,&lt;/p&gt;&lt;p&gt;The place to raise / discuss this would be on the google dev list or raise it on open.silverstripe.org with a patch.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Possible bugfix many_many relations management via ModelAdmin &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18912#post310833&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18912&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 05 Jan 2012 08:05:53 +1300</pubDate>
			<dc:creator>swaiba</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18912#post310833</guid>
		</item>
		
		<item>
			<title>Possible bugfix many_many relations management via ModelAdmin</title>
			<link>http://www.silverstripe.org/form-questions/show/18912</link>
			<description>&lt;p&gt;Hello all,&lt;/p&gt;&lt;p&gt;I think there might be an error in the sapphire/forms/ManyManyComplexTableField.php, which results in a many-many relation to only be managed from the sourceclass containing the static $many_many and not the sourceclass containing the static $belongs_many_many. In the mentioned file I changed (okay, I did not changed but copied the code in there to a new file outside the core folders) named FixedManyManyComplexTableField.php the following:&lt;/p&gt;&lt;p&gt;Old:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$belongsManyManyRelations = $singleton-&amp;gt;uninherited( 'belongs_many_many', true );&lt;br /&gt;if( isset( $belongsManyManyRelations ) &amp;amp;&amp;amp; array_key_exists( $this-&amp;gt;name, $belongsManyManyRelations ) ) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;manyManyParentClass = $class;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$manyManyTable = $belongsManyManyRelations[$this-&amp;gt;name] . '_' . $this-&amp;gt;name;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;New&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$belongsManyManyRelations = $singleton-&amp;gt;uninherited( 'belongs_many_many', true );&lt;br /&gt;if( isset( $belongsManyManyRelations ) &amp;amp;&amp;amp; array_key_exists( $this-&amp;gt;name, $belongsManyManyRelations ) ) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this-&amp;gt;manyManyParentClass = $class;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$manyManyTable = $this-&amp;gt;name.&quot;_&quot;.$class;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Now I am not sure if this change is a result of to short thinking but I just feel to share this as it frustrated me for a while now. Please let me know if you developers can comfirm this change sounds reasonable.&lt;/p&gt;&lt;p&gt;The used test case was simple, just two classes (SideA and SideB) extending from DataObject and linking to eachother using many_many and belongs_many_many. Then both getCMSFields functions were changed accordingly:&lt;/p&gt;&lt;p&gt;(This is for class SideA, change all B to A for class SideB)&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;public function getCMSFields() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$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;$extraFields = new FixedManyManyComplexTableField(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'SideB',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'SideB'&lt;br /&gt;&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;$fields-&amp;gt;replaceField(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'SideB',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$extraFields&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $fields;&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Hope this might help some more people out there.&lt;/p&gt;&lt;p&gt;Friendly regards,&lt;br /&gt;Maurice&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Possible bugfix many_many relations management via ModelAdmin &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18912&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18912&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 05 Jan 2012 06:50:02 +1300</pubDate>
			<dc:creator>esakrielaart</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18912</guid>
		</item>
		
		<item>
			<title>Re: How to call an Uploadify field in costumized form?</title>
			<link>http://www.silverstripe.org/form-questions/show/18068#post310831</link>
			<description>&lt;p&gt;just found out that u can use $dataFieldByName(field).FieldHolder so there is no need to change the code.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: How to call an Uploadify field in costumized form? &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18068#post310831&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18068&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 05 Jan 2012 06:45:44 +1300</pubDate>
			<dc:creator>chillburn.com.au</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18068#post310831</guid>
		</item>
		

	</channel>
</rss>
