Counting Fields: Dropdown & Radio button field is always counted as filled
I want to display number of fields filled.... everything is working correct but the dropdown field is being counted as filled already even before it is been selected with a value;
var totalfields = new Array(Text1, Text2, Text3, Text4, Dropdown1, Dropdown2);
var count = 0;
for (i = 0; i < totalfields.length; i++) {
if (this.getField(aFields).valueAsString != "") count++
}
event.value = count;
The above script displays 2 always i.e. it presumes Dropdown are filled beforehand .
Same is the case with Radio buttons... it is also showing as filled before selecting any option.
Any solution so that it should show 0.
Thanks
