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
YashhYashh 

validation on limit to generate error on fields

I have created one product description  field I want to create a validation rule on that particular fields that above  400 characters  it should be generate error on that field
want formula ??
Best Answer chosen by Yashh
PriyaPriya (Salesforce Developers) 

Hi Yash,

You can't increase size of Validation Rule Error Message: Error: You can't use more than 255 characters.

You can upvote an idea : https://success.salesforce.com/ideaView?id=08730000000DhQMAA0

 

Please mark as Best Answer so that it can help others in the future.

Regards,

Priya Ranjan

 

Regards,

Priya Ranjan

All Answers

PriyaPriya (Salesforce Developers) 

Hi Yash,

You can't increase size of Validation Rule Error Message: Error: You can't use more than 255 characters.

You can upvote an idea : https://success.salesforce.com/ideaView?id=08730000000DhQMAA0

 

Please mark as Best Answer so that it can help others in the future.

Regards,

Priya Ranjan

 

Regards,

Priya Ranjan

This was selected as the best answer
PriyaPriya (Salesforce Developers) 

Hi Yash,

You can use the function ' Len() ' in your validation rule as below :- 

LEN(Description) > 148 

LEN() - returns the number of characters in a text string.
But LEN will count spaces as well.

User-added image

Please mark as Best Answer if it meet your requirement.

Regards,

Priya Ranjan