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

Dropdown List choice not displaying upon selection

Michael Frommer
Registered: Apr 3 2009
Posts: 80

Cant figure out why the displayed text value isn't changing upon selection; it remains at the default text value. Oddly, when I select the same choice a 2nd time, the field then changes to the selected value. However, the script for the change event [u]does[/u] execute on the initial selection.

I am using a switch event, but the same behavior results regardless of using a switch event or an if, else argument.

The field is set to 'Commit on Select'. The Binding is Normal. The 'Specify Item Values' is set so the Values = theText (insted of numeric values = the text).

The are 3 choices: Choose (the default), long, short.

PetafromOz
Registered: Jun 8 2009
Posts: 230
You say you're using a switch event. Can you please provide the script you're using, because it sounds like an odd problem and difficult to visualise without all the info. The 'old hands' might get it straight away, but I'm a 'newer hand'.
Tx, Peta

from way... underground at Parkes - central West NSW - Australia

Michael Frommer
Registered: Apr 3 2009
Posts: 80
You can find my form here [url]https://share.acrobat.com/adc/document.do?docid=110843e6-13aa-4e57-af09-a4e8198d0920[/url]

I can't see how this script can be effecting the behavior of the selection made. Here is the script for the "Net Position" dropdown list:

var oInstx = xfa.form.resolveNode("form1.Page1.COMMON.Instructions")var warning = xfa.form.resolveNode("form1.Page1.COMMON.LiabilityWarning")var mktAction =  xfa.form.resolveNode("form1.Page1.COMMON.LASTTRADE.MarketAction")var deadline = xfa.form.resolveNode("form1.Page1.RESPONDBY")var subElect = xfa.form.resolveNode("form1.Page1.ELECTION") switch(xfa.event.newText){case "choose":oInstx.presence = "hidden";warning.presence = "hidden";mktAction.rawValue = " ";deadline.presence = "hidden";subElect.presence = "hidden";break; case "long":oInstx.presence = "visible";warning.presence = "hidden";mktAction.rawValue = "ELIGIBLE TO PARTICIPATE";deadline.presence = "visible";subElect.presence = "visible";break; case "short":oInstx.presence = "hidden";warning.presence = "visible";mktAction.rawValue = "TO AVOID LIABILITY";deadline.presence = "hidden";subElect.presence = "hidden";break;}

[b]EXAMPLE OF ISSUE:[/b]

Select "long" and it may change from the default "choose" to "long".
Then select "short and althought the script for that value executes, the word "long" is still displayed, until I repeat the selection of "short" a second time.
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Michael,

I was not able to reproduce the issue. The forms works as expected.
Could be a bug.

Have you tried to deactivate the "values" (sorry, don't know the english exact naming) in the binding tab?
May be working better without them.
Here's a screenshot. I marked the checkbox with a red frame.
https://share.acrobat.com/adc/document.do?docid=bad2ec4f-d1f9-4fc7-9707-54889d3f82f5

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

Michael Frommer
Registered: Apr 3 2009
Posts: 80
Here is proof what what I am referring to [url]https://share.acrobat.com/adc/document.do?docid=5f8faded-8206-4192-8033-c77179a40c90[/url]. Please take a look.

Rad,

I f were to delete the values my scripts wont work.