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
Neeraj RautelaNeeraj Rautela 

add a validation error message within the comments field in Planning Tool when a user hits 255 character limit.

It's an aura page 
Aura page
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Neeraj,

You have to put the validation in the Aura component  itself. Please check the below link for the similar solution.

https://techevangel.com/2019/03/17/custom-fields-validation-in-lightning-component/

If this helps, Please mark it as best answer.

Thanks,
 
Caleb Kuester 44Caleb Kuester 44
If you have access to a developer, you'll need the field to call an onkeyup function to then count the number of characters in the field. When the field reaches the desired limit, disable the submit button, either halt the ability to add more characters, or halt the apex action if the characters are too many (you don't want them to be able to submit anyways with too many characters), and then post a toast message (something like $A.get("e.force:showToast");) with your desired message.