Drupal FAPI Validation Error

Posted: 2013-11-20 10:31:00

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

 


Tags:

JavaScript