Highlighted

Dropdown List

cclay53

16-01-2012

I have dropdown list that contains 8 items. The values are obviously 1-8 and refer to subforms.

In code I have

if (this.rawValue ==(1) {

     BaggerSub.presence="visible";

}

elseif

     if (this.rawValue == "2"){

     BaggerSub.presence = "visible";

     ZipperSub.presence = "visible";

endif

The problem is if I select item 1 on the list nothing happens. If Iselect item 2, then the script for item 1 works. If I select item 3 thenthe script for item 2 works.

I have the scripts in change.

Any suggestions of where I went wrong.

Thanks

Craig

Replies

Highlighted

radzmar

MVP

16-01-2012

Hi,

I think you're using the change:Event for your script.

In this case, the rawValue is not available, as it is set as very last.

Use xfa.event.newText instead.

Highlighted

cclay53

17-01-2012

ok. That doesn't seem o work. But what i did do is move my script from a change event to exit and it works-

Thank you.

Craig