Hi mmh, This is my form function but there something that seems to be lacking cause i don't get any errors but the datepicker is still not working
function Form() {
$datefield = new DateField( "Birthday" );
$datefield->setConfig( "showcalendar", true );
$form = new Form($this, "Form", new FieldSet(
// List your fields here
new TextField("FirstName", "First name"),
new TextField("LastName"),
new TextField("Gender"),
$datefield,
new EmailField("Email", "Email address"),
new PasswordField("Password", "Password"),
new PasswordField("Password2", "Retype Password"),
new TextField("BusinessName","Business Name"),
new TextareaField("BusinessLocation", "Business Address")
), new FieldSet(
// List the action buttons here
new FormAction("SignupAction", "Submit","","","button-sign-up")
), new RequiredFields( "Email", "FirstName", "Surname" )
);
$protector = SpamProtectorManager::update_form($form, 'Captcha');
return $form;
}