Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Hello,

I've been experimenting with member module, but I've noticed that k_error variables are not being generated as they would on other forms.

For example, if there is an error with an email on couch cms form I can check 'k_error_email'. However, in the member module registration I don't get k_error_member_email. Having access to this variable is useful for conditionally formatting particular fields depending on the error.


Sam
Sam,

You can do that using regular error handling of forms in Couch.

The sample registration form your are referring to has the following code -
Code: Select all
Email Address:<br />
<cms:input name='member_email' type='text' /><br />

Now that is the usual cms:input tag. So, if you modify the code to make it as follows -
Code: Select all
Email Address:<br />
<cms:input name='member_email' type='text' required='1' validator='email' /><br />

you'll get the error message you are looking for.

Hope this helps.
2 posts Page 1 of 1
cron