To ensure that questions get required attention from community members and are NOT left unanswered, it’s important for the author to indicate (by selecting “Yes” or “No” when prompted) whether the question was answered.
For more information, please refer to this announcement explaining best practices for getting answers to questions.
To limit the Address Line 1 upto 30 character in Contact Info
Summary
To limit the Address Line 1 upto 30 character in Contact Info , if exceeds 30 then will throw errorContent
When employee will navigate to Me-Contact Info- Add Addresses , so when user will enter the address line 1 above 30 and try to submit it should throw error.
So for achieving this what I did, I created sandbox using Application Composer and then navigated to Application Composer, selected the Address standard object and under Server Script written the following query
/* Code Start */
if(length(Address1) <= 30){
return false
}
return true
/* Code End */
But its not working, after doing this also, if user enters addressline1 above 30 character it is not throwing error, please can you suggest me.