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

dropbox values

umh3
Registered: May 23 2011
Posts: 15
Answered

In LiveCycle, how do you have a dropdown box that has a text field showing a different value then the dropdown list?
 
Example:
 
3 -> good
2 -> ok
1 -> bad
 
The words would be in the list, and the numbers would appear in the field when a usere select the word.
 
Thank you in advance!
umh3

My Product Information:
LiveCycle Designer, Windows
SLDC
Registered: Oct 25 2010
Posts: 70
Accepted Answer
Call your dropdown QualityChoice (for example). Create a text field called Quality.

In QualityChoice's Exit event, put this script:

switch (this.rawValue) {
case "1":
Quality.rawValue = "bad";
case "2":
Quality.rawValue = "ok";
case "3":
Quality.rawValue = "good";
}

When the user has chosen 1, 2, or 3, it will make the text field display your desired text.