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

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 '14 at 6:23
  • hi how can i do it by using workflows can anyone say – PavanFoxPro Jan 28 '14 at 6:31
0

You can use the below app from AppExchange, its free

Capitalize

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.