How can I set a text field to convert all text entered to upper case when populated? | Community
Skip to main content
Level 2
September 6, 2013
Solved

How can I set a text field to convert all text entered to upper case when populated?

  • September 6, 2013
  • 34 replies
  • 28828 views

I want to have all entered text populated into specific text fields to automatically convert to upper case. I am working in LiveCycle Designer ES2.

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 jcytrny

I am not sure how to place the code to get it working. Cannot get it to work.

34 replies

Level 4
September 17, 2013

I have shared the new form, where value change in the same textfield.

October 8, 2013

Can you please share the new form you shared above where value change was in the same textfield with me?

Thank you

jcytrnyAuthor
Level 2
October 8, 2013

Do you want the entire form I created or simply the code used for the text field?

October 8, 2013

I have played around with my scripts and I think I have figured it now.

But maybe you can help me with something else. I have one field for comments. Some of my users all use uppercase and the sentences become hard to read. Is it possible to convert sentences to lower case?

Sonya Patton

Administrative Assistant to the Director,

International Outreach Division

P.O. Box 140800 | Nashville, TN 37214-0800

PH 615.564.5000 :: FX 615.564.6000

spatton@gideons.org | www.gideons.org

jcytrnyAuthor
Level 2
October 8, 2013

I am heading to a meeting right now. Will send email later when I get back home.

October 8, 2013

Thank you very much.

Sonya Patton

Administrative Assistant to the Director,

International Outreach Division

P.O. Box 140800 | Nashville, TN 37214-0800

PH 615.564.5000 :: FX 615.564.6000

spatton@gideons.org | www.gideons.org

Level 4
October 9, 2013

If you want to convert the uppercase into the lowercase you can use below script

xfa.event.change = xfa.event.change.toLowerCase(); 

You need to use this script on change event of textfield.

October 9, 2013

Will you be able to send the email today?

jcytrnyAuthor
Level 2
October 9, 2013

Sorry, got back very late last night.

Use this code in the change function for the text field

xfa.event.change = xfa.event.change.toUpperCase();

Joe Yuskaitis

JCY Tournaments LLC

201-203-1816 office

201-220-3049 mobile

201-625-6402 fax

joeyuskaitis@jcytournaments.com<mailto:joeyuskaitis@jcytournaments.com

October 9, 2013

No problem. I tried that but it keeps giving me an error.

Will that work with sentences? Because I do want the first word of the each sentence to stay uppercase.

Thanks for your help.