Change first letter in floating field to a capital letter | Community
Skip to main content
Level 5
Aug 5, 2023 11:02 AM UTC
Solved

Change first letter in floating field to a capital letter

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Vijay_Katoch
Vijay_KatochAccepted solution
New Participant
Aug 7, 2023 4:45 AM UTC

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

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

2 replies

Level 5
Aug 7, 2023 9:50 AM UTC

Thank You!  That works perfectly.

Translate
Vijay_Katoch
Vijay_KatochAccepted solution
New Participant
Aug 7, 2023 4:45 AM UTC

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

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

Translate