<?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>Forum posts to 'Form Questions'</title>
		<link>http://www.silverstripe.org/form-questions/rss</link>
		<atom:link href="http://www.silverstripe.org/form-questions/rss" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title>Custom validator error message </title>
			<link>http://www.silverstripe.org/form-questions/show/281113#post281113</link>
			<description>&lt;p&gt;Hello, &lt;/p&gt;&lt;p&gt;I was wondering if there is an easy way to override the error message returned by the validator. I looked at Sapphire/Validator.php, but I can't figure it out myself..&lt;/p&gt;&lt;p&gt;Cheers&lt;br /&gt;Katja&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Custom validator error message  &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/281113#post281113&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/281113#post281113&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 18 Mar 2010 01:40:02 +1300</pubDate>
			<dc:creator>katja</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/281113#post281113</guid>
		</item>
		
		<item>
			<title>Howto create/cusotmize  ur own user definedform?</title>
			<link>http://www.silverstripe.org/form-questions/show/281059#post281059</link>
			<description>&lt;p&gt;HI,&lt;/p&gt;&lt;p&gt;Id like to create some specific user forms for my site. I tried the userdefinedform module which is great to handle in the admin area but lacks the ability to design and apply ur own template to the form. &lt;/p&gt;&lt;p&gt;I therefore started to create my own user form following these 2 tutorials:&lt;br /&gt;&lt;a href=&quot;http://blog.mike-wittje.de/2009/06/11/formularerstellung-mit-silverstripe/&quot;&gt;http://blog.mike-wittje.de/2009/06/11/formularerstellung-mit-silverstripe/&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://www.ssbits.com/creating-a-simple-contact-form/&quot;&gt;http://www.ssbits.com/creating-a-simple-contact-form/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Now I would like to add the tabs and functionality simialr to the userdefinedfrom to my form:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;class SampleFormPage extends Page&lt;br /&gt;{&lt;/p&gt;&lt;p&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;static $db = array(&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Mailto' =&amp;gt; 'Varchar(100)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'SubmitText' =&amp;gt; 'Text'&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $has_many = array( &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;Submissions&quot; =&amp;gt; &quot;SubmittedForm&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;EmailRecipients&quot; =&amp;gt; &quot;UserDefinedForm_EmailRecipient&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function getCMSFields() {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields = parent::getCMSFields();&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// define tabs&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;findOrMakeTab('Root.Content.EmailRecipients', _t('EMAILRECIPIENTS', 'Email Recipients'));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;findOrMakeTab('Root.Content.OnComplete', _t('ONCOMPLETE', 'On Complete'));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;findOrMakeTab('Root.Content.Submissions', _t('SUBMISSIONS', 'Submissions'));&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// view the submissions&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab(&quot;Root.Content.Submissions&quot;, new CheckboxField('DisableSaveSubmissions',_t('SAVESUBMISSIONS',&quot;Disable Saving Submissions to Server&quot;)));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab(&quot;Root.Content.Submissions&quot;, new SubmittedFormReportField( &quot;Reports&quot;, _t('RECEIVED', 'Received Submissions'), &quot;&quot;, $this ) );&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// who do we email on submission&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$emailRecipients = new ComplexTableField(&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$this,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    &amp;nbsp;&amp;nbsp;&amp;nbsp;'EmailRecipients',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    &amp;nbsp;&amp;nbsp;&amp;nbsp;'EmailRecipient',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    &amp;nbsp;&amp;nbsp;&amp;nbsp;array(&lt;/p&gt;&lt;p&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;'EmailAddress' =&amp;gt; _t('EMAILADDRESS', 'Email'),&lt;/p&gt;&lt;p&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;'EmailSubject' =&amp;gt; _t('EMAILSUBJECT', 'Subject'),&lt;/p&gt;&lt;p&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;'EmailFrom' =&amp;gt; _t('EMAILFROM', 'From')&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    &amp;nbsp;&amp;nbsp;&amp;nbsp;),&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;    &amp;nbsp;&amp;nbsp;&amp;nbsp;'getCMSFields_forPopup',&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;FormID = '$this-&amp;gt;ID'&quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$emailRecipients-&amp;gt;setAddTitle(_t('AEMAILRECIPIENT', 'A Email Recipient'));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab(&quot;Root.Content.EmailRecipients&quot;, $emailRecipients);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// text to show on complete&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$onCompleteFieldSet = new FieldSet(&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new HtmlEditorField( &quot;OnCompleteMessage&quot;, _t('ONCOMPLETELABEL', 'Show on completion'),3,&quot;&quot;,_t('ONCOMPLETEMESSAGE', $this-&amp;gt;OnCompleteMessage), $this )&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldsToTab(&quot;Root.Content.OnComplete&quot;, $onCompleteFieldSet);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $fields;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;class SampleFormPage_Controller extends Page_Controller&lt;br /&gt;{&lt;/p&gt;&lt;p&gt;    function SampleForm()&lt;br /&gt;    {&lt;/p&gt;&lt;p&gt;        return new SampleForm($this,'SampleForm');&lt;/p&gt;&lt;p&gt;    }&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;The tabs appear but I won't get the email adding, the onsubmission text and the submission to work. &lt;br /&gt;Can anyone help me out,  show where i can find the answer or even know a better way to about this?&lt;/p&gt;&lt;p&gt;Your will be very much appreciated...&lt;br /&gt;Plautzer&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Howto create/cusotmize  ur own user definedform? &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/281059#post281059&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/281059#post281059&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 17 Mar 2010 02:25:26 +1300</pubDate>
			<dc:creator>plautzer</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/281059#post281059</guid>
		</item>
		
		<item>
			<title>Re: How to display Search Results on the same URL</title>
			<link>http://www.silverstripe.org/form-questions/show/276960?start=0#post280978</link>
			<description>&lt;p&gt;I was wondering something similar.  &lt;/p&gt;&lt;p&gt;I have a search form that works just fine...on the home page of the site.  but it keeps the home page URL.  What I want to do is send all searches from all forms to one page, my Listings page.  how can i set the form action to always go to /listings/SearchForm/?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: How to display Search Results on the same URL &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/276960?start=0#post280978&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/276960?start=0#post280978&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 16 Mar 2010 04:34:31 +1300</pubDate>
			<dc:creator>Terry Apodaca</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/276960?start=0#post280978</guid>
		</item>
		
		<item>
			<title>Re: Lost Password form not sending password reset email</title>
			<link>http://www.silverstripe.org/form-questions/show/274138?start=0#post280882</link>
			<description>&lt;p&gt;I am just launching my first SS site, and have found that the system isn't sending email (notably the lost password message).&lt;br /&gt;Can you point me toward information on any settings that I need to add to config (or anywhere else) to get this working?&lt;/p&gt;&lt;p&gt;this and trying to force the login to be under https are my only remaining issues.&lt;/p&gt;&lt;p&gt;Everything else in my site is working beautifully ;)   I am really looking forward to the new version and getting into my next (much larger) site.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Lost Password form not sending password reset email &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/274138?start=0#post280882&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/274138?start=0#post280882&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 14 Mar 2010 09:07:08 +1300</pubDate>
			<dc:creator>DsX</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/274138?start=0#post280882</guid>
		</item>
		
		<item>
			<title>Re: Passing data from first form to the second form</title>
			<link>http://www.silverstripe.org/form-questions/show/280803?start=0#post280849</link>
			<description>&lt;p&gt;In your UserReviewsCommentFormStepTwo since this is a controller action you need to return an array which passes the new form back to the template. &lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function UserReviewsCommentFormStepTwo($data, $form) {&lt;br /&gt;// ...&lt;/p&gt;&lt;p&gt;$form = new Form(...&lt;br /&gt;$form-&amp;gt;loadDataFrom($data);&lt;br /&gt;return $this-&amp;gt;customize('Form' =&amp;gt; $form); &lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;The other thing you could do is have a seperate action on your controller then you pass the form data via the session&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function doUserReviewsCommentFormStepOne($data, $form) {&lt;br /&gt;Session::set('FormData', $data);&lt;/p&gt;&lt;p&gt;$this-&amp;gt;redirect('steptwo');&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;Then you would have a template ClassName_steptwo.ss with the other form. Or another option is to checkout the MultiStep Form module. Which is a pretty good module. Supports going back / forward etc. Might be overkill for 2 pages but it does provide a nice solution&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Passing data from first form to the second form &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280803?start=0#post280849&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/280803?start=0#post280849&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 13 Mar 2010 14:42:03 +1300</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/280803?start=0#post280849</guid>
		</item>
		
		<item>
			<title>Default css style for mandatory fields?</title>
			<link>http://www.silverstripe.org/form-questions/show/280817#post280817</link>
			<description>&lt;p&gt;I've created a form with a couple of fields. Three of them are mandatory. So I used &lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;$validator = new RequiredFields('name', 'position', 'message');&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;to set them as mandatory. &lt;br /&gt;What are the possibilites to display these fields in a different manner (css, using a star (*) within the label,  ...)?&lt;/p&gt;&lt;p&gt;I'm using Silverstripe 2.3.6.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Default css style for mandatory fields? &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280817#post280817&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280817#post280817&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 13 Mar 2010 02:32:10 +1300</pubDate>
			<dc:creator>flinx</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/280817#post280817</guid>
		</item>
		
		<item>
			<title>Custom security login pages</title>
			<link>http://www.silverstripe.org/form-questions/show/280815#post280815</link>
			<description>&lt;p&gt;Is it possible to have two login pages? &lt;/p&gt;&lt;p&gt;One for login to the administrator, and one for login to the secure pages on the website?&lt;/p&gt;&lt;p&gt;If so how is this done?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Custom security login pages &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280815#post280815&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280815#post280815&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 13 Mar 2010 02:20:31 +1300</pubDate>
			<dc:creator>frabraha</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/280815#post280815</guid>
		</item>
		
		<item>
			<title>Passing data from first form to the second form</title>
			<link>http://www.silverstripe.org/form-questions/show/280803#post280803</link>
			<description>&lt;p&gt;hi! i would just like to ask if it's possible to create two forms. like for example, in my first form,i have a pros,cons and recommend room fields while on the second form i have name, email,often play category(drop down) and gender fields.what i want is on the first form,upon clicking the submit,it will go the 2nd form and that 2nd form will catch the data from the 1st form. upon completing all the fields, that's the time that it'll be saved.&lt;/p&gt;&lt;p&gt;for example, here is my first method:&lt;/p&gt;&lt;p&gt;function UserReviewsCommentFormStepOne() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Create 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 TextareaField(&quot;Pros&quot;,&quot;What did you like about this room?&quot;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextareaField(&quot;Cons&quot;,&quot;What did you not like in this room?&quot;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new OptionsetField(&quot;RecommendRoom&quot;,'Do you recommend this room?',array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Y'=&amp;gt;'Yes',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'N'=&amp;gt;'No'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$actions = new FieldSet(new FormAction('UserReviewsCommentFormStepTwo', 'Submit'));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$validator=new RequiredFields('Pros','Cons','RecommendRoom');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$form = new Form($this, 'UserReviewsCommentFormStepTwo', $fields, $actions,$validator);&lt;br /&gt;                return $form;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;and here is my second form that will catch the data from the first form:&lt;/p&gt;&lt;p&gt;function UserReviewsCommentFormStepTwo($data) {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if($data) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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 OptionsetField(&quot;Gender&quot;,'Sex',array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'M'=&amp;gt;'Male',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'F'=&amp;gt;'Female'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new DropdownField(&quot;OftenPlayCategory&quot;,'The Categories: ',$this-&amp;gt;getOftenPlayCategory(),$this-&amp;gt;val( 'ID' ),null,true),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField(&quot;Name&quot;,&quot;Your Name&quot;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField(&quot;Email&quot;,&quot;Your email address&quot;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new HiddenField(&quot;Pros&quot;,&quot;Pros: &quot;,$data['Pros']),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new HiddenField(&quot;Cons&quot;,&quot;Cons: &quot;,$data['Cons']),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new HiddenField(&quot;RecommendRoom&quot;,&quot;Recommend Room: &quot;,$data['RecommendRoom'])&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;$actions = new FieldSet(new FormAction('ProcessUserReviewsForm', 'Submit'));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$validator=new RequiredFields();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$form = new Form($this, 'ProcessUserReviewsForm', $fields, $actions, $validator);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;                return $form;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;upon doing this(running this), i get this error:&lt;br /&gt;[User Error] Uncaught Exception: Object-&amp;gt;__call(): the method 'getviewer' does not exist on 'Form'&lt;br /&gt;POST /UserReviewsWidget_Controller/UserReviewsCommentFormStepTwo&lt;/p&gt;&lt;p&gt;can anyone help me on how to solve this question of mine?thanks  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Passing data from first form to the second form &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280803#post280803&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280803#post280803&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 12 Mar 2010 20:16:41 +1300</pubDate>
			<dc:creator>px</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/280803#post280803</guid>
		</item>
		
		<item>
			<title>Re: adding new pages</title>
			<link>http://www.silverstripe.org/form-questions/show/280498?start=0#post280802</link>
			<description>&lt;p&gt;I found the answer: $hotel-&amp;gt;HotelCategoryID = $this-&amp;gt;dataRecord-&amp;gt;ID; must be $hotel-&amp;gt;HotelHolderID = $this-&amp;gt;dataRecord-&amp;gt;ID&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: adding new pages &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280498?start=0#post280802&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/280498?start=0#post280802&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 12 Mar 2010 19:50:46 +1300</pubDate>
			<dc:creator>Solo</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/280498?start=0#post280802</guid>
		</item>
		
		<item>
			<title>ImageField - "With one from the file store" sorting files</title>
			<link>http://www.silverstripe.org/form-questions/show/280801#post280801</link>
			<description>&lt;p&gt;I have an ImageField, and when I select &quot;With one from the file store&quot; and expand the dropdown, the files all display, but they seem to be in a random order. How can I get these to be sorted by filename?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: ImageField - &quot;With one from the file store&quot; sorting files &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280801#post280801&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280801#post280801&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 12 Mar 2010 19:36:53 +1300</pubDate>
			<dc:creator>chris.poirier</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/280801#post280801</guid>
		</item>
		
		<item>
			<title>Re: Accessing POST Parameters</title>
			<link>http://www.silverstripe.org/form-questions/show/280626?start=0#post280665</link>
			<description>&lt;p&gt;Thank you very much, this is very helpful. I wasn't aware of the 2nd and 3rd document. - I did have a method to handle the form but somehing with it must have not been right. Sure will manage now. Also interesting about sessions and cookies, I must have read that before but had not taken it in properly. &lt;/p&gt;&lt;p&gt;Katja&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Accessing POST Parameters &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280626?start=0#post280665&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/280626?start=0#post280665&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 11 Mar 2010 10:15:48 +1300</pubDate>
			<dc:creator>katja</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/280626?start=0#post280665</guid>
		</item>
		
		<item>
			<title>Re: Accessing POST Parameters</title>
			<link>http://www.silverstripe.org/form-questions/show/280626?start=0#post280662</link>
			<description>&lt;p&gt;Hi katja&lt;/p&gt;&lt;p&gt;Ok, I see what you want to do. It &lt;em&gt;should&lt;/em&gt; work actually, that's how forms are supposed to work, aren't they? How did you build your form?&lt;br /&gt;Be sure to write a method on your controller that handles the form. Have a look at the following doc-pages for pointers:&lt;br /&gt;&lt;a href=&quot;http://doc.silverstripe.org/doku.php?id=tutorial:3-forms&quot;&gt;http://doc.silverstripe.org/doku.php?id=tutorial:3-forms&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://doc.silverstripe.org/doku.php?id=recipes:forms&quot;&gt;http://doc.silverstripe.org/doku.php?id=recipes:forms&lt;/a&gt;&lt;br /&gt;&lt;a href=&quot;http://doc.silverstripe.org/doku.php?id=form&quot;&gt;http://doc.silverstripe.org/doku.php?id=form&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Oh and just to clarify the question regarding the session:&lt;br /&gt;Sessions store data on the server, a cookie is being used to identify the session (only the &lt;em&gt;session-id&lt;/em&gt;, but no actual data is stored in the cookie).&lt;br /&gt;Cookies however store whatever data you add to it on the client computer.&lt;br /&gt;Therefore a session is much safer, because you only transfer and store an identifier (session-id) instead of the sensitive data.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Accessing POST Parameters &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280626?start=0#post280662&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/280626?start=0#post280662&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 11 Mar 2010 09:50:40 +1300</pubDate>
			<dc:creator>banal</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/280626?start=0#post280662</guid>
		</item>
		
		<item>
			<title>Re: Accessing POST Parameters</title>
			<link>http://www.silverstripe.org/form-questions/show/280626?start=0#post280636</link>
			<description>&lt;p&gt;Thanks very much for your answer. Yes, for subsequent requests the parameters are gone, redirectBack() is already a subsequent request I suppose. Does that mean I cannot use SilverStripe forms in that way? I cannot process a form and show content depending on whether a checkbox in that form has been ticked? - Unless I first write it in a database, cookie or Session (Session::set stores the data in a cookie I think?).&lt;/p&gt;&lt;p&gt;What I wanted to do is ask people to tick a box, and only if that box is ticked they get redirected to the same page showing different content - or other page. But that page should not be accessible by directly calling the URL. Can you give me an idea how best to achieve that?&lt;/p&gt;&lt;p&gt;Thanks again&lt;br /&gt;Katja&lt;/p&gt;&lt;p&gt;P.S. For a moment I was not sure anymore if one can even do it in just PHP, so I wrote this little example. So what I mean is, how could I get the behaviour this script displays, but using SilverStripe? I'm sure it must be possible, but I couldn't figure it out so far.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;?php &lt;/p&gt;&lt;p&gt;if(isset($_POST[&quot;accept&quot;])) {&lt;br /&gt;echo $_POST[&quot;accept&quot;];} else { &lt;br /&gt;?&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;form method=&quot;post&quot; action=&quot;&quot;&amp;gt;&lt;br /&gt;&amp;lt;input type=&quot;checkbox&quot; name=&quot;accept&quot; id=&quot;accept&quot;  /&amp;gt;&lt;br /&gt;&amp;lt;label for=&quot;accept&quot;&amp;gt;I accept the Terms and Conditions&amp;lt;/label&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;lt;input  type=&quot;submit&quot; value=&quot;Submit&quot; title=&quot;Submit&quot; /&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;?php &lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Accessing POST Parameters &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280626?start=0#post280636&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/280626?start=0#post280636&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 11 Mar 2010 05:59:08 +1300</pubDate>
			<dc:creator>katja</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/280626?start=0#post280636</guid>
		</item>
		
		<item>
			<title>Re: TreeDropdownField: unselect selected value</title>
			<link>http://www.silverstripe.org/form-questions/show/255686?start=8#post280633</link>
			<description>&lt;p&gt;Been a long time since I posted this one  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt;  Thanks, Marijn&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: TreeDropdownField: unselect selected value &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/255686?start=8#post280633&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/255686?start=8#post280633&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 11 Mar 2010 05:48:43 +1300</pubDate>
			<dc:creator>martimiz</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/255686?start=8#post280633</guid>
		</item>
		
		<item>
			<title>Re: Accessing POST Parameters</title>
			<link>http://www.silverstripe.org/form-questions/show/280626?start=0#post280628</link>
			<description>&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;POST parameters are only accessible when you actually receive POST params with your HTTP Request. This usually happens when you submit a Form via POST, but of course these parameters aren't being re-sent for subsequent pages.&lt;br /&gt;If you want some sort of flag to be constantly set after you've received some POST parameters, you should either use the session or a cookie. Do not store sensitive information in the cookie though... well, actually you shouldn't store that in the session either, but it's the lesser of two evils.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Accessing POST Parameters &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280626?start=0#post280628&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/280626?start=0#post280628&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 11 Mar 2010 04:26:02 +1300</pubDate>
			<dc:creator>banal</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/280626?start=0#post280628</guid>
		</item>
		
		<item>
			<title>Accessing POST Parameters</title>
			<link>http://www.silverstripe.org/form-questions/show/280626#post280626</link>
			<description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;I can't work out how to access POST parameters of a form (without previously writing them to the database or a session). &lt;/p&gt;&lt;p&gt;I would like to make  the content of a page dependent on whether a checkbox has been ticked, but when after submitting the form I redirect to the same page, or another page, the parameters are lost. &lt;/p&gt;&lt;p&gt;Can somebody help? Thank you&lt;br /&gt;Katja&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Accessing POST Parameters &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280626#post280626&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280626#post280626&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 11 Mar 2010 03:36:08 +1300</pubDate>
			<dc:creator>katja</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/280626#post280626</guid>
		</item>
		
		<item>
			<title>Re: TreeDropdownField: unselect selected value</title>
			<link>http://www.silverstripe.org/form-questions/show/255686?start=8#post280617</link>
			<description>&lt;p&gt;yes, it should. &lt;br /&gt;But I don't need that function after all..  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: TreeDropdownField: unselect selected value &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/255686?start=8#post280617&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/255686?start=8#post280617&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 11 Mar 2010 00:31:09 +1300</pubDate>
			<dc:creator>frabraha</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/255686?start=8#post280617</guid>
		</item>
		
		<item>
			<title>Re: TreeDropdownField: unselect selected value</title>
			<link>http://www.silverstripe.org/form-questions/show/255686?start=8#post280615</link>
			<description>&lt;p&gt;Then it should also work for:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;new OptionalTreeDropdownField(&quot;InternLinkID&quot;, &quot;Velg hvor artikkelen skal linkes til&quot;, &quot;SiteTree&quot;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: TreeDropdownField: unselect selected value &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/255686?start=8#post280615&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/255686?start=8#post280615&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 11 Mar 2010 00:00:04 +1300</pubDate>
			<dc:creator>MarijnKampf</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/255686?start=8#post280615</guid>
		</item>
		
		<item>
			<title>Re: TreeDropdownField: unselect selected value</title>
			<link>http://www.silverstripe.org/form-questions/show/255686?start=8#post280614</link>
			<description>&lt;p&gt;no, both of them didn't store the value. &lt;br /&gt;But when I use this code: &lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;new TreeDropdownField(&quot;InternLinkID&quot;, &quot;Velg hvor artikkelen skal linkes til&quot;, &quot;SiteTree&quot;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;This stores the value.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: TreeDropdownField: unselect selected value &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/255686?start=8#post280614&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/255686?start=8#post280614&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 10 Mar 2010 23:48:06 +1300</pubDate>
			<dc:creator>frabraha</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/255686?start=8#post280614</guid>
		</item>
		
		<item>
			<title>Re: TreeDropdownField: unselect selected value</title>
			<link>http://www.silverstripe.org/form-questions/show/255686?start=8#post280611</link>
			<description>&lt;p&gt;And TreeDrowndownField stores the value? &lt;/p&gt;&lt;p&gt;The OptionalTreeDrowndownField extends the TreeDropdownField so I don't know why one would work and the other one doesn't. The only difference between the two I can think of is that if you do not select a value it tries to store a null value, but that should only be an  issue if you don't select a value.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: TreeDropdownField: unselect selected value &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/255686?start=8#post280611&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/255686?start=8#post280611&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 10 Mar 2010 23:09:39 +1300</pubDate>
			<dc:creator>MarijnKampf</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/255686?start=8#post280611</guid>
		</item>
		
		<item>
			<title>Re: TreeDropdownField: unselect selected value</title>
			<link>http://www.silverstripe.org/form-questions/show/255686?start=0#post280610</link>
			<description>&lt;p&gt;No, getting no error. It just won't store the value. &lt;/p&gt;&lt;p&gt;Never mind, looks like I don't need it anyway. &lt;/p&gt;&lt;p&gt;But thanks&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: TreeDropdownField: unselect selected value &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/255686?start=0#post280610&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/255686?start=0#post280610&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 10 Mar 2010 22:44:21 +1300</pubDate>
			<dc:creator>frabraha</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/255686?start=0#post280610</guid>
		</item>
		
		<item>
			<title>Re: UserForms Upgrading Probelm</title>
			<link>http://www.silverstripe.org/form-questions/show/280587?start=0#post280595</link>
			<description>&lt;p&gt;Thanks for your reply. Willr. Good to see you again.&lt;/p&gt;&lt;p&gt;I did upgrade to ss.2.3.6. and installed the userforms 0.2. It all works.&lt;/p&gt;&lt;p&gt;Did some research in the form about some previous posts. It said the ss.2.3.1 seems usaully met this problem. the upper vresion all works fine with userforms 0.2.&lt;/p&gt;&lt;p&gt;The things concerns me for not rushing upgrading the site to lastest one is that, it still using old gallery moduel. dont sure things and api still works fine with new core SS core cms and javascript.&lt;/p&gt;&lt;p&gt;After several testing, i did upgrade work from 2.3.1-&amp;gt; 2.3.6. &lt;/p&gt;&lt;p&gt;Seems works alright by far..&lt;/p&gt;&lt;p&gt;but thanks all the time.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: UserForms Upgrading Probelm &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280587?start=0#post280595&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/280587?start=0#post280595&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 10 Mar 2010 16:59:14 +1300</pubDate>
			<dc:creator>SSadmin</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/280587?start=0#post280595</guid>
		</item>
		
		<item>
			<title>Re: UserForms Upgrading Probelm</title>
			<link>http://www.silverstripe.org/form-questions/show/280587?start=0#post280592</link>
			<description>&lt;p&gt;Perhaps try upgrade the SS version to 2.3.6 and seeing if that has any issues.&lt;/p&gt;&lt;p&gt;You should probably upgrade to the latest SS version anyway since the last couple releases have been security fixes.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: UserForms Upgrading Probelm &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280587?start=0#post280592&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/280587?start=0#post280592&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 10 Mar 2010 16:33:55 +1300</pubDate>
			<dc:creator>Willr</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/280587?start=0#post280592</guid>
		</item>
		
		<item>
			<title>Re: Creating a custom form template from ContactPage.php</title>
			<link>http://www.silverstripe.org/form-questions/show/280478?start=0#post280591</link>
			<description>&lt;p&gt;So I'm almost there. But I can't get mollom to work with my custom form class. I get an error if I uncomment the line -- $form = new Form($this, '__construct', etc., etc. -- in the ContactForm.php. This is the code that i've seen mentioned in the forum. But it doesn't appear to work with custom form classes.&lt;/p&gt;&lt;p&gt;Any help is appreciated!&lt;br /&gt;Sam&lt;/p&gt;&lt;p&gt;ContactForm.php:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;?php&lt;br /&gt;class ContactForm extends Form {&lt;/p&gt;&lt;p&gt;   function __construct($controller, $name) {&lt;br /&gt;       $Params = Director::urlParams();&lt;br /&gt;       $fields = new FieldSet(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField('Name', 'Name*'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new EmailField('Email', 'Email*'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextareaField('Comments','Comments*'));&lt;/p&gt;&lt;p&gt;        $actions = new FieldSet(&lt;br /&gt;                new FormAction(&quot;SendContactForm&quot;, &quot;Submit&quot;));&lt;/p&gt;&lt;p&gt;       $requiredFields = new RequiredFields('Name', 'Email', 'Comments');&lt;/p&gt;&lt;p&gt; /*   $form = new Form($this, '__construct', $fields, $actions,$requiredFields);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$protector = SpamProtectorManager::update_form($form, 'Captcha');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if($protector) $protector-&amp;gt;setFieldMapping('Name', 'Email','Comments');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $form;  */&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;parent::__construct($controller, $name, $fields, $actions,$requiredFields);&lt;/p&gt;&lt;p&gt;} // END __construct&lt;/p&gt;&lt;p&gt;   function forTemplate() {&lt;br /&gt;      return $this-&amp;gt;renderWith(array(&lt;br /&gt;         $this-&amp;gt;class,&lt;br /&gt;         'Form'&lt;br /&gt;      ));&lt;br /&gt;   }&lt;br /&gt;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Creating a custom form template from ContactPage.php &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280478?start=0#post280591&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/280478?start=0#post280591&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 10 Mar 2010 16:13:17 +1300</pubDate>
			<dc:creator>Happy Sadhu</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/280478?start=0#post280591</guid>
		</item>
		
		<item>
			<title>UserForms Upgrading Probelm</title>
			<link>http://www.silverstripe.org/form-questions/show/280587#post280587</link>
			<description>&lt;p&gt;hey.guys.&lt;/p&gt;&lt;p&gt;I met a probem with userdefine form upgrading.&lt;/p&gt;&lt;p&gt;I try to use mollom and sapmprotector for userdefine form moduel. The one was built long time along, after i put up the mollom and spamprotection files, IT doesnt have a dropdown field type [spam protector field] for adding on in CMS backend. [i think its a old moduel].&lt;/p&gt;&lt;p&gt;So i decide to ugrade the userform to 0.2&lt;/p&gt;&lt;p&gt;canoot run &quot;yoursite.com/dev/tasks/UserFormsMigrationTask&quot; script.&lt;/p&gt;&lt;p&gt;So. i decided manually upgrade the form moduel.&lt;br /&gt;-&amp;gt;1. backup all the sql table in case something happens..&lt;br /&gt;-&amp;gt;2. delete the old userforms moduel &lt;br /&gt;-&amp;gt;3. put up the new userforms moduel 0.2 i wish&lt;br /&gt;-&amp;gt;run dev/build&lt;/p&gt;&lt;p&gt;BUT, Then i cannot get the CMS backend. &lt;br /&gt;run the &quot;dev&quot; model. it says :&lt;/p&gt;&lt;p&gt;[User Error] Object::__call() Method 'markUnexpanded' not found in class 'UserDefinedForm'&lt;br /&gt;GET /admin&lt;/p&gt;&lt;p&gt;Line 133 in /home/solartec/public_html/sapphire/core/Object.php&lt;/p&gt;&lt;p&gt;Im thinking. the ss im using was on 2.3.1 .&lt;br /&gt;dont know is that a probelm run the new version of userforms.&lt;br /&gt;OR i have upgrade  to new version of SS.&lt;/p&gt;&lt;p&gt;Any advice?!&lt;br /&gt;Thx in advanced.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: UserForms Upgrading Probelm &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280587#post280587&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280587#post280587&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 10 Mar 2010 12:13:17 +1300</pubDate>
			<dc:creator>SSadmin</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/280587#post280587</guid>
		</item>
		
		<item>
			<title>Re: TreeDropdownField: unselect selected value</title>
			<link>http://www.silverstripe.org/form-questions/show/255686?start=0#post280546</link>
			<description>&lt;p&gt;Are you sure you're not getting an error when you change it to:&lt;/p&gt;&lt;p&gt;$fields-&amp;gt;addFieldToTab('Root.Content.Main', new TreeDropdownField(&quot;InternLinkID&quot;, &quot;Velg hvor artikkelen skal linkes til&quot;, 'SiteTree', 'URLSegment', 'MenuTitle'));&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: TreeDropdownField: unselect selected value &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/255686?start=0#post280546&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/255686?start=0#post280546&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 10 Mar 2010 04:12:04 +1300</pubDate>
			<dc:creator>MarijnKampf</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/255686?start=0#post280546</guid>
		</item>
		
		<item>
			<title>Re: TreeDropdownField: unselect selected value</title>
			<link>http://www.silverstripe.org/form-questions/show/255686?start=0#post280543</link>
			<description>&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;public static $has_one = array(&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;'InternLink' =&amp;gt; 'SiteTree',);&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;$fields-&amp;gt;addFieldToTab('Root.Content.Main', new OptionalTreeDropdownField(&quot;InternLinkID&quot;, &quot;Velg hvor artikkelen skal linkes til&quot;, 'SiteTree', 'URLSegment', 'MenuTitle'));&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: TreeDropdownField: unselect selected value &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/255686?start=0#post280543&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/255686?start=0#post280543&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 10 Mar 2010 03:56:07 +1300</pubDate>
			<dc:creator>frabraha</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/255686?start=0#post280543</guid>
		</item>
		
		<item>
			<title>Re: TreeDropdownField: unselect selected value</title>
			<link>http://www.silverstripe.org/form-questions/show/255686?start=0#post280541</link>
			<description>&lt;p&gt;frabraha, if you use TreeDropDownField it works, but once you change your code to OptionalTreeDropDownField it doesn't?&lt;/p&gt;&lt;p&gt;Can you post a sample of your code?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: TreeDropdownField: unselect selected value &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/255686?start=0#post280541&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/255686?start=0#post280541&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 10 Mar 2010 03:50:40 +1300</pubDate>
			<dc:creator>MarijnKampf</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/255686?start=0#post280541</guid>
		</item>
		
		<item>
			<title>Re: TreeDropdownField: unselect selected value</title>
			<link>http://www.silverstripe.org/form-questions/show/255686?start=0#post280540</link>
			<description>&lt;p&gt;I have some problems with the OptionalTreeDropdownField.&lt;br /&gt;It doesn't save the value when I try to publish it. It just says Choose when I refresh the page.&lt;/p&gt;&lt;p&gt;With the normal TreeDropDownField you just write 'BasePageID', &quot;Base Page&quot;, 'SiteTree' and it all works fine, but that doesn't work here.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: TreeDropdownField: unselect selected value &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/255686?start=0#post280540&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/reply/255686?start=0#post280540&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Wed, 10 Mar 2010 03:43:30 +1300</pubDate>
			<dc:creator>frabraha</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/255686?start=0#post280540</guid>
		</item>
		
		<item>
			<title>adding new pages</title>
			<link>http://www.silverstripe.org/form-questions/show/280498#post280498</link>
			<description>&lt;p&gt;Sorry for stupid questions, but i m stuck: I make two pages types, the Hotel.php:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;?php&lt;br /&gt;class Hotel extends Page {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $db = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Title' =&amp;gt; 'Varchar(50)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Description' =&amp;gt; 'Text',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Location' =&amp;gt; 'Text',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Zvezd' =&amp;gt; 'Text',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Adress' =&amp;gt; 'Varchar(100)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Telefone' =&amp;gt; 'Varchar(100)',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Price' =&amp;gt; 'Text',&lt;br /&gt;    );   &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $has_one = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Image' =&amp;gt; 'Hotel_Image',&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'HotelHolder' =&amp;gt; 'HotelHolder',&lt;br /&gt;    );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $default_parent = 'HotelHolder';&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $can_be_root = false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $singular_name = 'Гостиница';&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;static $plural_name = 'Гостинницы';&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function getCMSFields() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields = parent::getCMSFields();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab('Root.Content.Main', new TextAreaField('Description', 'Описание'));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab('Root.Content.Main', new TextField('Location', 'Местоположение'));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab('Root.Content.Main', new TextField('Zvezd', 'Кол-во звезд'));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab('Root.Content.Main', new TextField('Adress', 'Адрес'));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab('Root.Content.Main', new TextField('Telefone', 'Телефон'));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$fields-&amp;gt;addFieldToTab('Root.Content.Main', new NumericField('Price', 'Цены'));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $fields;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;class Hotel_Controller extends Page_Controller {&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;?&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;and the hotelHolder.php:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;?php&lt;/p&gt;&lt;p&gt;class HotelHolder extends Page {&lt;br /&gt;    static $db = array(&lt;br /&gt;    );&lt;br /&gt;    static $has_one = array(&lt;br /&gt;    );&lt;br /&gt;    static $has_many = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Hotels' =&amp;gt; 'Hotel'&lt;br /&gt;    );&lt;br /&gt;    static $allowed_children = array('Hotel');&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;class HotelHolder_Controller extends Page_Controller {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function addHotelForm(){                               &lt;br /&gt;    return new Form($this, &quot;addHotelForm&quot;,&lt;br /&gt;        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('Title', 'Название'),&lt;br /&gt;            new TextareaField('Description', 'Описание'),&lt;br /&gt;            new TextField('Location', 'Местоположение'),  &lt;br /&gt;            new TextField('Zvezd', 'Кол-во звезд'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField('Adress', 'Адрес'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new TextField('Telefone', 'Телефон'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new NumericField('Price', 'Цены'),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new ImageField('Hotel_Image', 'Фото Гостиннцы')&lt;br /&gt;        ),&lt;br /&gt;       new FieldSet(&lt;br /&gt;            new FormAction(&quot;doSubmitHotel&quot;, &quot;добавить новую гостинницу&quot;)&lt;br /&gt;       ), &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;new RequiredFields(&lt;br /&gt;            'Description'&lt;br /&gt;       )&lt;br /&gt;    );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;//Функция обработки формы добавления новой гостинницы&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function doSubmitHotel($data, $form){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$hotel = new Hotel();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$form-&amp;gt;saveInto($hotel);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$hotel-&amp;gt;HotelCategoryID = $this-&amp;gt;dataRecord-&amp;gt;ID;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$hotel-&amp;gt;write();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$form-&amp;gt;sessionMessage(&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;'good'&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::redirectBack();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;?&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;adding new hotel pages is ok in the cms(backend), but, when i tried to add page through frontend - the new pages puts in the root folder not in hotelHolder as i want. What is wrong with my code? Can somebody help?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: adding new pages &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280498#post280498&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/form-questions/show/280498#post280498&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 09 Mar 2010 15:14:06 +1300</pubDate>
			<dc:creator>Solo</dc:creator>
			<guid>http://www.silverstripe.org/form-questions/show/280498#post280498</guid>
		</item>
		

	</channel>
</rss>