HI.
First to say this is really a great module.

But it would be nice to have a "form_set_error()" message on the user/register form, if the user does not check the required checkboxe(s), he cannot see why registering cannot be applied.
Maybe there should be such a message, but nothing like this is appearing on my site.
I looked through the source code, but i cannot find the function, where i could implement this.
Could you please help me managing this?

Thanx for your support
dennis605

Comments

dennis605’s picture

Doesn't anybody has some little suggestion?

iStryker’s picture

Status: Active » Closed (works as designed)

If the checkbox is required it throws an error.

  • Accept Terms & Conditions of Use field is required.

is the error message that gets thrown in garland.

There is no validation in the code other than #required => TRUE.

dennis605’s picture

Thank you iStryker,

you made my day!

btw. I'm using the wonderful acquia marina theme, and the checkbox is marked as required. If i didn't use your way, and the checkbox is not checked, the user can not go on with registering, but there's no message appearing, which is telling, what's the prob.

I wonder why this is marked as 'works as designed'.

But anyway, thanx for your help.
really a great module.

iStryker’s picture

If the box it not checked off, it shows the default Drupal form error message. Hence, this thread status being changed to 'works as designed'. I'll post a link here to where I helped you extend this functionality, to include a custom message. http://drupal.stackexchange.com/questions/6732/force-the-module-legal-to...