I have in a repeating table rows a DDList and a TextField1(Type:Read Only) with default text:MANTATORY.
For the DDList I have about 20 items listed and one of them the Course A is Optional.
On change event I have the following script:
var vConversion = "MANTATORY";
switch
(xfa.event.newText)
{
case "CourseA":
vConversion
= "OPTIONAL";
break;
}
form1.PageA.Sub_C.Table1.TextField1.rawValue = vConversion;
When I add a instance for the table and from the DDList I have to select CourseA
the textField1 for the Instance 2 does not change to OPTIONAL(Remains MANTATORY)!
It will change the instance 1 to OPTIONAL form MANTATORY!
How I can solve this issue?
Thank you
Views
Replies
Total Likes
Hi,
you need to reference the instance of your table row to update the correct field.
Sorry, could not determine what is the row in your syntax (Sub_C or Table1) ![]()
Try this if Sub_C is the row:
else
Views
Replies
Total Likes
here is the syntax for the TextField1:
form1.PageA.Sub_C.Table1.Item.TextField1
Thanks Radzmar
Views
Replies
Total Likes
OK,
try
Views
Replies
Total Likes
Thanks Radzmar for all your help...Thank you
xfa.resolveNode("form1.PageA.Sub_C.Table1.Item.ReusablesRemarksName["
+ this.index + "]").rawValue = vConversion;
Views
Replies
Total Likes