<div dir="ltr">Alan,<div><br></div><div>Hope, you can get standard validators of a field dynamically by making  a call to Vtiger_Base_Validator_Js.getValidator() api by passing the element.</div><div><br></div><div>Please check getValidator() api in BaseValidator.js (modules/Vtiger/resources/validator).</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 11, 2015 at 3:25 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 09:49, Alan Lord wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 11/02/15 09:25, Uma S wrote:<br>
</blockquote>
<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
For example : Please check Vtiger_Percentage_Validator_Js in<br>
FieldValidator.js (modules/Vtiger/resources/<u></u>Validator) which is making<br>
use of Positive number validator.<br>
</blockquote>
<br></span><span class="">
Yes, I think this makes sense now.<br>
</span></blockquote>
<br>
Ahh, but hang on.<br>
<br>
I think tat this assumes that I *know* the "standard" validation rule for a field already...<br>
<br>
So I'm going to need to do some hacking in the Field Model to get the "standard" validation first and remember that somehow so that I can then extend my Validator_Js class with the correct parent. Question is, how to I dynamically do that?<br>
<br>
Al<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>