This is solved.
What I did was to create a global variable and each time the user clicks on the radio button, I set the global variable to a particular value and when I need to, I check this global variable.
What I did was to create a global variable and each time the user clicks on the radio button, I set the global variable to a particular value and when I need to, I check this global variable.