Jump to:

2012 Posts in 1438 Topics by 621 members

Form Questions

SilverStripe Forums » Form Questions » Url action and Form actions

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

Page: 1
Go to End
Author Topic: 730 Views
  • derbro
    Community Member
    1 Post

    Url action and Form actions Link to this post


    i try to execute a form by


    public function add($request) {
    $myID = $request->param('ID');
    $fields = new FieldSet(
    new TextField('Name', 'Name'),
    new DropdownField(
    $name = "Student",
    $title = "Student",
    $source = Student::getStudentDropDown(),
    $value = $myID
    $form = new Form($this, "add",
    new FieldSet(new FormAction('doAdd', 'Submit'))

    return array(
    'Title' => "Add Title",
    'addForm' => $form,

    this far everything is ok

    but the function doAdd never get executed
    i added

    public static $allowed_actions = array (

    A form not started by urlaction could call doAdd

    any Idea

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.