0

If i entered "name" in my text box while it saved it must be saved like "Name"

Capital letters in the first letter of Alphabet

It must not show any error messages it must directly save

3 Answers 3

7

Use workflow + field update under field update writ formulae UPPER(LEFT(FirstName, 1))

1
3

From the docs: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_System_String_capitalize.htm

String s = 'hello maximillian';

String s2 = s.capitalize();

System.assertEquals('Hello maximillian',s2);
2
  • You'll want to do this in a 'before insert/update' trigger... nasusnunu, can you add code to show that?
    – Matt Lacey
    Jan 28, 2014 at 6:23
  • hi how can i do it by using workflows can anyone say Jan 28, 2014 at 6:31
0

You can use the below app from AppExchange, its free

Capitalize

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .