title: Submit Form in Dataobject - Silverstripe 3.1
body: <p>I'm using the DataobjectAsPage Module from Aram.
  Now I want to have a Form on each DOaP site. I created the form like this in my Dataobject</p>
  
  <pre><code>public function RegistrationForm() {
  
      $fields = new FieldList(
          new TextField('Name'),
          new TextField('PlusOne')
      );
  
      $actions = new FieldList(
          new FormAction('doRegistration', 'Submit')
      );
  
      return new Form($this, 'RegistrationForm', $fields, $actions);
  }
  
  public function doRegistration($data, $form) {
  
      $submission = new RegistrationObject();
      $form-&gt;saveInto($submission);
      $submission-&gt;EventObjectID = $this-&gt;ID;
      $submission-&gt;write();
  
      return $this-&gt;redirectBack();
  
  }
  </code></pre>
  
  <p>my Dataobject_show.ss Template looks like this</p>
  
  <pre><code>$RegistrationForm
  &lt;% loop Registrations %&gt;
      $Name - $PlusOne
  &lt;% end_loop %&gt;
  </code></pre>
  
  <p>the form is there but the data doesn't submit. The same form works on a normal page but not on a dataobject. how can i fix this?</p>
  
  <p>thx in advance</p>