Skip to Content
Aug 29, 2008 at 08:04 AM

Drop down List



I have a drop down list(DDL) control on my form. Im trying to read the selected value. I have put code on the change event. Strange enough, when the event is triggered it returns previous value in the rawValue attribute. I want to read the current value. If I use the same code in the calculate event, it works but returns an error that the validation has failed.

The code i am using is

if (this.rawValue != "No Damage") {

damage.presence = "visible";


else {

damage.presence = "hidden";


where damage is the name of a subform whose visibility is determined by the value in the DDL. Is there something i'm missing here?