Forums

Customize Ajax Check in for email at vTiger

dheimoz 24 Feb, 2010
Hello everyone

Bob, been a while. Far as I could read, this must be a tiresome question, the "mighty" Check if an email has already been used. As I have read, two approaches are correct, server side validation and Ajax responses. Regarding server/side I must say that´s is very easy to implement and works like a charm but my issue is the following:

I have configured Webforms for vTiger, and with a "simple" HTML form whose action parameter is www/modules/Webforms/post.php allows you to create Leads, Contacts and so on. Well I have been trying with our trusty ChronoForms and as expected work perfect. Nonetheless, Webforms does not check duplicate mandatory fields, for instance email field. First I tried a server side validation approach, of course it let me check vtiger_leaddetails table for test purposes, but as soon as I put the url for POST, server side validation became useless.

I have been reading all day long how I can use ajax in order to check if email input has already been saved at database, but I quit, I must confess I'm not very keen at php or javascript. Hope you can help me and point me at the right direction.

Yes I'm well aware that there is a solved issue and are tons of posts here, But maybe I'm more ignorant that I expect. Thanks again and hope you can help a simple newbie.
dheimoz 09 Mar, 2010
In the end, I create a new form and with the help of JQuery I check if the email exists, now behaves as I wanted.

Cheers, and don´t give up on CF, they are excellent.
This topic is locked and no more replies can be posted.