Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Forms tutorial


Reply

3 Posts   1702 Views

Avatar
dorset_snapper

18 May 2007 at 7:13pm (Last edited: 18 May 2007 7:54pm), Community Member, 4 Posts

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 ?

Avatar
Willr

20 May 2007 at 4:37pm Forum Moderator, 5511 Posts

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.

Avatar
dorset_snapper

21 May 2007 at 5:52am Community Member, 4 Posts

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 ?