Expand my Community achievements bar.

SOLVED

Change first letter in floating field to a capital letter

Avatar

Level 6

Still need assistance.  I would like to know how I can change the first letter in a floating field to a capital letter.  The floating field is tied to a text field and how ever the entry is made in the text field, I would like the result in the floating field to start with a capital letter.  Example:  If the user enter the word "apple" in a text field, I would like it to appear in the floating field as "Apple".  Any help would be appreciated.  My form is a livecycle designer form.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

form1.TextField2::exit - (JavaScript, client)

floatingField.rawValue = this.rawValue.charAt(0).toUpperCase()+this.rawValue.slice(1);

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

form1.TextField2::exit - (JavaScript, client)

floatingField.rawValue = this.rawValue.charAt(0).toUpperCase()+this.rawValue.slice(1);