when setting options in an option list dyamically you may run into "An illegal choice has been detected" 

You will have to set those fileds #validate => TRUE as seen bellow