public function ItemEditForm()
 {
     $form = parent::ItemEditForm();
     if ($form) {
         // Update the default parent field
         $parentParam = Controller::curr()->request->requestVar('ParentID');
         $parent_field = $form->Fields()->dataFieldByName("ParentID");
         if ($parentParam && $parent_field) {
             $parent_field->setValue($parentParam);
         }
         return $form;
     }
 }
 /**
  * Overload default edit form
  *
  * @return Form
  */
 public function ItemEditForm()
 {
     $form = parent::ItemEditForm();
     return $form;
 }