Currently cannot figure out how to add radio buttons to this javascript so it works on them aswell.
I am trying to add radio buttons to the if statement so that they get highlighted when not clicked on aswell
Thanks Much
var emptyFields = [];
var completedFields = [];
for (var i=0; i<this.numFields; i++) {
var f= this.getField(this.getNthFieldName(i));
var v= this.getField(this.getNthFieldName(i));
if (f.type!="button" && f.required ) {
f.strokeColor = color.black;
f.fillColor = color.white;
if ((f.type=="text" && f.value=="") || (f.type=="checkbox" && f.value=="Off") || (v.value==" ")) {
emptyFields.push(f.name);
f.strokeColor = color.red;
f.fillColor = color.white;
}
}
}
if (emptyFields.length>0) {
app.alert("Error! You must fill in all required fields (Highlighted in red)");
}
