I am trying to parse through all the fields on the form and see if its reqd and filled. If its reqd but not filled , show an error message. I am able to do so for text fields and drop downs but not for radio buttons.
I tried checking if its a subform and combing in a loop to see if the fields are filled. Is there any reason why radio buttons could not be checked that ways. I tried specifying "exclGroup" or "subform". It still doesnt catch it.
Here is the code I am using:
function checkFields(oNode)
{
var flag =0;
if (oNode.className == "exclGroup" || oNode.className == "subform")
My radioButton List is named Choice with Yes and No as radio Buttons. I guess it is looking for caption of Choice, rather than Yes/No. It is setting the focus correctly though.
Could any one please tell as to how to get the captions of the radio buttons.
It would be very helpful to us if you could post the function call for this solution. What object are you passing as a parameter? Of course it would be even better if you could attach an example of the solution.