These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Text Field Options

justasteffy
Registered: Aug 17 2007
Posts: 6

I am creating a from in Live Cycle Designer 8.0. I would like to give the user the option to change size color and possibly font on a text field. Is this possible? If so, how can I do it?

My Product Information:
LiveCycle Designer, Windows
lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
Hi justasteffy,

You can do this by using a rich text field (Select Rich Text as the field format in the field tab, and XHTML as the data format in the binding tab) in LiveCycle. Then, as the user is filling out the text field in Acrobat when they select CTRL-E it opens the rich text editing toolbar where they can select bold, underline, etc.

Hope this helps,
Lori

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.

sconforms
Expert
Registered: Jul 10 2007
Posts: 92
You can also do this via script on a button, for example, except that this scenario requires that the field's value be plain text, not rich text as in Lori's example.

If you had a text field and a button and you wanted the result of clicking the button to change the font used by the content area (value) of the text field to Times New Roman, 8pt, blue, you could use the following JavaScript on the button's Click event:

TextField1.font.size = "8pt";
TextField1.font.typeface = "Times New Roman";
TextField1.font.fill.color.value = "0,0,255"; // RGB value

Stefan Cameron obtained his bachelor's degree with Honors in Computer Science at the University of Ottawa and is a Computer Scientist working on Adobe's LiveCycle server products, in particular on LiveCycle Designer ES for the past 5 years.