Avatar

Level 7

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