hi there,
I have this function to generate a registration form:
public function getFrontendFields() {
$fields = $this->scaffoldFormFields(array(
'restrictFields' => array(
'Anrede',
'FirstName',
'Surname',
'Email',
'Geburtsdatum',
),
'fieldClasses' => array(
'Email' => 'EmailField',
)
));
return $fields;
}
so, first problem:
on the page the ordering of the fields is not the same, the ordering is:
FirstName,
Surname,
Email,
Anrede (Salutation in German),
Geburtsdatum (Birthday in German)
how can I order the fields? for example the salutation should be on first place :-)
next question:
how can I implement a CompositeDateField for my birthday field?
If I would generate a normal form I would use:
$geburtsdatum = new CompositeDateField(
'Geburtstag',
'Geburtstag (Tag, Monat,Jahr)','','1910-2009'
);
how can I implement this into my getFrontendFields Code?
thanx
Daniel