Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Forms tutorial

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

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

Page: 1
Go to End
Author Topic: 1693 Views
  • dorset_snapper
    Avatar
    Community Member
    4 Posts

    Forms tutorial Link to this post

    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 ?

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Forms tutorial Link to this post

    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.

  • dorset_snapper
    Avatar
    Community Member
    4 Posts

    Re: Forms tutorial Link to this post

    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 ?

    1693 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.