17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1564 Views |
-
Forms tutorial

18 May 2007 at 7:13pm Last edited: 18 May 2007 7:54pm
Hi all,
I'm a newcomer to SilverStripe, but finding it relatively easy to get to grips with (I'm a designer, so bear with me!). I'm working through the tutorials (which are very good) but on the third one relating to forms, it says I should use the ReceivedFormSubmission template. Am I right in thinking that this doesn't actually exist and i have to create it ?Looking at the tutorial: When the user submits a form, the page will be rerendered with the ReceivedFormSubmission template. Here we define a simple template which displays a message, which can be customised in the CMS on the ‘On Complete’ tab of the ‘Content’ tab.
mysite/templates/ReceivedFormSubmission.ss
$OnCompleteMessage
Is there something missing ?
-
Re: Forms tutorial

20 May 2007 at 4:37pm
yes you are correct, ReceivedForm does not exist and you need to create a one. This is just basically the page template that is displayed after you have submitted the form. You dont *have* to have it (The site will work without it) but its nice if when you submit the form you have a "Thanks for doing something" message.
-
Re: Forms tutorial

21 May 2007 at 5:52am
When I executed the form without the received form submission page, it sent an email but without any content. it didn't pass details into the database either. Have I missed anything ?
| 1564 Views | ||
|
Page:
1
|
Go to Top |


