Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

The default Login Form - add default value's


Go to End


19 Posts   5408 Views

Avatar
UncleCheese

Forum Moderator, 4102 Posts

10 August 2010 at 9:44am

parent::__construct

Avatar
borriej

Community Member, 267 Posts

10 August 2010 at 6:58pm

IT WORKS :D !!!
THANK YOU!

Avatar
borriej

Community Member, 267 Posts

10 August 2010 at 7:35pm

The default value does display.

But when you log-in with the correct password/username you get an error:

Fatal error: Call to a member function setValue() on a non-object in /public/sites/www.url.nl/mysite/code/MyLoginForm.php on line 6

And a side note:
the default value was displayed, but with the script: (http://www.yourhtmlsource.com/forms/clearingdefaulttext.html)

<script type="text/javascript" src="util-functions.js"></script>
<script type="text/javascript" src="clear-default-text.js"></script>

the value doesn't dissappear when you click inside the textField.. i have the correct classname on the fields.

Any ideas?

Go to Top