AnsweredAssumed Answered

how to get the radio button avlue instead of id

Question asked by Ahmed.Mokhtar on Apr 22, 2017
Latest reply on Apr 24, 2017 by kauha07

hi i have a form with radio selection (3 options)  

my radio selection "RequiredFor"  with 3 options 

(option1  lable="network monitoring", id='1', value="network monitoring"

(option2  lable="network Maintenance", id='2', value="network Maintenance"

(option3  lable="network Security", id='3', value="network Security"

 

i need to return the value of the selected radio  instead of the ID , for example if i select option 2 

in my script when i use the function to return    var x =ca_fdGetSelectedRadio(ca_fd.formId,'RequiredFor') it reurns the id =2 bu t i need to return the value of the selected radio which= "network Maintenance"

i tried alot of the tries since i'ma beginner in Java alert( ca_fdGetSelectedRadio(ca_fd.formId,'RequiredFor').value ); but it returns undefined 

is there is any way to get the value or the lable of the radio ?

Outcomes