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

Color text in a dropdown menu

hattg
Registered: Jun 18 2009
Posts: 36
Answered

This is part of my script for my dropdown menu. I want the **MUST ORDER 10 OR MORE** of the text to be in red, but not the rest. Is this possible?

,["Electric Distribution Pocket Manual (EDPM) **MUST ORDER 10 OR MORE**",0.00,7.57]],

radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

you can't color only one line in the droptdown, but you can change the color after the user selected a specific value.

Use this script in the change:event of the dropdown list.
if (xfa.event.newText == "Electric Distribution Pocket Manual (EDPM) **MUST ORDER 10 OR MORE**"){this.font.fill.color.value = "255,0,0";}else{this.font.fill.color.value = "0,0,0";}

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs