Identifying which Radiobutton is selected through code

Will, you will need to wrap another if statement around what you have above based on the value of the selectedIndex property.

https://www.wix.com/corvid/reference/$w.RadioButtonGroup.html#selectedIndex