You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

To limit the Address Line 1 upto 30 character in Contact Info

edited May 26, 2021 9:46AM in Human Capital Management 5 comments

Summary

To limit the Address Line 1 upto 30 character in Contact Info , if exceeds 30 then will throw error

Content

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.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!