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

combo box - help. I am stupid!!!

JGarn23
Registered: Feb 17 2010
Posts: 35

Is there any way to pick up the rawValue (I believe this is the 'index' specified in the 'specify item values' section') of a combo box whilst selecting values using the up/down arrows? e.g. I click in the combo box then scroll through the items using the down arrow?
From what I can see the raw/formatted values are only set when you either exit the field or press the enter key whilst on a value. They are not set dynamically as I scroll through the values. I know I can get the actual selected text using xfa.event.newText but I don't want to use this.

Setting the 'Commit on' to 'select' in the GUI doesn't seem to make any difference.

I've been trying to work this out for ages but just can't get it.

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

you can use the change:event of the drop down box to get current value.
With a small script you can show this current selection live in another form field, for example:

Form1.#subform[0].DropdownList1::change - (JavaScript, client) Textfield1.rawValue = xfa.event.newText;

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs