Skip to main content Take our 5-minute Community Survey. Open now through 4/11/2025. Click here to participate.
Dear Team ,

Plz let me know How to set Minlength and Max length in lightning input textarea?

Thanks & Regards

Sachin Bhalerao

 
4 answers
  1. Nov 28, 2019, 2:13 PM
    Hi Sachin,

    I have gone through your question. To given the maxlength in the there standard defined function in lightning:inputTextarea tag.

    maxlength  ---> Type--->integer    global        

    Description--->    The maximum number of characters that can be typed into the input field. 

                    Corresponds to the maxlength attribute of the rendered HTML Textarea element.

    Example:--

    <ui:inputTextArea aura:id="comments" label="Comments"  value="My comments" rows="5"  maxlength="255"/>

     

    I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

    Thanks and Regards,

    Deepali Kulshrestha

    www.kdeepali.com
Loading
0/9000