Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

 1 Answer(s)

  • Hi Bhagwan

    You are using maxLength validator which used for define maximum character length in input tag.

    You can use rangeLength validator for fix character length in liferay. i.e

    <aui:validator name="rangeLength" errorMessage="Please Enter 11 digit's">[11,11]</aui:validator> 
    

    Below I have updated your code.

    <aui:input type="text" id="phoneinput" name="phone" value="" label="">
    <aui:validator name="rangeLength" errorMessage="Please Enter 11 digit's">[11,11]</aui:validator> 
    <aui:validator name="digits" ></aui:validator>
    </aui:input>
    
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: