Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2007-10-31 11:00:24

NancyM
Member
Registered: 2007-04-24
Posts: 12

Forcing upper case in an alpha/numeric textfield.

I have a text field that allows both alpha and numeric entry.  The numeric input can be anywhere in the field.  What I am trying to accomplish is to make any alpha entry display in upper case on exit.  Example entry a5df on exit would display A5DF.


My Product Information:
LiveCycle Designer Pro 7 / Windows

Offline

 

#2 2007-10-31 15:50:50

thomp
Member

Registered: 2007-04-23
Posts: 1002

Re: Forcing upper case in an alpha/numeric textfield.

Place this code in the change (or Keystroke) event for the text field

LiveCycle Form:

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

AcroForm:

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

Offline

 

#3 2007-12-17 17:39:19

kbedward
Member
Registered: 2007-11-09
Posts: 15

Re: Forcing upper case in an alpha/numeric textfield.

Using LiveCycle 8, how would one change the text to be Initial Case. I have a field for names and would like the formatting to automatically capitalize the first letter

Offline

 

#4 2007-12-17 18:14:43

thomp
Member

Registered: 2007-04-23
Posts: 1002

Re: Forcing upper case in an alpha/numeric textfield.

The official way to add formatting to a field is to use a "Picture Clause".  There is a whole document on how to create and use this handy formatting device. Do a search for "Picture Clause" on the Adobe Developer site

http://www.adobe.com/devnet

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in