You need to sign in to do that
Don't have an account?
Kristen Lund
How to limit the character count on textarea in Visualforce?
Hello - I'm creating a custom pre-chat page for Live Agent and am field has a limit of 350 characters, however the field on the pre-chat form allows much more than that. How might I limit the field on the visualforce page as well? Current code section below, and help would be much appreciated!
<br></br> Question: <textarea name='liveagent.prechat:Question' id='question' required="required" placeholder="How can we help?" style="background:transparent; vertical-align:top; border:1px solid #000; width:180px; height:108px; font-size: 16px"></textarea><br/> <br></br>
May I suggest you please check with below links from the community forums which will help you further.
- https://salesforce.stackexchange.com/questions/32941/how-to-limit-apextextarea-length
- http://www.forcetree.com/2013/02/character-count-limit-for-inputtextarea.html
Hope this helps.Mark this as solved if it's resolved.
Thanks,
Nagendra
All Answers
May I suggest you please check with below links from the community forums which will help you further.
- https://salesforce.stackexchange.com/questions/32941/how-to-limit-apextextarea-length
- http://www.forcetree.com/2013/02/character-count-limit-for-inputtextarea.html
Hope this helps.Mark this as solved if it's resolved.
Thanks,
Nagendra