<div dir="ltr">Hi Alan,<div><br></div><div><span style="font-size:13px"><i>One question, does this validation engine care about the view? What I mean is is the validation the same for Edit and for Detail views?</i></span><br></div><div><br></div><div>Yes, this validation will take care of views. Because these validations files are loaded in Basic.php (modules/Vtiger/views) which is loaded in all the views.</div><div><br></div><div><br></div><div>Thanks! for notification about <span style="font-size:13px">Vtig</span><span style="font-size:13px">er_EmailValidator_Js.</span></div><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">Currently, we are using EmailValidator defined in </span><span style="font-size:13px">modules/Vtiger/resources/</span><u style="font-size:13px"></u><span style="font-size:13px">valid</span><span style="font-size:13px">ator/FieldValidator.js and validator in EmailValidator is no where used.</span></div><div><span style="font-size:13px"><br></span></div><div><span style="font-size:13px">I have noted this here in <a href="http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8462">trac</a>, will look into this on the go.</span></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 11, 2015 at 8:10 PM, Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 11/02/15 10:23, Uma S wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Alan,<br>
<br>
Hope, you can get standard validators of a field dynamically by making<br>
a call to Vtiger_Base_Validator_Js.<u></u>getValidator() api by passing the<br>
element.<br>
<br>
Please check getValidator() api in BaseValidator.js<br>
(modules/Vtiger/resources/<u></u>validator).<br>
</blockquote>
<br></span>
Thanks Uma, this is starting to make sense... I am now able get a list of current validations for any field I want on a module. One question, does this validation engine care about the view? What I mean is is the validation the same for Edit and for Detail views?<br>
<br>
Also, I wanted to note something before I forgot it - I think there might be an issue in vtiger...<br>
<br>
There is modules/Vtiger/resources/<u></u>validator/FieldValidator.js and in that file is a class<br>
<br>
"Vtiger_Base_Validator_Js("<u></u>Vtiger_Email_Validator_Js",{"<br>
<br>
There is *also* a file modules/Vtiger/resources/<u></u>validator/EmailValidator.js which contains a class<br>
<br>
"Vtiger_BaseValidator_Js("<u></u>Vtiger_EmailValidator_Js",{},{<u></u>"<br>
<br>
These would appear to be doing the same thing but with slightly different classnames so I wonder why there are two?<br>
<br>
Alan<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div></div>
</div>