function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AkilAkil 

Users are able to enter more than 255 characters in the input box

I have displayed a Text Area(255) field in the VF page.

In IE8/9 , users are able to enter more than 255 characters in the input box.

 

 

 <apex:inputField value="{!account.Description_for_example__c}" style="width: 360px; height: 200px"/>

 

Is there a way to restrict them to enter only 255 characters?

 

 

Deepa.B.AnkaliDeepa.B.Ankali
@Akil,

you can have a javascript function to alert if user enters more than 255 characters.