Avatar

Level 10

Hi,

I can't get to Designer at the moment, but a few things.

In your script in the change event, you are using .rawValue. However at this stage the change is not committed to the object, so .rawValue will not work. You could move the script to the exit event OR of you leave it in the change event, you would need to test against xfa.event.newText, eg:

if (xfa.event.newText == "PC") {

     // your script

}

In addition please note that when testing a condition you need a double equals (as a minimum, there are other operators). See above.

Good luck,

Niall