CRM CONNECTIVITY TO PORTAL Archives - Microsoft Dynamics 365 Blog http://microsoftdynamics.in/category/crm-connectivity-to-portal/ Microsoft Dynamics CRM . Microsoft Power Platform Fri, 11 Apr 2014 05:33:00 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 https://i0.wp.com/microsoftdynamics.in/wp-content/uploads/2020/04/cropped-Microsoftdynamics365-blogs.png?fit=32%2C32 CRM CONNECTIVITY TO PORTAL Archives - Microsoft Dynamics 365 Blog http://microsoftdynamics.in/category/crm-connectivity-to-portal/ 32 32 176351444 EMAIL , ZIPCODE , CONTACT NO VALIDATION USING JAVASCRIPT IN PORTAL / HTML http://microsoftdynamics.in/2014/04/11/email-zipcode-contact-no-validation-using-javascript-in-portal-html/ Fri, 11 Apr 2014 05:33:00 +0000 http://microsoftdynamics.in/2014/04/11/email-zipcode-contact-no-validation-using-javascript-in-portal-html/ Java-Script Validation can be used in portal in html , php , java etc . 1. Email Validation : We have used an Regex here , and compared the text in input with it and given an alert.     function validateemail() {         var ccc = document.getElementById( ‘idemailtb’).value;         var reg = /^w+([-+.’]w+)*@w+([-.]w+)*.w+([-.]w+)*$/         if (!reg.test(ccc)) {         alert( “Invalid Email Id”);    ...

The post EMAIL , ZIPCODE , CONTACT NO VALIDATION USING JAVASCRIPT IN PORTAL / HTML appeared first on Microsoft Dynamics 365 Blog.

]]>
Java-Script Validation can be used in portal in html , php , java etc .


1. Email Validation : We have used an Regex here , and compared the text in input with it and given an alert.
    function validateemail() {
        var ccc = document.getElementById( ‘idemailtb’).value;
        var reg = /^w+([-+.’]w+)*@w+([-.]w+)*.w+([-.]w+)*$/
        if (!reg.test(ccc)) {
        alert( “Invalid Email Id”);
          }
    }


2. Contact No. Validation : We have used an simple if condition that Number should be atlest of 10 in length.

    function permanentnumber() {
        var mob = document.getElementById( ‘idcontactnotb’).value;
        var count = mob.length;
        if (mob > 31 && (mob < 48 || mob > 57) && count == 10 ) { }
        else {
            alert( “Please Enter 10 Digit Number:” );
            return true;
        }
    }


2. Zipcode / Pincode Validation : We have used an simple if condition that ZipCode should be atlest of 6 in length and only a numerical value .
    function zipcode() {
        var zipcode = document.getElementById( ‘idziptb’).value;
        var length = zipcode.length
        if (length < 6)
            alert( “Please Enter Valid Zipcode:”);
        if (zipcode > 31 && (zipcode < 48 || zipcode > 57)) { return false; }
        else {
            alert( “Please Enter Valid Zipcode:”);
            return true;
        }
    }


SOURCE : JUST2CODE.IN
Subscribe to our YouTube channel : https://www.youtube.com/user/TheRussell2012

The post EMAIL , ZIPCODE , CONTACT NO VALIDATION USING JAVASCRIPT IN PORTAL / HTML appeared first on Microsoft Dynamics 365 Blog.

]]>
2824