Skip to content

Instantly share code, notes, and snippets.

@Firesphere
Created November 13, 2017 08:04
Show Gist options
  • Save Firesphere/a25ce95c94f2932bc00eedc41f811db4 to your computer and use it in GitHub Desktop.
Save Firesphere/a25ce95c94f2932bc00eedc41f811db4 to your computer and use it in GitHub Desktop.
class MainApplicationFormStep1 extends MultiFormStep
{
public static $next_steps = 'MainApplicationFormStep2';
public function getFields() {
return FieldList::create(
$name = TextField::create('FirstName', 'First name', 'spazz', '180'),
$surname = TextField::create('Surname', 'Surname')
);
$name->setAttribute('ID', 'MyID');
$surname->setAttribute('ID', 'MyID');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment