Jump to:

2002 Posts in 1422 Topics by 616 members

Form Questions

SilverStripe Forums » Form Questions » Please Help-Blank Page in Admin Menu on Form Submit

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

Page: 1
Go to End
Author Topic: 1128 Views
  • bharath
    Avatar
    Community Member
    3 Posts

    Please Help-Blank Page in Admin Menu on Form Submit Link to this post

    Blank Page in Admin Menu on Form Submit Link to this post

    30 April 2009 at 6:35pm
    edit Mark as Spam

    Hi all,

    I am New to silverstripe and my version silverstripe 2.2.3

    I am experiencing the problem when ever i submit the form page such as contact or subscribe page all the details are saving in database but creating a new blank page on Admin Menu.

    Please help to get out of this problem

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Please Help-Blank Page in Admin Menu on Form Submit Link to this post

    Most probably, you are not returning anything from the action that saves the data.

    For example, if the action is called doSave:

    function doSave($form, $data) {

       // Save your data

       return array();
    }

    The return call gives sapphire something to render. Alternatively, you could do:

       return $this->renderWith(array('DataSaved', 'Page'));

    to return the DataSaved template.

    You could also solve the problem by creating a template with the name of the page and action:

    Page_doSave.ss

    This becomes the default template for this action.

    1128 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.