You need to sign in to do that
Don't have an account?
How to set Minlength and Max length in lightning input textarea?
Dear Team ,
Plz let me know How to set Minlength and Max length in lightning input textarea?
Thanks & Regards
Sachin Bhalerao
Plz let me know How to set Minlength and Max length in lightning input textarea?
Thanks & Regards
Sachin Bhalerao
Try the code something like this.
<lightning:input maxlength="255"
In lightning:textarea component we have maxlength,minlength attributes which allows you specify number of character allowed. Please refer below link which might help you further
https://developer.salesforce.com/docs/component-library/bundle/lightning:textarea/example
Hope this helps you
If this helps kindly mark it as solved so that it may help others in future.
Thanks and Regards
* Try below code's line:
* you can change size as 2-of-3 for the medium size text area
* Please take reference from below link:
https://www.lightningdesignsystem.com/utilities/sizing/
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Ajay Dubedi
www.ajaydubedi.com
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