Validating form before submission

scarface 16 Dec, 2008
Hi guys

I have my registration fields working perfectly now apart from 2 issues.

No email goes out to the person registering with the activation link. Does anyone have any ideas why? I have everything set to yes that relates to this.

Also, how can I validate the registration form entries with whats already been sent? At the moment the forms aren't validated with whats already been submitted, so the user doesn't know whether or not the registration has been accepted, as the form is still submitted, and no messages are displayed i.e. that username is already in use. It just doesn't save or record any of the details

Thanks
Tony
Max_admin 16 Dec, 2008
Hi Tony,

regarding your first question, did you set the user email to yes in the Joomla registration plugin config page ?

I think its better to read the tutorial about the Joomla registration plugin from Downloads/Chronoforms tutorials/ at our site here!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
scarface 16 Dec, 2008
Hi Max

yes all set to yes.

Tony
scarface 17 Dec, 2008
Hi Max

ok all the emails and activation emails are working correctly now. Thanks for your help on that.

Can you also advise me how I would validate the forms against previous details already held in the database. At the moment the registration forms are submitted but not recorded if the password or username is already taken.

I would like to display a message instead so that the person registering can try again.

Thanks
Max_admin 17 Dec, 2008
Hi scarface,

if there is a username duplicate then Joomla shows an error and this should appear, you don't get this ? do you have a redirect URL ?

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
scarface 18 Dec, 2008
Hi Max

no I don't get any error messages for duplicates. The form still submits, but nothing gets stored to the database, so the user would think they have registered.

Yes I do have a redirect once the form is submitted, which goes to a thankyou page.

Thanks again
Tony
scarface 18 Dec, 2008
it seems that if any details are matched to any details already submitted by other users, the the emial confirmation bith to admin and the user do not send.

I need to get an arror message to display to say that the username or password are already in use and try again. I don't want it to fail if the email has been used. Only want to check username and password.

At present it seems to check everything, and any duplications, just doesn't send.

Thanks
Max_admin 18 Dec, 2008
Hi scarface,

please remove the redirect and test with a duplicate, if there is any then it should show some error, Joomla will check the email duplicates too and its not preferable to change this!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
scarface 18 Dec, 2008
Hi Max

ok removed the redirect, and submitted a new registration with duplicates. The form still submitted, and just loaded a blank page, but no errors displayed, and no emails were sent

Thanks
Tony
Max_admin 18 Dec, 2008
Hi Tony,

and when you have no duplicates, a new user is added ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
scarface 18 Dec, 2008
Hi Max

ok when I used new details, I got a page which said that I was being sent an email etc. The user was recorded and added to the database - though no emails were sent - either to admin or the new user

When I used duplicate details, the page was blank when the form was submitted

Thanks
Tony
scarface 18 Dec, 2008
Also Max

when the details are checked, you said it check for emails duplicated as well, is that on a per domain basis? i.e. if I register with [email]info@mydomain.com[/email], can I also register with [email]table@mydomain.com[/email] or is it the mydomain.com that is checked??

From what I can gather is the mydomain.com that is checked

Thanks
Tony
scarface 19 Dec, 2008
Hi Max

just wondering if you had any more thoughts on how I can get this resolved?

Thanks
Tony
GreyHead 19 Dec, 2008
Hi Tony,

Joomla checks the Username and email (the whole thing, not just the domain) for duplication. I regularly use [email]user+1@example.com[/email], [email]user+2@example.com[/email] for testing and they do not show as duplicates.

If you are on Joomla 1.5 then a red error message should show up (I've seen it a dozen times this afternoon). What theme are you using? I wonder if that is hiding the messages somehow?

Bob
scarface 19 Dec, 2008
Hi Bob

the site is at <!-- w --><a class="postlink" href="http://www.soulam.co.uk">www.soulam.co.uk</a><!-- w -->, and its a custom theme from <!-- w --><a class="postlink" href="http://www.joomlaxtc.com">www.joomlaxtc.com</a><!-- w -->

Thanks
Tony
GreyHead 19 Dec, 2008
Hi Tony,

The Joomla messages show OK - but I was able to register the same username & email twice (assuming that I remembered them correctly) without any error showing up. So far only one confirmation email.

Bob
scarface 19 Dec, 2008
Hi Bob

therein lies the problem. You should have received an error to tell you those details have already been used when you submitted the second registration. You won't get a second confirmation email as the second registration is not recorded due to duplicates. So as a user you would never know, and assume your registration had been successful.

I have reverted back to the original default registration page, and have the same problem. Would that point to a template/theme problem then??

Thanks
Tony
GreyHead 19 Dec, 2008
Hi Tony,

Yes I see what's happening - don't know what the problem is though :-(

I was testing a client site today and kept getting the 'Duplicate username/password' errors showing up.

I'll scratch my head some more and see if inspiration strikes . . .

Bob
mukcung 22 May, 2009
Hi, I'm using Joomla 1.5.10 and Chrono Forms 3.1 RC5 and still experiencing this issue. User registration working well, only experiencing problem when registering duplicate user name (testing it for duplicate checking).
Any solution for it yet?

Kind regards,

Acung
Max_admin 24 May, 2009
Hi Acung,

From the top menu here:
Tutorials menu > Chronoforms Plugins menu > Paid regsitration tutorial link

there are all the details and code needed to check for valid registration and how to show an error if there is any, like if there is any duplicates!

there are form posts about this too, just make sure they are for the latest version!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.