silverstripe Forms

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • Form::create($this, __FUNCTION__, $fields, $actions, $validator) // standard form creation
  • Form::create(...)->addExtraClass('my-css-class another-class') // add CSS classes to your Form
  • Form::create(...)->loadDataFrom(Member::get()->byID(1)); // populate a form with the details of an object


Got any silverstripe Question?