<?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: UserDefinedForm on every page?</title>
			<link>http://www.silverstripe.org/form-questions/show/7334?start=8#post313987</link>
			<description>&lt;p&gt;Well, looks like a bug in UDF .5,line 406 - userdefinedform.php  &lt;/p&gt;&lt;p&gt;I have resolved it by put a 'if' clause around the following line&lt;/p&gt;&lt;p&gt;to&lt;/p&gt;&lt;p&gt;//$request = $this-&amp;gt;getRequest();&lt;/p&gt;&lt;p&gt;// set the values passed by the url to the field&lt;/p&gt;&lt;p&gt;if ($request = $this-&amp;gt;getRequest()) {&lt;br /&gt; if($var = $request-&amp;gt;getVar($field-&amp;gt;name)) {&lt;br /&gt; $field-&amp;gt;value = Convert::raw2att($var);&lt;br /&gt;}&lt;br /&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;&lt;br /&gt;$fields-&amp;gt;push($field);&lt;br /&gt;}&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: UserDefinedForm on every page? | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/7334?start=8#post313987&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/7334&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 16 May 2012 10:53:02 +1200</pubDate>
			<dc:creator>codepattern</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/7334?start=8#post313987</guid>
		</item>
		
		<item>
			<title>Re: UserDefinedForm on every page?</title>
			<link>http://www.silverstripe.org/form-questions/show/7334?start=8#post313965</link>
			<description>&lt;p&gt;The original form was created with UDF. It works normally if I call the page directly. However, if I try to use the 'ShowForm()' function and the template $Form, I get the issue mentioned.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: UserDefinedForm on every page? | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/7334?start=8#post313965&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/7334&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 15 May 2012 13:33:01 +1200</pubDate>
			<dc:creator>codepattern</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/7334?start=8#post313965</guid>
		</item>
		
		<item>
			<title>Re: UserDefinedForm on every page?</title>
			<link>http://www.silverstripe.org/form-questions/show/7334?start=8#post313941</link>
			<description>&lt;p&gt;what member data are you trying to collect?&lt;br /&gt;looks like when the form is submitted the function is failing to get the member. Do you have an IF function for when there is no member?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: UserDefinedForm on every page? | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/7334?start=8#post313941&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/7334&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 14 May 2012 21:13:29 +1200</pubDate>
			<dc:creator>CHD</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/7334?start=8#post313941</guid>
		</item>
		
		<item>
			<title>Re: UserDefinedForm on every page?</title>
			<link>http://www.silverstripe.org/form-questions/show/7334?start=8#post313933</link>
			<description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;I had this working with the earlier bullds of UDF.  However, with the version [v0.5.0] build, I receive the following error:&lt;/p&gt;&lt;p&gt;Fatal error: Call to a member function getVar() on a non-object in /html/userforms/code/model/UserDefinedForm.php on line 406&lt;/p&gt;&lt;p&gt;My function is similar as the link above and this post&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function ShowForm1(){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$get = DataObject::get_one(&quot;UserDefinedForm&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return new UserDefinedForm_Controller($get);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: UserDefinedForm on every page? | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/7334?start=8#post313933&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/7334&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 14 May 2012 00:16:15 +1200</pubDate>
			<dc:creator>codepattern</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/7334?start=8#post313933</guid>
		</item>
		
		<item>
			<title>Re: Uncaught Exception: Unable to traverse to related object field</title>
			<link>http://www.silverstripe.org/form-questions/show/19857#post313881</link>
			<description>&lt;p&gt;Never mind. I was not reading the error messages closely enough.  The error was the same as has been posted about before.&lt;/p&gt;&lt;p&gt;The comments to DataObject (line 2492) also explain the correct syntax if you with to include a $has_one field in a $searchable_fields array.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Uncaught Exception: Unable to traverse to related object field | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19857#post313881&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19857&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 11 May 2012 08:01:22 +1200</pubDate>
			<dc:creator>ScottT</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19857#post313881</guid>
		</item>
		
		<item>
			<title>Re: Synchronizing Parent-Child IDs when using HasManyComplexTableField</title>
			<link>http://www.silverstripe.org/form-questions/show/19850#post313880</link>
			<description>&lt;p&gt;**BUMP** &lt;/p&gt;&lt;p&gt;Anyone reading this forum who knows about HasManyCTF???&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Synchronizing Parent-Child IDs when using HasManyComplexTableField | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19850#post313880&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19850&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 11 May 2012 07:30:54 +1200</pubDate>
			<dc:creator>ScottT</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19850#post313880</guid>
		</item>
		
		<item>
			<title>Re: Setting CheckboxField as checked on handmade form</title>
			<link>http://www.silverstripe.org/form-questions/show/19845#post313879</link>
			<description>&lt;p&gt;So this can be achieved with a LiteralField, but is this really not possible directly with a CheckboxField?&lt;/p&gt;&lt;p&gt;I'd supply a patch for this if I have time one day - would you be interested or is there a reason why this isn't there?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Setting CheckboxField as checked on handmade form | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19845#post313879&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19845&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 11 May 2012 07:29:13 +1200</pubDate>
			<dc:creator>jbothma</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19845#post313879</guid>
		</item>
		
		<item>
			<title>Uncaught Exception: Unable to traverse to related object field</title>
			<link>http://www.silverstripe.org/form-questions/show/19857</link>
			<description>&lt;p&gt;Hi Folks,&lt;br /&gt;I have the class below and am getting the error in the title. I have read other posts about this, but the problem does not seem related to the $searchable_fields array as you can see from the code:&lt;/p&gt;&lt;p&gt;The full error is &lt;/p&gt;&lt;p&gt;Error at sapphire/core/model/DataObject.php line 2492: Uncaught Exception: Unable to traverse to related object field [CDSEquivalent] on [SiennaEmploymentStatusCategory&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class SiennaEducationalStatusCategory extends SiennaViewableData { //which extends DataObject&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static $db = array (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'EducationalStatusCategory' =&amp;gt; 'Varchar(255)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'EducationalStatusCategoryDetails' =&amp;gt; 'HTMLText',&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;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static $has_one = array (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'CDSEquivalent' =&amp;gt; 'SiennaCDSCategory',&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;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//public static $has_many = array (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'EducationalStatusRecords' =&amp;gt; 'SiennaEducationalStatus',&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;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static $searchable_fields = array (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'ID',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'EducationalStatusCategory',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'EducationalStatusCategoryDetails'&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;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static $summary_fields = array (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'ID',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'EducationalStatusCategory',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'EducationalStatusCategoryDetails',&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;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static $singular_name = 'Education Status Category'; &lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Please help!!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Uncaught Exception: Unable to traverse to related object field | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19857&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19857&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 11 May 2012 07:28:56 +1200</pubDate>
			<dc:creator>ScottT</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19857</guid>
		</item>
		
		<item>
			<title>Re: Lost Password form not sending password reset email</title>
			<link>http://www.silverstripe.org/form-questions/show/10037#post313872</link>
			<description>&lt;p&gt;Hello,&lt;br /&gt;same problem here:&lt;/p&gt;&lt;p&gt;putting this in config did not work:&lt;br /&gt;Email::setAdminEmail('admin@mydomain.de');&lt;/p&gt;&lt;p&gt;How can I debug that?&lt;/p&gt;&lt;p&gt;Kind regards,&lt;br /&gt;Florian&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Lost Password form not sending password reset email | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/10037#post313872&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/10037&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 11 May 2012 04:02:41 +1200</pubDate>
			<dc:creator>spierala</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/10037#post313872</guid>
		</item>
		
		<item>
			<title>Synchronizing Parent-Child IDs when using HasManyComplexTableField</title>
			<link>http://www.silverstripe.org/form-questions/show/19850</link>
			<description>&lt;p&gt;Hello,&lt;br /&gt;I need some assistance with using a HasManyComplexTableField on a basic form. I have a tabbed form that holds information about a client. The client has many addresses. I am using a HasManyComplexTableField to enter addresses that belong to the client. For the life of us, my coding partner and I have not be able to figure out how to accomplish this.&lt;/p&gt;&lt;p&gt;The main problem is that when an address is saved, I would like the ClientID to be written to the Address table. I have tried many different ways to set the ClientID manually in the Addresses popup form. For example, I have used fieldset-&amp;gt;push() to add it as a hidden field to the fieldset passed to the HasManyCTF to set appropriate ClientID that way. However, the value is often not preserved in the generated Addresses form.&lt;/p&gt;&lt;p&gt;The form itself subclasses Page. If I create a has_one relationship to Client and a has_many to Addresses, I do get a drop down list in Addresses which allows me to select the right client. However, this is a front-end form and I would like the correct client to be automatically selected. The client that should automatically be associated with the Address HasManyCTF is evidently the one then loaded into the parent form.&lt;/p&gt;&lt;p&gt;If have also tried using the replaceWith method on the FieldSet object to replace the DropDown ClientID field with a hidden one. However, the value comes through as empty which results in the address being saved with a ClientID of 0.&lt;/p&gt;&lt;p&gt;Can anyone suggest a way to have the parent and child HasManyCTF synchronized so that when the HasMany is saved it automatically writes the correct ClientID without this having to be set by the user then entering the data? &lt;/p&gt;&lt;p&gt;This seems like a pretty ordinary use case so I think there must be something very basic I am missing.&lt;/p&gt;&lt;p&gt;Happy to post code excerpts if this will help.&lt;/p&gt;&lt;p&gt;Thanks in advance for your help. Have been stumped by this for several days now.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Synchronizing Parent-Child IDs when using HasManyComplexTableField | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19850&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19850&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 10 May 2012 11:28:21 +1200</pubDate>
			<dc:creator>ScottT</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19850</guid>
		</item>
		
		<item>
			<title>Setting CheckboxField as checked on handmade form</title>
			<link>http://www.silverstripe.org/form-questions/show/19845</link>
			<description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;I have a form that's generated by making a FieldSet and adding a new CheckboxField to it, among other inputs, in a particular action function in one of my controllers.&lt;/p&gt;&lt;p&gt;Edit: I want to set a checkbox as checked when the property it represents is true, and unchecked otherwise.&lt;/p&gt;&lt;p&gt;e.g.&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class RadioPage_Controller extends Controller {&lt;br /&gt;    public function getConfigForm() {&lt;br /&gt;        $radio = ...&lt;br /&gt;        $fields = new FieldSet();&lt;br /&gt;        $bassBoostCheckboxField = $radio-&amp;gt;getFrontendFields()-&amp;gt;fieldByName('BassBoost');&lt;br /&gt;        $fields-&amp;gt;push($BassBoostCheckboxField);&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;The form is used to edit properties of an object, and their values are filled in when the form is generated (e.g. name, color, etc not shown)&lt;/p&gt;&lt;p&gt;Setting the value for the CheckboxField sets its value, but doesn't result in it being checked when shown in the browser.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$bassBoostCheckboxField-&amp;gt;setAttribute('checked', 'checked')&lt;/p&gt;&lt;/div&gt; gives some error, I can't remember what now. The CAUTION in &lt;a href=&quot;http://api.silverstripe.org/trunk/forms/core/FormField.html#methodsetAttribute&quot; rel=&quot;nofollow&quot;&gt;http://api.silverstripe.org/trunk/forms/core/FormField.html#methodsetAttribute&lt;/a&gt; doesn't seem like it ought to apply since it's not mentioned and it's only one form field.&lt;/p&gt;&lt;p&gt;This doesn't work if I just create a brand new CheckboxField using its constructor either.&lt;/p&gt;&lt;p&gt;How can I conditionally set a CheckboxField as checked? Is the way I'm making and showing my form the &quot;wrong way&quot; when it represents a subset of the fields of an object?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Setting CheckboxField as checked on handmade form | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19845&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19845&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 09 May 2012 10:56:42 +1200</pubDate>
			<dc:creator>jbothma</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19845</guid>
		</item>
		
		<item>
			<title>Re: TinyMCE editor not submitting content</title>
			<link>http://www.silverstripe.org/form-questions/show/19778#post313630</link>
			<description>&lt;p&gt;Just in case anyone else runs into this problem, this is the solution. Short and simple....&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$mceConfig = HtmlEditorConfig::get();&lt;br /&gt;$mceConfig-&amp;gt;disablePlugins('spellchecker', 'emotions');&lt;br /&gt;$mceConfig-&amp;gt;setOptions(array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'mode' =&amp;gt; 'none'&lt;br /&gt;));&lt;br /&gt;HtmlEditorConfig::set_active();&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: TinyMCE editor not submitting content | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19778#post313630&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19778&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 01 May 2012 23:16:27 +1200</pubDate>
			<dc:creator>NicoHaase</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19778#post313630</guid>
		</item>
		
		<item>
			<title>Re: Marketo Form Integration</title>
			<link>http://www.silverstripe.org/form-questions/show/19782#post313625</link>
			<description>&lt;p&gt;Just create a new file for that class, besides the file in which your form occurs, and run /dev/build.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Marketo Form Integration | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19782#post313625&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19782&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 01 May 2012 20:11:03 +1200</pubDate>
			<dc:creator>NicoHaase</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19782#post313625</guid>
		</item>
		
		<item>
			<title>Re: Marketo Form Integration</title>
			<link>http://www.silverstripe.org/form-questions/show/19782#post313624</link>
			<description>&lt;p&gt;Thanks for the reply.&lt;/p&gt;&lt;p&gt;I'm getting ready to do what you recommend but before I do wanted to ask about the code below which appears after &lt;strong&gt;($isPostback)&lt;/strong&gt;. I noticed that it contains references to a class &lt;strong&gt;(mktSampleMktowsClient)&lt;/strong&gt; in the rest of the code. Where and when do I integrate that class?&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;# USER_ID and SECRET_KEY need to be created through Marketo web interface and pasted on lines 999 and 1000 of this file&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$accessKey = mktSampleMktowsClient::MKTOWS_USER_ID;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$secretKey = mktSampleMktowsClient::MKTOWS_SECRET_KEY;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// !!! SET END POINT TO YOUR CUSTOMER SPECIFIC URL, CAN BE FOUND IN MARKETO ADMIN INTERFACE !!!&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$soapEndPoint = 'https://na-n.marketo.com/soap/mktows/1_7';&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;# a mktSampleMktowsClient object is created to make all the web service calls&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$client = new mktSampleMktowsClient($accessKey, $secretKey, $soapEndPoint);&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Marketo Form Integration | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19782#post313624&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19782&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 01 May 2012 19:45:30 +1200</pubDate>
			<dc:creator>VictorH</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19782#post313624</guid>
		</item>
		
		<item>
			<title>Re: Marketo Form Integration</title>
			<link>http://www.silverstripe.org/form-questions/show/19782#post313623</link>
			<description>&lt;p&gt;It shouldn't be that difficult: at the point where you send out the mail (in doSignup), you integrate the call to Marketo (whatever that service does). Copy the code from the branch starting with if ($isPostback), modify the parameters you pass (eg $_REQUEST['email'] could become $data['email'], as all fields contained in the form are represented in $data), and you should be done  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Marketo Form Integration | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19782#post313623&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19782&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 01 May 2012 19:33:48 +1200</pubDate>
			<dc:creator>NicoHaase</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19782#post313623</guid>
		</item>
		
		<item>
			<title>Marketo Form Integration</title>
			<link>http://www.silverstripe.org/form-questions/show/19782</link>
			<description>&lt;p&gt;I created the form below which simply sends out a couple of emails. I need to update it so that it submits to Marketo. Does anyone have any experience? I've attached the PHP code (renamed marketo.txt so that I would be able to upload it) supplied by Market but I'm now sure where to start. Any help would be appreciated.&lt;/p&gt;&lt;p&gt;Here's the code of the current form.&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;public function SignUpForm() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Sign Up Form Fields&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields = new FieldSet(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField('firstname','First Name*'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField('lastname','Last Name*'),&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;new TextField('creditunion', 'Credit Union*', $this-&amp;gt;getSearchQuery()),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new EmailField('email','E-mail address*'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField('city','City*'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new DropdownField('state', 'State', 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;gt; 'State',&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;'AL' =&amp;gt; 'Alabama',&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;'AK' =&amp;gt; 'Alaska',&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;'AZ' =&amp;gt; 'Arizona'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;        )),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;        new HiddenField ('cn', 'CN') &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;// On Submit&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$actions = new FieldSet(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new FormAction('doSignUp', 'Submit')&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 to validate&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$validator = new RequiredFields('firstname', 'lastname', 'creditunion', 'email');&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return new Form($this, 'SignUpForm', $fields, $actions, $validator);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function doSignUp($data, $form) {&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;// Send Email to Admin&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;// Send Email to User&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;Director::redirect(Director::baseURL(). $this-&amp;gt;URLSegment . &quot;/?signupsuccess=1&quot;);&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: Marketo Form Integration | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19782&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19782&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 01 May 2012 07:03:29 +1200</pubDate>
			<dc:creator>VictorH</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19782</guid>
		</item>
		
		<item>
			<title>TinyMCE editor not submitting content</title>
			<link>http://www.silverstripe.org/form-questions/show/19778</link>
			<description>&lt;p&gt;Hi folks,&lt;br /&gt;I'm currently developing a website which should contain a simple front-end administration. The form is generated using $fields = singleton('DataObject')-&amp;gt;getFrontEndFields(), and my dataobject contains three fields of type HTMLText. These should be editable through TinyMCE editors, which is done through the framework. Well, they are editable, but the content of these fields is empty after submitting the form. I tried really a lot, from tracking down the JS code to tinyMCE.triggerSave() (not resolving the problem), to call of tinyMCE.getInstanceById('Form_EditForm_FieldName').getContent() (which returns an empty string),.... and after hours of headache, I have no clue left where to search for a call I omitted... can anyone help here?&lt;br /&gt;Kind regards from sunny Germany&lt;br /&gt;Nico&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: TinyMCE editor not submitting content | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19778&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19778&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 30 Apr 2012 18:48:12 +1200</pubDate>
			<dc:creator>NicoHaase</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19778</guid>
		</item>
		
		<item>
			<title>Switch directionality per instance ?</title>
			<link>http://www.silverstripe.org/form-questions/show/19763</link>
			<description>&lt;p&gt;when having multiple instances on one page, is it possible to switch the directionality per instance&lt;/p&gt;&lt;p&gt;E.G.:&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;$f = parent::getCMSFields();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach($this-&amp;gt;getTranslationFields() as $field) {&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;$title = $field-&amp;gt;Title();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// last 5 characters are respresenting the locale &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// en_GB, de_DE, ar_SA&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$locale = substr($title, strlen($title)-5));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if( $field instanceof HtmlEditorField &amp;amp;&amp;amp; $locale == 'ar_SA' ) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// what to do here, to switch the directionality?????&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;$f-&amp;gt;addFieldToTab(&quot;Root.Translations&quot;, $field);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $f;&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Any ideas would be great !&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Switch directionality per instance ? | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19763&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19763&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 27 Apr 2012 21:59:28 +1200</pubDate>
			<dc:creator>rob.s</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19763</guid>
		</item>
		
		<item>
			<title>Re: HiddenField on contactform throws a &quot;get property of non-object&quot;-error</title>
			<link>http://www.silverstripe.org/form-questions/show/19696#post313536</link>
			<description>&lt;p&gt;When you submit a form it calls the form method first to get all the fields. If your form fields rely on a url parameter you'll run into issues as when you have submitted the form those parameters won't be there.&lt;/p&gt;&lt;p&gt;I would suggest changing your form method to something like&lt;/p&gt;&lt;p&gt;function ContactForm() { &lt;br /&gt;$value = ($stfmmbr = $this-&amp;gt;getStaffMember()) ? $stfmmbr-&amp;gt;Email : &quot;&quot;;&lt;/p&gt;&lt;p&gt;$fields = new FieldSet( &lt;br /&gt;new TextField('Name', 'Ihr vollständiger Name *'), &lt;br /&gt;new EmailField('Email', 'Ihre Mailadresse *'), &lt;br /&gt;new TextField('Phone', 'Eine Rückrufnummer'), &lt;br /&gt;new TextareaField('Comments','Ihre Nachricht *'), &lt;br /&gt;new HiddenField('StaffMail', 'StaffMail', $value) &lt;br /&gt;);&lt;/p&gt;&lt;p&gt;// Create action &lt;br /&gt;$actions = new FieldSet( &lt;br /&gt;new FormAction('SendContactForm', 'absenden') &lt;br /&gt;);&lt;/p&gt;&lt;p&gt;// Create Validators &lt;br /&gt;$validator = new RequiredFields('Name', 'Email', 'Comments');&lt;/p&gt;&lt;p&gt;return new Form($this, 'ContactForm', $fields, $actions, $validator); &lt;br /&gt;}&lt;/p&gt;&lt;p&gt;So remember, your form function will run after you submit.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: HiddenField on contactform throws a &amp;quot;get property of non-object&amp;quot;-error | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19696#post313536&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19696&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 25 Apr 2012 15:39:28 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19696#post313536</guid>
		</item>
		
		<item>
			<title>Re: HiddenField on contactform throws a &quot;get property of non-object&quot;-error</title>
			<link>http://www.silverstripe.org/form-questions/show/19696#post313523</link>
			<description>&lt;p&gt;ping…&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: HiddenField on contactform throws a &amp;quot;get property of non-object&amp;quot;-error | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19696#post313523&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19696&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 25 Apr 2012 00:15:44 +1200</pubDate>
			<dc:creator>Pipifix</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19696#post313523</guid>
		</item>
		
		<item>
			<title>Re: Incorporating Twitter Bootstrap Form Styles</title>
			<link>http://www.silverstripe.org/form-questions/show/19610#post313489</link>
			<description>&lt;p&gt;Thanks very much, I'm still on 2.4.7 with this particular site so I just hacked some of the core files. Not ideal, obviously, but given that my next upgrade will be to 3.x, not a big deal. Thanks again for the reply.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Incorporating Twitter Bootstrap Form Styles | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19610#post313489&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19610&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 23 Apr 2012 11:16:07 +1200</pubDate>
			<dc:creator>kylehudson00</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19610#post313489</guid>
		</item>
		
		<item>
			<title>[SOLVED] Required Checkboxfield / Validator</title>
			<link>http://www.silverstripe.org/form-questions/show/19739</link>
			<description>&lt;p&gt;I had some Problems with a required Checkboxfield (&quot;yes i've read the terms of use&quot;) in a form that wouldn't validate. &lt;br /&gt;The Checkboxfield was listet in the RequiredFields array but the Form was sent with unchecked Checkboxfield.&lt;/p&gt;&lt;p&gt;There are 2 patches that solved my issue:&lt;br /&gt;(Silverstripe 2.4.7)&lt;/p&gt;&lt;p&gt;Ticket #6231: check_box_php.patch&lt;br /&gt;&lt;a href=&quot;http://open.silverstripe.org/attachment/ticket/6231/check_box_php.patch&quot; rel=&quot;nofollow&quot;&gt;http://open.silverstripe.org/attachment/ticket/6231/check_box_php.patch&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Ticket #6230: check_box_js.patch&lt;br /&gt;&lt;a href=&quot;http://open.silverstripe.org/attachment/ticket/6230/check_box_js.patch&quot; rel=&quot;nofollow&quot;&gt;http://open.silverstripe.org/attachment/ticket/6230/check_box_js.patch&lt;/a&gt;&lt;/p&gt;&lt;p&gt;...maybe it helps anyone, it wasn't easy for me to  find them...&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&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>Sun, 22 Apr 2012 21:01:13 +1200</pubDate>
			<dc:creator>derralf</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19739</guid>
		</item>
		
		<item>
			<title>retrieving data out of dropdown</title>
			<link>http://www.silverstripe.org/form-questions/show/19716</link>
			<description>&lt;p&gt;Hi guys,&lt;/p&gt;&lt;p&gt;I am absolutely new to silverstripe and PHP and try to get the selected data from a dropdownlist. I read some posts but either the answer doesn't work for me or there is no answer at all for some of them...&lt;/p&gt;&lt;p&gt;My problem is to get the ID of the selected data from a dropdownlist. My code looks like this:&lt;/p&gt;&lt;p&gt;  function BusinessSearchForm() {&lt;/p&gt;&lt;p&gt;           $myDoSet = DataObject::get(&quot;CompanyCategory&quot;);&lt;br /&gt;           if($myDoSet){&lt;/p&gt;&lt;p&gt;            $map = $myDoSet-&amp;gt;toDropDownMap('ID', 'CompanyCategory');&lt;br /&gt;            $fields = new FieldSet (new DropdownField(&lt;br /&gt;            'CategoryList', $title = &quot;Please select a Category:&quot;, $map));&lt;br /&gt;           }&lt;br /&gt;           // Create actions&lt;br /&gt;            $actions = new FieldSet(&lt;br /&gt;            new FormAction('doSearchBusiness', 'Search')&lt;br /&gt;            );&lt;/p&gt;&lt;p&gt;        return new Form($this, 'BusinessSearchForm', $fields, $actions);&lt;br /&gt;  }&lt;/p&gt;&lt;p&gt;function doSearchBusiness($data,$form){&lt;/p&gt;&lt;p&gt;just to try to get the selected ID I tried this: &lt;/p&gt;&lt;p&gt;Session::set('CatID',$data['CategoryList']); &lt;/p&gt;&lt;p&gt;function CatID(){&lt;br /&gt;  Session::get('CatID'); &lt;br /&gt;}&lt;/p&gt;&lt;p&gt;with the .ss like this   &lt;br /&gt;&amp;lt;% control CatID %&amp;gt;&lt;br /&gt;      My Category ID is: $CatID&lt;br /&gt;  &amp;lt;% end_control %&amp;gt;&lt;/p&gt;&lt;p&gt;I obviously missed something as this doesn't work. Then I tried this:&lt;/p&gt;&lt;p&gt;$CatID = $data['CategoryList'];&lt;/p&gt;&lt;p&gt;with .ss like this:  My Category ID is: $CatID&lt;/p&gt;&lt;p&gt;This didn't work either. &lt;/p&gt;&lt;p&gt;What I need is something like &lt;/p&gt;&lt;p&gt;$_POST[&quot;CategoryList&quot;] to get the ID and then the sql like &lt;/p&gt;&lt;p&gt;$sql=&quot;SELECT * FROM Businesses where MyCategoryID = CatID (selected from dropdownlist)&quot;&lt;/p&gt;&lt;p&gt;Can somebody translate this into silverstripe code for me, please? Or explain me what I did wrong?&lt;/p&gt;&lt;p&gt;According to firefox LiveHTTPHeader the CategoryList comes with the selected ID. I just can't get it...&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: retrieving data out of dropdown | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19716&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19716&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Fri, 20 Apr 2012 00:05:31 +1200</pubDate>
			<dc:creator>KimK</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19716</guid>
		</item>
		
		<item>
			<title>Re: HiddenField on contactform throws a &quot;get property of non-object&quot;-error</title>
			<link>http://www.silverstripe.org/form-questions/show/19696#post313381</link>
			<description>&lt;p&gt;Nobody's got a clue? &lt;/p&gt;&lt;p&gt;I ask myself whether this is the right way? Because the complete mailadress is visible in the value of the hiddenfield. Are these hidden fields crawlable by robots? And if this is the case is there another way to bind a contactform on a dataobject (staffmembers)?&lt;/p&gt;&lt;p&gt;Despite of these questions i'm still interested in solving the issue with the non-object (empty hiddenField?) error.&lt;/p&gt;&lt;p&gt;Thanks, Pipifix&lt;/p&gt;&lt;p&gt;And sorry for my soliloquy. ;)&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: HiddenField on contactform throws a &amp;quot;get property of non-object&amp;quot;-error | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19696#post313381&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19696&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 17 Apr 2012 23:49:05 +1200</pubDate>
			<dc:creator>Pipifix</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19696#post313381</guid>
		</item>
		
		<item>
			<title>Re: How to bind data source on the forms in Silverstripe</title>
			<link>http://www.silverstripe.org/form-questions/show/19647#post313359</link>
			<description>&lt;p&gt;HI @Willr,&lt;/p&gt;&lt;p&gt;Thanks for the help.  &lt;/p&gt;&lt;p&gt;I tried the link below.  Got a 404 error.&lt;/p&gt;&lt;p&gt;Can you show me the correct link again?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: How to bind data source on the forms in Silverstripe | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19647#post313359&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19647&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 17 Apr 2012 10:46:50 +1200</pubDate>
			<dc:creator>CMSPlayer</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19647#post313359</guid>
		</item>
		
		<item>
			<title>Re: HiddenField on contactform throws a &quot;get property of non-object&quot;-error</title>
			<link>http://www.silverstripe.org/form-questions/show/19696#post313354</link>
			<description>&lt;p&gt;According to this &lt;a href=&quot;http://www.silverstripe.org/e-commerce-module-forum/show/18410#post309119&quot; rel=&quot;nofollow&quot;&gt;codeexample&lt;/a&gt; and by avoiding &lt;a href=&quot;http://www.leftandmain.com/silverstripe-tips/2010/09/08/8-common-silverstripe-errors-explained-and-solved/#highlighter_781566&quot; rel=&quot;nofollow&quot;&gt;daisy-chaining&lt;/a&gt;, i edited my code to this:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function ContactForm() {&lt;br /&gt;        // Create fields&lt;/p&gt;&lt;p&gt;        if($stfmmbr = $this-&amp;gt;getStaffMember()) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;                 &lt;br /&gt;        $fields = new FieldSet(&lt;br /&gt;            new TextField('Name', 'Ihr vollständiger Name *'),&lt;br /&gt;            new EmailField('Email', 'Ihre Mailadresse *'),&lt;br /&gt;            new TextField('Phone', 'Eine Rückrufnummer'),&lt;br /&gt;            new TextareaField('Comments','Ihre Nachricht *'),&lt;br /&gt;            new HiddenField('StaffMail', 'StaffMail', $stfmmbr-&amp;gt;Mail) //Avoid daisy-chaining: $this-&amp;gt;StaffMember-&amp;gt;Mail&lt;br /&gt;        );&lt;/p&gt;&lt;p&gt;        // Create action&lt;br /&gt;        $actions = new FieldSet(&lt;br /&gt;            new FormAction('SendContactForm', 'absenden')&lt;br /&gt;        );&lt;/p&gt;&lt;p&gt;        // Create Validators&lt;br /&gt;        $validator = new RequiredFields('Name', 'Email', 'Comments');&lt;/p&gt;&lt;p&gt;        return new Form($this, 'ContactForm', $fields, $actions, $validator);&lt;br /&gt;        }&lt;br /&gt;    }&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;...the getStaffMember method&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Get the current staffMember from the URL, if any&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function getStaffMember()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$Params = $this-&amp;gt;getURLParams();&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;if(is_numeric($Params['ID']) &amp;amp;&amp;amp; $StaffMember = DataObject::get_by_id('StaffMember', $Params['ID']))&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;return $StaffMember;&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;/p&gt;&lt;p&gt;The form is rendered nicely. The hidden form value shows the correct mail but by sending the form, there is a white screen. Mhmm?&lt;br /&gt;I seems the getStaffMember() method returns empty. But why the (html) hidden field value is showing the right mail?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: HiddenField on contactform throws a &amp;quot;get property of non-object&amp;quot;-error | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19696#post313354&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19696&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 17 Apr 2012 05:54:07 +1200</pubDate>
			<dc:creator>Pipifix</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19696#post313354</guid>
		</item>
		
		<item>
			<title>HiddenField on contactform throws a &quot;get property of non-object&quot;-error</title>
			<link>http://www.silverstripe.org/form-questions/show/19696</link>
			<description>&lt;p&gt;Hi everybody.&lt;/p&gt;&lt;p&gt;I've got a simple contactform on a staff page. The goal is to enable the frontenduser to sent a mail directly to the staffmember of the company.&lt;br /&gt;So i tweaked arams tutorial &lt;a href=&quot;http://www.ssbits.com/tutorials/2010/dataobjects-as-pages-part-1-keeping-it-simple/&quot; rel=&quot;nofollow&quot;&gt;dataobjects as pages&lt;/a&gt; a little. I added a contactform and wanted to extract the staffmembers mailadress via hiddenfield. &lt;/p&gt;&lt;p&gt;This is my code so far&lt;/p&gt;&lt;p&gt;...&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class StaffPage_Controller extends Page_Controller {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//add our 'show' function as an allowed URL action&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $allowed_actions = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'show',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'ContactForm'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;    function ContactForm() {&lt;br /&gt;        // Create fields         &lt;br /&gt;        $fields = new FieldSet(&lt;br /&gt;            new TextField('Name', 'Ihr vollständiger Name *'),&lt;br /&gt;            new EmailField('Email', 'Ihre Mailadresse *'),&lt;br /&gt;            new TextField('Phone', 'Eine Rückrufnummer'),&lt;br /&gt;            new TextareaField('Comments','Ihre Nachricht *'),&lt;br /&gt;            new HiddenField('StaffMail', '', $this-&amp;gt;StaffMember-&amp;gt;Mail) //$this-&amp;gt;ID&lt;br /&gt;        );&lt;/p&gt;&lt;p&gt;        // Create action&lt;br /&gt;        $actions = new FieldSet(&lt;br /&gt;            new FormAction('SendContactForm', 'absenden')&lt;br /&gt;        );&lt;/p&gt;&lt;p&gt;        // Create Validators&lt;br /&gt;        $validator = new RequiredFields('Name', 'Email', 'Comments');&lt;/p&gt;&lt;p&gt;        return new Form($this, 'ContactForm', $fields, $actions, $validator);&lt;br /&gt;    }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function SendContactForm($data, $form) {&lt;/p&gt;&lt;p&gt;        //Set data&lt;br /&gt;        $From = $data['Email'];&lt;br /&gt;        $To = $data['StaffMail'];&lt;br /&gt;        $Subject = &quot;E-Mail vom persönlichen Kontaktformular der Webseite&quot;;    &lt;br /&gt;        $email = new Email($From, $To, $Subject);&lt;br /&gt;        //set template&lt;br /&gt;        $email-&amp;gt;setTemplate('ContactEmail');&lt;br /&gt;        //populate template&lt;br /&gt;        $email-&amp;gt;populateTemplate($data);&lt;br /&gt;        //send mail&lt;br /&gt;        $email-&amp;gt;send();&lt;br /&gt;        //return to submitted message&lt;br /&gt;        Director::redirect($this-&amp;gt;Link(&quot;?success=1&quot;));&lt;br /&gt;    }&lt;/p&gt;&lt;p&gt;    public function Success()&lt;br /&gt;    {&lt;br /&gt;        return isset($_REQUEST['success']) &amp;amp;&amp;amp; $_REQUEST['success'] == &quot;1&quot;;&lt;br /&gt;    }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Show the StaffMember detail page using the StaffPage_show.ss template&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function show() &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;.&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;//Get the current staffMember from the URL, if any&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function getStaffMember()&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;&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;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Return our custom breadcrumbs&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public function Breadcrumbs() {&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Formgeneration and validation works as expected. With firefox i'm able to inspect the hiddenfield value. The value is seeded with the right mailadress (given by the DOM via Backend) of the member. But, there's this error &lt;strong&gt;[Notice] Trying to get property of non-object&lt;/strong&gt;. Whats wrong with that?&lt;/p&gt;&lt;p&gt;Thanks for your help. Pipifix&lt;/p&gt;&lt;p&gt;EDIT: Obviously this code '$this-&amp;gt;StaffMember-&amp;gt;Mail' isn't correct? Additional question: is it possible to set the mailto with this code? $To = $data['StaffMail'];&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: HiddenField on contactform throws a &amp;quot;get property of non-object&amp;quot;-error | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19696&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19696&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 17 Apr 2012 04:09:24 +1200</pubDate>
			<dc:creator>Pipifix</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19696</guid>
		</item>
		
		<item>
			<title>Re: [SOLVED]CheckboxSetField </title>
			<link>http://www.silverstripe.org/form-questions/show/19694#post313340</link>
			<description>&lt;p&gt;kk got it working now,&lt;/p&gt;&lt;p&gt;  protected $choices = array(&lt;br /&gt;    1 =&amp;gt; 'Stafstaal',&lt;br /&gt;    2 =&amp;gt; 'Balkstaal',&lt;br /&gt;    3 =&amp;gt; 'Strippen',&lt;br /&gt;    4 =&amp;gt; 'Platen',&lt;br /&gt;    5 =&amp;gt; 'Speciaalstaal',&lt;br /&gt;    6 =&amp;gt; 'Ronde buizen',&lt;br /&gt;    7 =&amp;gt; 'Profielbuizen',&lt;br /&gt;    8 =&amp;gt; 'Betonstaal',&lt;br /&gt;    9 =&amp;gt; 'Bouwstaalmatten',&lt;br /&gt;    10 =&amp;gt; 'Koudgewalste profielen'&lt;br /&gt;  );&lt;/p&gt;&lt;p&gt;this was the solution  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/grin.gif'&gt; &lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [SOLVED]CheckboxSetField  | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19694#post313340&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19694&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 16 Apr 2012 22:35:16 +1200</pubDate>
			<dc:creator>phokki</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19694#post313340</guid>
		</item>
		
		<item>
			<title>Re: [SOLVED]CheckboxSetField </title>
			<link>http://www.silverstripe.org/form-questions/show/19694#post313339</link>
			<description>&lt;p&gt;oh i forrgot something, &lt;/p&gt;&lt;p&gt;new CheckboxSetField(&lt;br /&gt;'Producten',&lt;br /&gt;'Wilt u meer weten over onderstaande productgroepen?',&lt;br /&gt;$this-&amp;gt;choices,&lt;br /&gt;1 &amp;lt;----------------------------------------------&lt;br /&gt;); &lt;/p&gt;&lt;p&gt;what is the 1 in the code above? i've no idea:D&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [SOLVED]CheckboxSetField  | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19694#post313339&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19694&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 16 Apr 2012 21:33:33 +1200</pubDate>
			<dc:creator>phokki</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19694#post313339</guid>
		</item>
		
		<item>
			<title>[SOLVED]CheckboxSetField </title>
			<link>http://www.silverstripe.org/form-questions/show/19694</link>
			<description>&lt;p&gt;Hi SilverStripe guys,&lt;/p&gt;&lt;p&gt;I've an array:&lt;/p&gt;&lt;p&gt;protected $choices = array(&lt;br /&gt;    'Stafstaal',&lt;br /&gt;    'Balkstaal',&lt;br /&gt;    'Strippen',&lt;br /&gt;    'Platen',&lt;br /&gt;    'Speciaalstaal',&lt;br /&gt;    'Ronde buizen',&lt;br /&gt;    'Profielbuizen',&lt;br /&gt;    'Betonstaal',&lt;br /&gt;    'Bouwstaalmatten',&lt;br /&gt;    'Koudgewalste profielen'&lt;br /&gt;  );&lt;/p&gt;&lt;p&gt;this array has got 10 items, &lt;/p&gt;&lt;p&gt;So i want them as checkboxes so i use this code: &lt;/p&gt;&lt;p&gt;      new CheckboxSetField(&lt;br /&gt;       'Producten',&lt;br /&gt;       'Wilt u meer weten over onderstaande productgroepen?',&lt;br /&gt;        $this-&amp;gt;choices,&lt;br /&gt;       1&lt;br /&gt;      );&lt;/p&gt;&lt;p&gt;And then i use this code:&lt;/p&gt;&lt;p&gt;if ($key == 'Producten') &lt;br /&gt;      {&lt;br /&gt;        $selected_values = explode(',', $value);&lt;br /&gt;        $selected_products = array();&lt;br /&gt;        foreach ($selected_values as $value) {&lt;br /&gt;          $selected_products[] = $this-&amp;gt;choices[$value];&lt;br /&gt;        }&lt;/p&gt;&lt;p&gt;        $value = implode(', ', $selected_products);&lt;br /&gt;      }&lt;/p&gt;&lt;p&gt;So when i send this form to my email, i only see 9 items in my mail.&lt;br /&gt;The first one is not in my mail (stafstaal).&lt;/p&gt;&lt;p&gt;And when i put /*    and */ on the if statement, and send to my mail, i see an array 1,2,3,4,5,6,7,8,9. But normally &lt;br /&gt;an array starts at 0  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/tongue.gif'&gt; &lt;/p&gt;&lt;p&gt;Can anyone help me to get this work?&lt;br /&gt;Should not be that hard but i cant figure it out...&lt;/p&gt;&lt;p&gt;Thanks!!!!&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [SOLVED]CheckboxSetField  | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19694&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19694&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 16 Apr 2012 21:32:08 +1200</pubDate>
			<dc:creator>phokki</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19694</guid>
		</item>
		
		<item>
			<title>Re: HasManyComplexTableField - can&#39;t get it to work</title>
			<link>http://www.silverstripe.org/form-questions/show/19690#post313317</link>
			<description>&lt;p&gt;I work with Scott, and we narrowed down the issue to this line in HasManyComplexTableField.php:&lt;/p&gt;&lt;p&gt;$selectedItems = $this-&amp;gt;form-&amp;gt;getRecord()-&amp;gt;$fieldName();&lt;/p&gt;&lt;p&gt;The problem seems to be fixed, or at least surpressed, by changing that line to this:&lt;/p&gt;&lt;p&gt;$currentRecord = $this-&amp;gt;form-&amp;gt;getRecord();&lt;br /&gt;if($currentRecord) {&lt;br /&gt;  $selectedItems = $currentRecord-&amp;gt;$fieldName();&lt;br /&gt;} else {&lt;br /&gt;  return array();&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;This seems to make sense, because when the form is first loading on screen and it's empty, there are no selectedItems to gather.  So it makes sense that an empty record would be returned and there would be no fields of the right name in an empty record!&lt;/p&gt;&lt;p&gt;So I wonder if this is a core bug in Sapphire, that it should account for the possibility of an empty record there, in something like the way I've done with that code?  Comments from those more knowledgable about Sapphire would certainly be appreciated.  Thanks!&lt;/p&gt;&lt;p&gt;--Julian&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: HasManyComplexTableField - can&amp;#39;t get it to work | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19690#post313317&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19690&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 14 Apr 2012 09:10:40 +1200</pubDate>
			<dc:creator>jegelstaff</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19690#post313317</guid>
		</item>
		
		<item>
			<title>HasManyComplexTableField - can&#39;t get it to work</title>
			<link>http://www.silverstripe.org/form-questions/show/19690</link>
			<description>&lt;p&gt;Hi folks,&lt;br /&gt;I am brand new to SS, so please bear with me. I am trying to set up a front-end form. I have a Model SiennaClient with 1-many relationship to Model SiennaAddress. Both extend DataObject. My front-end form model SiennaClientTestForm (extends Page) and SiennaClientTestForm_Controller (extends Page_Controller).&lt;/p&gt;&lt;p&gt;I have the form working basically with a variety of FormField types. I need to be able to enter possibly multiple addresses for each client (people move). I believe a HasManyComplexTableField is the way to go, however, I cannot get it working. I can get ComplexTableField to work fine, but it only allows me to enter 1 address.&lt;/p&gt;&lt;p&gt;Here's the call to the HasManyComplexTableFieldConstructor:&lt;br /&gt;new HasManyComplexTableField($this, 'Addresses', 'SiennaAddress', array('Name'=&amp;gt;'Address Name') ),&lt;/p&gt;&lt;p&gt;When I try to view the form, I get a fatal error:&lt;br /&gt;Fatal error: Call to a member function Addresses() on a non-object in /var/www/silverstripe/sapphire/forms/HasManyComplexTableField.php on line 117&lt;/p&gt;&lt;p&gt;Here's some of the relevant code:&lt;br /&gt;SiennaAddress.php:&lt;br /&gt;class SiennaAddress extends DataObject {&lt;br /&gt;...&lt;br /&gt;public static $has_one = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'SiennaClientTestForm' =&amp;gt; 'SiennaClientTestForm',&lt;br /&gt;&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;SiennaClientTestForm.php:&lt;br /&gt;class SiennaClientTestForm extends Page {&lt;br /&gt;        public static $has_one = array (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Client' =&amp;gt; 'SiennaClient'&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;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;public static $has_many = array (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Addresses' =&amp;gt; 'SiennaAddress'&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;}&lt;/p&gt;&lt;p&gt;class SiennaClientTestForm_Controller extends Page_Controller {&lt;/p&gt;&lt;p&gt;        $form = new Form(&lt;br /&gt;                              ...&lt;br /&gt;                           new HasManyComplexTableField($this, 'Addresses', 'SiennaAddress', array('Name'=&amp;gt;'Address Name') )&lt;br /&gt;          );&lt;br /&gt;         ....&lt;br /&gt;        return $form;&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;At this point, I am completely stuck. I have read the APIs, Tutorials, Docs, etc. but cannot find the source of the problem. Also, the documentation on HasManyComplexTableField is sparse.&lt;/p&gt;&lt;p&gt;Please help.&lt;/p&gt;&lt;p&gt;thanks,&lt;br /&gt;Scott&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: HasManyComplexTableField - can&amp;#39;t get it to work | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19690&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19690&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Sat, 14 Apr 2012 07:59:55 +1200</pubDate>
			<dc:creator>ScottT</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19690</guid>
		</item>
		
		<item>
			<title>$data array empty on form submission</title>
			<link>http://www.silverstripe.org/form-questions/show/19670</link>
			<description>&lt;p&gt;About two months ago, I upgraded a SilverStripe website from 2.3.5 to 2.4.6. Since the upgrade, some of the forms on my site won't send the data to the submit function (the POST array is empty), including &quot;system&quot; forms like the forgot password form for the admin section and the /admin login form. What I find odd is that I have a nearly identical (but different code instance) form with the same field types, which works just fine, but even copying the fields over doesn't work.&lt;/p&gt;&lt;p&gt;Here's the working form and its submit code:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function ContactUsForm() {&lt;br /&gt;        // Create fields&lt;br /&gt;        $fields = new FieldSet(&lt;br /&gt;                        new HeaderField('Send Us a Message:', '2'),&lt;br /&gt;                        new TextField('NAME', 'Full Name:'),&lt;br /&gt;                        new EmailField('EMAIL', 'E-mail Address:'),&lt;br /&gt;                        new TextField('PHONE', 'Phone:'),&lt;br /&gt;                        new TextField('COMPANYNAME', 'Company Name:'),&lt;br /&gt;                        new TextareaField('MESSAGE', 'Message/Note:'),&lt;br /&gt;                        new TextField('HUMAN', '1+1 =')&lt;br /&gt;        );&lt;/p&gt;&lt;p&gt;        // Create actions&lt;br /&gt;        $actions = new FieldSet(&lt;br /&gt;                        new FormAction('doContactUs', 'Submit')&lt;br /&gt;        );&lt;/p&gt;&lt;p&gt;        return new Form($this, 'ContactUsForm', $fields, $actions);&lt;br /&gt;    }&lt;/p&gt;&lt;p&gt;    function doContactUs($data, $form) {&lt;/p&gt;&lt;p&gt;        $human = $data['HUMAN'];&lt;br /&gt;        if ($human == '2') {&lt;br /&gt;            $from = 'contact@example.com';&lt;br /&gt;            $to = 'contact@example.com';&lt;br /&gt;            $subject = 'General Contact  Submission';&lt;br /&gt;            $body = $data['NAME'] . ' has submitted a General Inquiry, their info: ' . $data['NAME'] . ' | ' . $data['EMAIL'] . ' | ' . $data['PHONE'] . ' | ' . $data['COMPANYNAME'] . ' and they have included the following note (if they included a note): ' . $data['MESSAGE'];&lt;br /&gt;            $email = new Email($from, $to, $subject, $body);&lt;br /&gt;            $email-&amp;gt;send();&lt;/p&gt;&lt;p&gt;            Director::redirect('thankyou/');&lt;br /&gt;        } else {&lt;br /&gt;            $form-&amp;gt;addErrorMessage('Message', 'Incorrect answer to the human check.','error');&lt;br /&gt;            return Director::redirectBack();&lt;br /&gt;        }&lt;br /&gt;    }&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Here's the form that doesn't work, and its submit code:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function GenericContactForm() {&lt;/p&gt;&lt;p&gt;    global $contactmessage;&lt;/p&gt;&lt;p&gt;    // Create fields&lt;br /&gt;    $fields = new FieldSet(&lt;br /&gt;            new TextField('NAME', 'Full Name:'),&lt;br /&gt;            new EmailField('EMAIL', 'Email:'),&lt;br /&gt;            new TextField('TELEPHONE', 'Work Phone:'),&lt;br /&gt;            new ListboxField(&lt;br /&gt;                $name = &quot;TYPEOFCONTACT&quot;,&lt;br /&gt;                $title = &quot;Office Type:&quot;,&lt;br /&gt;                $source = array(&lt;br /&gt;                &quot;Single Person Office&quot; =&amp;gt; &quot;Single Person Office&quot;,&lt;br /&gt;                &quot;Team Room&quot; =&amp;gt; &quot;Team Room&quot;,&lt;br /&gt;                &quot;Open Plan&quot; =&amp;gt; &quot;Open Plan&quot;&lt;br /&gt;                ),&lt;br /&gt;                $value = 1&lt;br /&gt;            ),&lt;br /&gt;                    new TextField('HUMAN', '1+1 =')&lt;br /&gt;    );&lt;/p&gt;&lt;p&gt;    // Create actions&lt;br /&gt;    $actions = new FieldSet(&lt;br /&gt;            new FormAction('doGenericContact', 'Submit')&lt;br /&gt;    );&lt;/p&gt;&lt;p&gt;    return new Form($this, 'GenericContactForm', $fields, $actions);&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;function doGenericContact($data, $form) {&lt;br /&gt;    $human = $data['HUMAN'];&lt;br /&gt;    if ($human == '2') {&lt;br /&gt;        $from = $data['EMAIL'];&lt;br /&gt;        $to = 'contact@example.com';&lt;br /&gt;        $subject = 'Contact Request';&lt;br /&gt;        $body = 'The following individual has requested to be contacted: ' . $data['NAME'] . ' | ' . $data['EMAIL'] . ' | ' . $data['TELEPHONE'] . ' and they have made contact to inquire about the following: ' . $data['TYPEOFCONTACT'];&lt;br /&gt;        $email = new Email($from, $to, $subject, $body);&lt;br /&gt;        $email-&amp;gt;send();&lt;/p&gt;&lt;p&gt;        Director::redirect('/thankyou/');&lt;br /&gt;    } else {&lt;br /&gt;        $form-&amp;gt;addErrorMessage('Message', &quot;Incorrect answer to the human check. (Your answer: $human)&quot;, 'error');&lt;br /&gt;        return Director::redirectBack();&lt;br /&gt;    }&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;I've tried removing the ListboxField, since that's about the only real difference I've found. I also tried testing it locally by removing everything inside the &quot;true&quot; portion of the if statement, as well as removing all of the code and simply using var_dump() to dump the $data array, in the submit function, and it works locally, but not on the server. Additionally, these forms worked prior to the upgrade.&lt;/p&gt;&lt;p&gt;Any ideas on what is causing this, and what I can do to fix it?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: $data array empty on form submission | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19670&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19670&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 12 Apr 2012 13:19:56 +1200</pubDate>
			<dc:creator>Shauna G</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19670</guid>
		</item>
		
		<item>
			<title>Re: How to bind data source on the forms in Silverstripe</title>
			<link>http://www.silverstripe.org/form-questions/show/19647#post313224</link>
			<description>&lt;p&gt;You can bind data sources to regular forms quite easily ($form-&amp;gt;loadDataFrom($obj); $form-&amp;gt;saveInto($obj)) but UDF hasn't been designed to support those sort of options yet.&lt;/p&gt;&lt;p&gt;Some basic hooks [1] are available to developers to add on their own extensions to load without hacking core but at the moment support for custom actions is minor.&lt;/p&gt;&lt;p&gt;[1] &lt;a href=&quot;https://github.com/silverstripe/silverstripe-userforms/blob/master/code/UserDefinedForm.php#L412&quot; rel=&quot;nofollow&quot;&gt;https://github.com/silverstripe/silverstripe-userforms/blob/master/code/UserDefinedForm.php#L412&lt;/a&gt;&lt;/p&gt;&lt;p&gt;If you want to save data you could put an extension and tie into the onAfterWrite function of SubmittedForm.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: How to bind data source on the forms in Silverstripe | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19647#post313224&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19647&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 11 Apr 2012 19:18:36 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19647#post313224</guid>
		</item>
		
		<item>
			<title>Re: Incorporate data lookup function within the user defined form module</title>
			<link>http://www.silverstripe.org/form-questions/show/19597#post313180</link>
			<description>&lt;p&gt;Never mind.&lt;/p&gt;&lt;p&gt;Look like the website was out of order momentarily...&lt;/p&gt;&lt;p&gt;All good now.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Incorporate data lookup function within the user defined form module | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19597#post313180&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19597&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 10 Apr 2012 11:00:25 +1200</pubDate>
			<dc:creator>CMSPlayer</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19597#post313180</guid>
		</item>
		
		<item>
			<title>How to bind data source on the forms in Silverstripe</title>
			<link>http://www.silverstripe.org/form-questions/show/19647</link>
			<description>&lt;p&gt;As per titular heading, I'm wondering if there's any sample code out there in community that allows me to bind data source on the form's fields?&lt;/p&gt;&lt;p&gt;I'm sure this is a very common task when building any database-driven websites and I'm curious how I can manipulate modules like UDF to save the fields' data into a table?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: How to bind data source on the forms in Silverstripe | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19647&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19647&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 10 Apr 2012 10:22:57 +1200</pubDate>
			<dc:creator>CMSPlayer</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19647</guid>
		</item>
		
		<item>
			<title>Re: Incorporate data lookup function within the user defined form module</title>
			<link>http://www.silverstripe.org/form-questions/show/19597#post313172</link>
			<description>&lt;p&gt;Hi Willr,&lt;/p&gt;&lt;p&gt;Thanks for that.  &lt;/p&gt;&lt;p&gt;I tried the links - but they don't appear to be working?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Incorporate data lookup function within the user defined form module | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19597#post313172&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19597&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 10 Apr 2012 10:15:25 +1200</pubDate>
			<dc:creator>CMSPlayer</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19597#post313172</guid>
		</item>
		
		<item>
			<title>Login Form changes based on BackURL</title>
			<link>http://www.silverstripe.org/form-questions/show/19643</link>
			<description>&lt;p&gt;Up until now I've always been logging in by adding /admin to the url.  When I do this I'm greeted with the login form that says &quot; Please choose an authentication method and enter your credentials to access the CMS&quot;&lt;/p&gt;&lt;p&gt;I'm building a site where users can post a tip.  I'm using the blog module and creating a link in the Sidebar that basically adds a condition that if they're logged in already give them a link to the form.  If they aren't logged in it gives a link to security login with a backurl to the form.&lt;/p&gt;&lt;p&gt;Functionally it works great.  The only problem is I modified the text I'm usually greeted with in the en_US.php file to say &quot;You must first login in order to post a tip&quot;.  That text doesn't display with the backURL points to the form.  It only displays when you are going to the admin area.  How can I easily get the text to display when they are posting a tip?&lt;/p&gt;&lt;p&gt;&amp;lt;div id=&quot;Sidebar&quot; class=&quot;typography&quot;&amp;gt;&lt;br /&gt;&amp;lt;% if CurrentMember %&amp;gt; &lt;br /&gt;&amp;lt;h3&amp;gt;&amp;lt;a href=&quot;home/post/&quot;&amp;gt;Post a new tip&amp;lt;/a&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;&amp;lt;% else %&amp;gt;&lt;br /&gt;&amp;lt;h3&amp;gt;&amp;lt;a href=&quot;Security/login?BackURL=%2Fsscode%2Fhome%2Fpost%2F&quot;&amp;gt;Post a new tip&amp;lt;/a&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;&amp;lt;% end_if %&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$SideBar&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/p&gt;&lt;p&gt;Thanks,&lt;br /&gt;Brian&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Login Form changes based on BackURL | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19643&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19643&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 09 Apr 2012 03:42:45 +1200</pubDate>
			<dc:creator>woodb2</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19643</guid>
		</item>
		
		<item>
			<title>Re: Incorporate data lookup function within the user defined form module</title>
			<link>http://www.silverstripe.org/form-questions/show/19597#post313103</link>
			<description>&lt;p&gt;I would approach this by creating a custom form field. UDF will automatically pick up any subclasses of EditableFormField so you can write you own (incl validation) rather easily.&lt;/p&gt;&lt;p&gt;The best examples are to look at the inbuilt EditableFormField sub classes. Here's a basic example of one I wrote for a module - &lt;a href=&quot;https://github.com/willrossi/silverstripe-googlemapselectionfield/blob/master/code/EditableGoogleMapSelectableField.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/willrossi/silverstripe-googlemapselectionfield/blob/master/code/EditableGoogleMapSelectableField.php&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;EditableMemberListField (&lt;a href=&quot;https://github.com/silverstripe/silverstripe-userforms/blob/master/code/editor/EditableMemberListField.php&quot; rel=&quot;nofollow&quot;&gt;https://github.com/silverstripe/silverstripe-userforms/blob/master/code/editor/EditableMemberListField.php&lt;/a&gt;) does something *similar* with regards to the look up&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Incorporate data lookup function within the user defined form module | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19597#post313103&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19597&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 05 Apr 2012 23:07:05 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19597#post313103</guid>
		</item>
		
		<item>
			<title>Re: Cancel button</title>
			<link>http://www.silverstripe.org/form-questions/show/18583#post313100</link>
			<description>&lt;p&gt;The key is not to make it a button. Make a literal field that contains a plain link.&lt;/p&gt;&lt;p&gt;Heres an example CancelFormAction class I knocked up - &lt;a href=&quot;https://gist.github.com/2309951&quot; rel=&quot;nofollow&quot;&gt;https://gist.github.com/2309951&lt;/a&gt;.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Cancel button | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18583#post313100&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18583&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 05 Apr 2012 22:58:13 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18583#post313100</guid>
		</item>
		
		<item>
			<title>Re: Incorporating Twitter Bootstrap Form Styles</title>
			<link>http://www.silverstripe.org/form-questions/show/19610#post313099</link>
			<description>&lt;p&gt;The individual form field templates are hard coded in PHP and hard to replace easily in 2.*. In 3.0 they are available as templates so you can edit to your hearts content.&lt;/p&gt;&lt;p&gt;If you're wanting to customize your own form classes you can use templates - &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;p&gt;Posted to: Incorporating Twitter Bootstrap Form Styles | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19610#post313099&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19610&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 05 Apr 2012 22:55:31 +1200</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19610#post313099</guid>
		</item>
		
		<item>
			<title>Custom search with multiple fields</title>
			<link>http://www.silverstripe.org/form-questions/show/19617</link>
			<description>&lt;p&gt;I'm looking to implement a custom search feature, I need a text field and a drop down which people can select 'old' or 'new' and probably return items from a single dataobject which will have either an 'old' or 'new' value in a db column 'type', or the other option is to return all results that are children of either the old or new category pages.&lt;/p&gt;&lt;p&gt;Can anybody point me in the right direction for implementing this?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Custom search with multiple fields | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19617&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19617&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Thu, 05 Apr 2012 09:01:33 +1200</pubDate>
			<dc:creator>vegetav</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19617</guid>
		</item>
		
		<item>
			<title>Incorporating Twitter Bootstrap Form Styles</title>
			<link>http://www.silverstripe.org/form-questions/show/19610</link>
			<description>&lt;p&gt;Hey All,&lt;/p&gt;&lt;p&gt;I'm currently playing around with the Twitter Bootstrap front-end kit for a new site I'm working on. The way forms are styled is particularly attractive and lightweight (see &lt;a href=&quot;http://twitter.github.com/bootstrap/base-css.html#forms&quot; rel=&quot;nofollow&quot;&gt;http://twitter.github.com/bootstrap/base-css.html#forms&lt;/a&gt;), but I'm a little stuck in terms of making it play nice with SilverStripe.&lt;/p&gt;&lt;p&gt;Simply including the relevant CSS works as a starting point (basic text fields get formatted properly, for example), but certain elements require a little extra markup. Buttons, for example, need &quot;btn&quot; in the class attribute for the various button states to work.&lt;/p&gt;&lt;p&gt;Can anyone point me in the right direction? Which files do I need to work with in order to customise the markup used in form generation?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Incorporating Twitter Bootstrap Form Styles | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19610&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19610&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Wed, 04 Apr 2012 15:01:28 +1200</pubDate>
			<dc:creator>kylehudson00</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19610</guid>
		</item>
		
		<item>
			<title>Re: [User Error] Uncaught ReflectionException: Class VolunteerRegistrationForm does not exist GET /silverstripe/?flush=1</title>
			<link>http://www.silverstripe.org/form-questions/show/19604#post313038</link>
			<description>&lt;p&gt;Isn't anybody out there who can help me out on this one?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [User Error] Uncaught ReflectionException: Class VolunteerRegistrationForm does not exist GET /silverstripe/?flush=1 | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19604#post313038&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19604&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 03 Apr 2012 20:10:44 +1200</pubDate>
			<dc:creator>CMSPlayer</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19604#post313038</guid>
		</item>
		
		<item>
			<title>Re: Cancel button</title>
			<link>http://www.silverstripe.org/form-questions/show/18583#post313037</link>
			<description>&lt;p&gt;No, I didn't.  I couldn't get round the validation problem so I gave up.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Cancel button | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18583#post313037&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18583&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 03 Apr 2012 19:58:43 +1200</pubDate>
			<dc:creator>jennymgray</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18583#post313037</guid>
		</item>
		
		<item>
			<title>Re: Cancel button</title>
			<link>http://www.silverstripe.org/form-questions/show/18583#post313035</link>
			<description>&lt;p&gt;Did you manage to find a solution for this?&lt;/p&gt;&lt;p&gt;Thanks  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Cancel button | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/18583#post313035&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/18583&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 03 Apr 2012 17:39:51 +1200</pubDate>
			<dc:creator>SheaDawson</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/18583#post313035</guid>
		</item>
		
		<item>
			<title>[User Error] Uncaught ReflectionException: Class VolunteerRegistrationForm does not exist GET /silverstripe/?flush=1</title>
			<link>http://www.silverstripe.org/form-questions/show/19604</link>
			<description>&lt;p&gt;I got this error when I tried to rebuild the database with my newly created form VolunteerRegistrationForm.php file.&lt;/p&gt;&lt;p&gt;I couldn't understand where it got this error?&lt;/p&gt;&lt;p&gt;Here's the trace of the errors&lt;/p&gt;&lt;p&gt;Trace&lt;/p&gt;&lt;p&gt;ReflectionClass-&amp;gt;__construct(VolunteerRegistrationForm) &lt;br /&gt;Line 222 of Object.php&lt;br /&gt;Object::get_static(VolunteerRegistrationForm,db) &lt;br /&gt;Line 264 of Object.php&lt;br /&gt;Object::uninherited_static(VolunteerRegistrationForm,db) &lt;br /&gt;Line 2016 of DataObject.php&lt;br /&gt;DataObject::has_own_table(VolunteerRegistrationForm) &lt;br /&gt;Line 89 of ClassInfo.php&lt;br /&gt;ClassInfo::dataClassesFor(SiteTree) &lt;br /&gt;Line 2254 of DataObject.php&lt;br /&gt;DataObject-&amp;gt;buildSQL(HomepageForDomain REGEXP '(,|^) *localhost *(,|$)') &lt;br /&gt;Line 2519 of DataObject.php&lt;br /&gt;DataObject-&amp;gt;instance_get_one(HomepageForDomain REGEXP '(,|^) *localhost *(,|$)',) &lt;br /&gt;Line 2464 of DataObject.php&lt;br /&gt;DataObject::get_one(SiteTree,HomepageForDomain REGEXP '(,|^) *localhost *(,|$)') &lt;br /&gt;Line 64 of RootURLController.php&lt;br /&gt;RootURLController::get_homepage_urlsegment() &lt;br /&gt;Line 41 of RootURLController.php&lt;br /&gt;RootURLController-&amp;gt;handleRequest(HTTPRequest) &lt;br /&gt;Line 277 of Director.php&lt;br /&gt;Director::handleRequest(HTTPRequest,Session) &lt;br /&gt;Line 121 of Director.php&lt;br /&gt;Director::direct(/) &lt;br /&gt;Line 118 of main.php&lt;/p&gt;&lt;p&gt;I checked the following folders too.&lt;/p&gt;&lt;p&gt;C:\wamp\www\silverstripe\themes\mysite\templates&lt;br /&gt;C:\wamp\www\silverstripe\themes\mysite\templates\Layout&lt;br /&gt;C:\wamp\www\silverstripe\themes\mysite\templates\Includes&lt;/p&gt;&lt;p&gt;where I placed my VolunteerRegistrationForm.ss file.  &lt;/p&gt;&lt;p&gt;Obviously the database did not successfully create a record for my 'VolunteerRegistrationForm'. &lt;/p&gt;&lt;p&gt;I'm wondering where did I go wrong?&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: [User Error] Uncaught ReflectionException: Class VolunteerRegistrationForm does not exist GET /silverstripe/?flush=1 | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19604&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19604&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 03 Apr 2012 15:39:21 +1200</pubDate>
			<dc:creator>CMSPlayer</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19604</guid>
		</item>
		
		<item>
			<title>Incorporate data lookup function within the user defined form module</title>
			<link>http://www.silverstripe.org/form-questions/show/19597</link>
			<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;As per the thread subject heading, I've been studying the back-end code structure that makes how user defined form is crafted and I want to know the module is capable to handle data lookup function when entering the form's fields.&lt;/p&gt;&lt;p&gt;For eg, the application I'm trying to develop is online projects application form to be submitted by our online volunteer members.&lt;/p&gt;&lt;p&gt;I have the form with the following fields.&lt;/p&gt;&lt;p&gt;Membership ID&lt;br /&gt;First Name&lt;br /&gt;Last Name&lt;br /&gt;Email:&lt;/p&gt;&lt;p&gt;When a volunteer member enters a form with his membership id, I want the form to process the data lookup on his form and determine if this membership ID is valid.  If the membership ID is found, then message onscreen will confirm the member that the membership id is found thus 'First Name', 'Last Name', and 'Email' fields data are retrieved on the form.&lt;/p&gt;&lt;p&gt;I'm wondering would the user defined form module cater that functionality or do I need to extend that functionality in the user defined form?&lt;/p&gt;&lt;p&gt;Hope that makes sense.&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Incorporate data lookup function within the user defined form module | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19597&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19597&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Mon, 02 Apr 2012 19:33:25 +1200</pubDate>
			<dc:creator>CMSPlayer</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19597</guid>
		</item>
		
		<item>
			<title>Re: Retrieving Session data</title>
			<link>http://www.silverstripe.org/form-questions/show/19557#post312931</link>
			<description>&lt;p&gt;Thanks novaweb!&lt;/p&gt;&lt;p&gt;I worked this out late last night - however, you have been a little more efficient than me, so I will probably use this!&lt;/p&gt;&lt;p&gt;Chilli&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Retrieving Session data | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19557#post312931&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19557&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 27 Mar 2012 21:36:41 +1300</pubDate>
			<dc:creator>Chilli-D</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19557#post312931</guid>
		</item>
		
		<item>
			<title>Re: Retrieving Session data</title>
			<link>http://www.silverstripe.org/form-questions/show/19557#post312924</link>
			<description>&lt;p&gt;Hey Chilli-D,&lt;/p&gt;&lt;p&gt;Multiple things are wrong here, hopefully this should work for you:&lt;/p&gt;&lt;p&gt;Code:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function DirectionsForm() { &lt;br /&gt;$fields = new FieldSet( &lt;br /&gt;new TextField('Postcode', 'Enter Postcode') &lt;br /&gt;); &lt;/p&gt;&lt;p&gt;$actions = new FieldSet( &lt;br /&gt;new FormAction('doDirections', 'Submit') &lt;br /&gt;); &lt;/p&gt;&lt;p&gt;$form = new Form($this, 'DirectionsForm', $fields, $actions);     &lt;br /&gt;   return $form; &lt;br /&gt;} &lt;/p&gt;&lt;p&gt;function doDirections($data, $form) { &lt;br /&gt;   Session::set('StartPoint', $data['Postcode']); &lt;br /&gt;   Director::redirect('get-directions/'); &lt;br /&gt;}&lt;/p&gt;&lt;p&gt;function Postcode() { &lt;br /&gt;   Session::get('StartPoint'); &lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;Template:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;% control Postcode %&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;h2&amp;gt;My Postcode is: $Postcode&amp;lt;/h2&amp;gt; &lt;br /&gt;&amp;lt;% end_control %&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;

&lt;br /&gt;
&lt;p&gt;Posted to: Retrieving Session data | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/19557#post312924&quot; class=&quot;showLink&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/19557&quot; class=&quot;replyLink&quot;&gt;Post Reply&lt;/a&gt;&lt;/p&gt;
</description>
			<pubDate>Tue, 27 Mar 2012 14:32:35 +1300</pubDate>
			<dc:creator>novaweb</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/19557#post312924</guid>
		</item>
		

	</channel>
</rss>
