1 Reply Latest reply on Dec 8, 2010 3:58 PM by Steve L Walker

    Restrict/Limit Length for field dynamically using JAVA Script

    p_shishir Level 1


           How do I dynamically restrict the lenght of the field? I could not use the maxChars property as it cannot be directly addressed. Based on certain conditions I would like to dynamically retrict the field length to 2 characters. Can anybody help?


      I am able to capture the length using the below code: -




      maxLen = this.value.oneOfChild.maxChars;


      but how do I restrict the length of the field to 4 characters only ?