
Object doesn't support this property or method
Jon
below is code that works for me to do this function:
Note that I had to insert a space in the "input" and "label" tags to keep OE
from actually rendering them in the message.
<i nput type="radio" id="rdoNarrs" value="Narrs" name="rdoRelated">
<l abel For="rdoNarrs">Narratives</label>
<i nput type="radio" id="rdoCPRs" value="CPRs" name="rdoRelated">
<l abel For="rdoCPRs">CPRs</label>
<i nput type="radio" id="rdoPPDs" value="PPDs" name="rdoRelated">
<l abel For="rdoPPDs">PPDs</label>
sub rdoNarrs_onclick()
' Do selection code for 1st radio button
end sub
sub rdoCPRs_onclick()
' Do selection code for 2nd radio button
end sub
sub rdoPPDs_onclick()
' Do selection code for 3rd radio button
end sub
Function rdoRelated_Value() ' Find which one is clicked
rdoRelated_Value = -1
If rdoNarrs.checked Then
rdoRelated_Value = "Narrs"
ElseIf rdoCPRs.checked Then
rdoRelated_Value = "CPRs"
ElseIf rdoPPDs.checked Then
rdoRelated_Value = "PPDs"
End If
End Function
Function rdoRelated_Set(value) ' Programmatically set which one is related
If Value = "Narrs" Then
rdoNarrs.checked = True
ElseIf Value = "CPRs" Then
rdoCPRs.checked = True
Else
rdoPPDs.checked = True
End If
End Function
HTH
Ron Lounsbury
Quote:
> I'm creating an HTA form that has an array of three option buttons. I want
> to retrieve the value of the selected option button but cannot. I've tried
> using name.value, name.checked(or selected), name.checked(or
> selected).value, name.tabindex.value, name.tabindex().checked, etc. and
> nothing seems to work.
> Which one am I missing to make this work? I can reference a drop down
list
> no problem through its name.value property, but I'd rather use the option
> buttons.
> TIA
> Jon