Receive error message for radio buttons ."An illegal choice has been detected. Please contact the site administrator."
I somehow fixed the issue. Normally if it is not a required field we don't need to add the following code.


  '#required' => FALSE,


But adding this code fixed my issue. Please let me know if there is any better or correct way to fix this.