when the page on my site loads, the 'username' form gets selected and my page slides down to view the widget. how do i change this, so that when the page loads none of the forms are selected?
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
I would like to know how to do this aswell.
Did you get it sorted Nickt?
Got it! You can add the following;
class Page_Controller extends ContentController {
public function LoginForm() {
$Validator=Validator::get_javascript_validator_handler();
Validator::set_javascript_validation_handler('none');
$form=parent::LoginForm();
Validator::set_javascript_validation_handler($Validator);
return $form;
}