Expand my Community achievements bar.

Scripts not working write

Avatar

Level 4

Hi All,

I have the following scripts placed on the exit event, and only works once for each selection in the drop down. If you change the selection it will not work. Here is the script.

 

if(dropdwn34.rawValue="1"){ 

StatusCodeDrpDwnLst4.presence="visible";

A_txt.rawValue=dropdwn34.rawValue;

}

else{

StatusCodeDrpDwnLst4.presence="invisible";

A_txt.rawValue='';

}

if(dropdwn34.rawValue="2"){ 

StatusCodeDrpDwnLst4.presence="invisible";

A_txt.rawValue=dropdwn34.rawValue;

}

else{

StatusCodeDrpDwnLst4.presence="invisible";

A_txt.rawValue='';

}

if(dropdwn34.rawValue="3"){

StatusCodeDrpDwnLst4.presence="invisible";

A_txt.rawValue=dropdwn34.rawValue;

}

else{

StatusCodeDrpDwnLst4.presence="invisible";

A_txt.rawValue='';

}

I have tried it on the change, and click event, and it does the same thing.

Thanks

v/r

Tammy

      

 

 

 

1 Reply

Avatar

Level 10

You have an error in your if statements, when testing a value you need to use 2 equal signs. 1 equal sign is used to assign a value.