I have a dynamic form to which I can add rows. It is 3 columns, with the first being a DDL which populates the second column DDL. The 3rd column is a hidden field that shows once a choice in the second DDL has been made. It works fine in the initial row, but it will not become visible in any added rows.
This is my code for the second DDL:
if
(this.rawValue != 1)
{
form1.Page1.OrderSection.OrderItems.Condition.presence
= "visible";
}
else
{
form1.Page1.OrderSection.OrderItems.Condition.presence
= "hidden";
}
Does it need to be set up as some kind of loop maybe? I am sure it has something to do with my path being a dynamic path name. Not really sure at this point what to look at to make it work. I'm not sure how or if I can attach my file here. If someone can tell me how to attach it, or I can e-mail it to someone for help.
Thanks in advance.
Solved! Go to Solution.
Views
Replies
Total Likes
Each object must have a unique name. To accomplish the repeating subform gets an occurance number so assuming the OrderItems is the repeating subform the expression to get at the object will be OrderItems[occuranceNumber].Condition
So you need to modify your code to get to the right instance:
"visible";
xfa.resolveNode("form1.Page1.OrderSection.OrderItems[" + this.parent.index + "]").Condition.presence =
Assuming that you are executing this code on an object inside of the subform. The this.parent.index will give you the index number of the subform that you are on.
Hope that helps
Paul
Views
Replies
Total Likes
Each object must have a unique name. To accomplish the repeating subform gets an occurance number so assuming the OrderItems is the repeating subform the expression to get at the object will be OrderItems[occuranceNumber].Condition
So you need to modify your code to get to the right instance:
"visible";
xfa.resolveNode("form1.Page1.OrderSection.OrderItems[" + this.parent.index + "]").Condition.presence =
Assuming that you are executing this code on an object inside of the subform. The this.parent.index will give you the index number of the subform that you are on.
Hope that helps
Paul
Views
Replies
Total Likes