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.

Archive /

Our old forums are still available as a read-only archive.

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

Extending PageCommentInterface


Go to End


4 Posts   1906 Views

Avatar
dio5

Community Member, 501 Posts

8 December 2007 at 5:53am

Ok guys,

I'm extending the pagecomment and ran into next problem:

I've set up a few requiredfields, validator... but thing is, it doesn't work as it should.
It does validate, but doesn't send back any error messages like
'Email is required' with js off.

The client side validation does work though.

You can view my code here:

http://pastebin.com/d7994bc88

Speaking of validation, I think the js-validation might be improved to. It doesn't hold me from just filling out whitespace and fails completely in Opera.

Avatar
dio5

Community Member, 501 Posts

8 December 2007 at 1:32pm

Maybe a bug, shall I open a ticket for it?

Avatar
Sean

Forum Moderator, 922 Posts

9 December 2007 at 5:48pm

I can't seem to view your code... is it actually there?

Cheers,
Sean

Avatar
dio5

Community Member, 501 Posts

10 December 2007 at 12:35am

Oh, it had probably expired.

Try this:

http://pastie.caboo.se/126182

cheerz