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?
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?