You need to sign in to do that
Don't have an account?

text field should not accept more then 40 char
Hi,
i have one name text field it should not accept more than 40 char for that what logic i can follow
i have one name text field it should not accept more than 40 char for that what logic i can follow
Thanks
Brahma
You can create a Validation Rule on the field to which you want to restrict the number of characters.
Use the above snippet in your validation rule.
Thanks
Ashish
i wrote a some validation my code is
if(/[^a-zA-Z0-9\-\/]/.test(oppName) || oppName.length>40)