<div>Hi Nate Peterson,</div>
<div> </div>
<div>I would say going to Save and then checking for duplicate would be too late. Preferably, it should be done even before calling Save.<br></div>
<div>Say for exampe, In Accounts module, even before Submitting the form, we do an ajax request to check if the Account with same name exists. If exists, then we don't submit the form. Otherwise we submit the form for Save.<br>
</div>
<div class="gmail_quote">On Thu, Mar 17, 2011 at 1:45 AM, Nate Peterson <span dir="ltr"><<a href="mailto:n.peterson01@gmail.com">n.peterson01@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hello,
<div><br></div>
<div>I am looking for a way to enable duplicate entry checking in other modules like Leads the same way it is used when you add a new User.</div>
<div>In short, when you click 'Save' in the 'Create New Lead' section, It checks the entered fields (or at least the required ones) against those fields in the database and checks for duplicates. If it finds one, it won't let you save. I prefer this method to going through afterwards and weeding them out.</div>
<div><br></div>
<div>Has anyone done this before? Is there an add-on for this? Can anyone at least point me in the right direction as to how to accomplish this?</div>
<div><br></div>
<div>So far, focusing on the Leads module, the closest thing I have found is save.php in the Leads folder, but I am kind of at a loss as to what does what here or if this is the right place to be looking.</div>
<div><br></div>
<div>Thanks in advance for any help and/or insight anyone can offer.</div>
<div><br></div>
<div><br></div><br>_______________________________________________<br><a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Asha<br>vtiger Team<br>