Debugging the Mysterious "An illegal choice has been detected. Please contact the site administrator." Error

The Drupal Form API is a wonderful thing… once you’ve been using it long enough, it’s easy to forget all of the laborious validation and post-submit processing you used to do by hand for each and every HTML form in your solution.

The FAPI does things its own way, though, and if you’re building especially complex forms that involve multiple steps or dynamically generated options, you may encounter the following error upon submitting your form:

read more

Syndicate content

Twitter

  • I don't think it gets much better than 'Revolver' on vinyl. 2 years 49 weeks ago
  • Have fun at #drupalcon everybody! I hate to break my 3 year streak, but I should be back next year... 3 years 18 weeks ago
  • Just made my first Drupal 7 module, 'Entity Relationships', official: http://bit.ly/h3xnPK #drupal #entities #module 3 years 18 weeks ago
  • Already set up my first #git sandbox project for #drupal: http://drupal.org/sandbox/usonian/1072422 3 years 19 weeks ago
  • Drupal.org is coming back online - just set up my SSH keys for #git. Huge props to the #drupal git migration team! 3 years 19 weeks ago

Older

Contact

Andy Chase
(978) 297-6402
andychase [at] gmail.com
GPG/PGP Public Key