<div dir="ltr">I guess we can even override the validation for specific modules,<div><br></div><div>

<pre class="gmail-code gmail-highlight" style="box-sizing:border-box;overflow-x:auto;overflow-y:hidden;font-family:Menlo,"Liberation Mono",Consolas,"DejaVu Sans Mono","Ubuntu Mono","Courier New","andale mono","lucida console",monospace;display:block;padding:10px;margin:0px;word-break:break-all;word-wrap:normal;color:rgb(51,51,51);background-color:rgb(255,255,255);border-top:none;border-right:none;border-bottom:none;border-left:1px solid rgb(187,187,187);border-radius:0px;white-space:pre;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;font-size:13px;line-height:1.5"><code style="box-sizing:border-box;font-family:Menlo,"Liberation Mono",Consolas,"DejaVu Sans Mono","Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:inherit;padding:0px;color:inherit;background-color:transparent;border-radius:0px;white-space:pre;word-wrap:normal"><span id="gmail-LC77" class="gmail-line" style="box-sizing:border-box;display:inline"><span id="gmail-LC92" class="gmail-line" style="box-sizing:border-box;display:inline">getModuleSpecificValidatorClassName : function(validatorName) {</span>
<span id="gmail-LC93" class="gmail-line" style="box-sizing:border-box;display:inline">              var moduleName = app.getModuleName();</span>
<span id="gmail-LC94" class="gmail-line" style="box-sizing:border-box;display:inline">              var moduleSpecificClassName = moduleName + '_' + validatorName + '_Validator';</span>
<span id="gmail-LC95" class="gmail-line" style="box-sizing:border-box;display:inline">              return moduleSpecificClassName;</span>
<span id="gmail-LC96" class="gmail-line" style="box-sizing:border-box;display:inline">      },</span></span></code></pre>

<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 9, 2018 at 3:41 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">Just FYI in case this helps someone else.<br>
<br>
It is possible:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
    /**<br>
     * Override validator(s) in layouts/v7/modules/Vtiger/reso<wbr>urces/validation.js<br>
    **/<br>
    setValidators : function() {<br>
        jQuery.validator.methods.phone = function(value, element, params) {<br>
                    try {<br>
                            if(!value) return true;<br>
                            if(value == 0) return true;<br>
                            var tenDigitRegex = /(^[0-9]{10})$/ ;<br>
                            var result = tenDigitRegex.test(value);<br>
                            if (!result) {<br>
                                    return false;<br>
                            }<br>
                            return true;<br>
                    } catch(err) {<br>
                            console.log(err);<br>
                            return false;<br>
                    }<br>
        }, jQuery.validator.messages.phon<wbr>e = app.vtranslate('Number must be 10 digits only');<br>
    },<br>
</blockquote>
<br>
<br>
______________________________<wbr>_________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>