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

DropDownList and Table

Houl
Registered: Jul 12 2011
Posts: 2

Creating a table. On the top add a button to create rows.
In each row adds a button to delete the this row.
Code:
1) Table1._Row1.addInstance (1);
xfa.form.recalculate (1);
 
2) this.parent.instanceManager.removeInstance (this.parent.index);
 
In left cell of row I add a dropdownlist.
 
I need to neighboring cell changes its state when I choose a particular value in the dropdownlist.
 
At the moment code in Dropdownlist:
 
var sNewValue = form1.Subform3.Subform10.Table1.Row1.DropDownList4.boundItem(xfa.event.newText);
 
if (sNewValue == "Notebook") {
form1.Subform3.Subform10.Table1.Row1.DropDownList5.presence = "visible";
}
else {
form1.Subform3.Subform10.Table1.Row1.DropDownList5.presence = "invisible";
}
 
At the moment the state changes only at the very first (upper) cell.
How should I fix the code?

My Product Information:
LiveCycle Designer, Windows
mfazilma
Registered: Jul 13 2011
Posts: 2
Hi, please clarify the below details,
For eg: You have created a table with 3 rows and second you have created a dropdown, when the dropdown data changes other same cooresponding cell datat should change, right?
Houl
Registered: Jul 12 2011
Posts: 2
Yes.