public function CreationForm()
    {
        /** @var FieldList $fields */
        $fields = singleton($this->getRecordType())->getFrontEndFields();
        $fields->push(new HiddenField('ID'));
        $form = new Form(
            $this,
            'CreationForm',
            $fields,
            new FieldList(
                new FormAction('doSave', 'Save'),
                new FormAction('doCancel', 'Cancel')
            ));
        return $form;
    }
public function CreationForm()
    {
        /** @var FieldList $fields */
        $fields = singleton($this->getRecordType())->getFrontEndFields();
        $fields->push(new HiddenField('ID'));
        $form = new Form(
            $this,
            'CreationForm',
            $fields,
            new FieldList(
                new FormAction('doSave', 'Save'),
                new FormAction('doCancel', 'Cancel')
            ));
        return $form;
    }
public function CreationForm ( ) { /** @var FieldList $fields */ $ fields = singleton ( $ this -> getRecordType ( ) ) -> getFrontEndFields ( ) ; $ fields -> push ( new HiddenField ( 'ID' ) ) ; $ form = new Form ( $ this , 'CreationForm' , $ fields , new FieldList ( new FormAction ( 'doSave' , 'Save' ) , new FormAction ( 'doCancel' , 'Cancel' ) ) ) ; return $ form ; }
Scaffolds a form for creating managed data types

@return Form
Scaffolds a form for creating managed data types