FormField checkbox1 = Y.newCheckboxField(FormFieldConfig.create().
name("myCheckbox").value("check").label("Do you like sports?"));
Window.alert(Y.FormField().INVALID_DATE_MESSAGE()+" - "+checkbox1.label());
Form form1 = Y.newForm(FormConfig.create().method("post").
action("/test.php?action=submit").
inlineValidation(true).
children(
checkbox1,
FormFieldConfig.create("text").name("input1").label("Email input").validator("email"),
FormFieldConfig.create("SelectField").label("Radio Choices").name("choiceinput").choices(
FormFieldConfig.create().label("Choice A").value("A"),
FormFieldConfig.create().label("Choice B").value("B")
),
FormFieldConfig.create("SubmitButton").value("submit")
));
form1.render(parent);
//OK, now just use independent form widgets
// panel1 = parent.append("<span></span>");
}