Change first letter in floating field to a capital letter | Community
Skip to main content
Level 5
August 5, 2023
Solved

Change first letter in floating field to a capital letter

  • August 5, 2023
  • 2 replies
  • 762 views

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.
Best answer by Vijay_Katoch

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

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

2 replies

Vijay_Katoch
Community Advisor
Vijay_KatochCommunity AdvisorAccepted solution
Community Advisor
August 7, 2023

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

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

Level 5
August 7, 2023

Thank You!  That works perfectly.