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

Problems with DropDown lists and change events

OkanaganRick
Registered: Apr 13 2010
Posts: 8

Good morning.
 
I have a problem which is driving me crazy. You can see it in the file at people.okanagan.bc.ca/rgee/dropdowntest.pdf.
 
Basically I have two dropdown lists, each containing Yes and No. I know that radio buttons may be a better interface, but ...
 
For each, the plan is that when you choose Yes, a hidden subform (a different one for each dropdown) appears. When you choose No, the subform hides itself.
 
Load the document and choose the second dropdown; the appropriate subform appears and disappears as you'd expect.
 
Load the document and choose the first dropdown; the appropriate subform appears and disappears as expected.
 
Load the document, choose the second dropdown and then the first; both behave as expected.
 
But when you choose the first and then the second, the second changes the value displayed in the dropdown list, but the associated subform does not appear.
 
I have run across the same problem in a different form; when you use two dropdowns in one order, they work and when you use them in a different order, they don't work.
 
Any ideas?

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

I weren't able to download your form as the url wasn't found.

Generally you should not use the rawValue property to determine the selection in a dropdown box.
You better use xfa.event.newText in a script of the dropdown box change:Event such as.

SubForm1.presence = xfa.event.newText === "Yes"? "visible":"hidden";

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

OkanaganRick
Registered: Apr 13 2010
Posts: 8
Sorry about the URL. It's fixed now.

I am using xfa.event.newText to determine the selection. At least that's not the problem.

I altered the method (which uses an if statement) to your question mark operator and the methods still do not work. The version in the URL still uses if statements.
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

the subform "Q24" is set to positioned, which causes your problem.
Change it to be flowing top-bottom to solve your problem.

Btw. Check the report bar of Designer. You have activated an unsupported pagination feature in the form properties for the target version 8.1.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

OkanaganRick
Registered: Apr 13 2010
Posts: 8
Oops. I should have caught that myself.

I had noticed the unsupported pagination feature but didn't know how to fix it. I have found out now.

Thanks for the help.