[solved] selfregistration & onsubmit with custom javascript
Posted: Wed Jul 15, 2009 4:01 am
Hi,
CMSmadesimple: 1.5.2
FEU: 1.6.4
SelfRegistration: 1.2.3
In order to implement a javascript check on email based on domain name, I added a "onsubmit" to the default form in the template of the selfregistration module.
I've replaced {$startform} with
and {$endform}
with .
My CheckMail() is:
Without entering anything or a bogus email, the javascript alert is displayed as expected.
If I enter a valid email, the form is submitted and nothing happens, that is I can see
the form being submitted, but the email confirmation message is not displayed, and
no user is created in the selfregistration module.
If I put back {$startform} and {$endform}, it works again, but then I can't add an onsubmit action.
Is there any other way to do a custom check on email?
Thanks,
Jim
CMSmadesimple: 1.5.2
FEU: 1.6.4
SelfRegistration: 1.2.3
In order to implement a javascript check on email based on domain name, I added a "onsubmit" to the default form in the template of the selfregistration module.
I've replaced {$startform} with
and {$endform}
with .
My CheckMail() is:
Without entering anything or a bogus email, the javascript alert is displayed as expected.
If I enter a valid email, the form is submitted and nothing happens, that is I can see
the form being submitted, but the email confirmation message is not displayed, and
no user is created in the selfregistration module.
If I put back {$startform} and {$endform}, it works again, but then I can't add an onsubmit action.
Is there any other way to do a custom check on email?
Thanks,
Jim