When I try to preview a node form I get the following error:

An illegal choice has been detected. Please contact the site administrator.

Haven't been able to track the cause down.

CommentFileSizeAuthor
#3 betterselect_267320.patch1.16 KBdrewish

Comments

drewish’s picture

Title: Preview doesn't work » An illegal choice has been detected. Please contact the site administrator.

actually now it won't let me save the node... not sure what's going on.

drewish’s picture

so this seems to be related to a bug where required fields aren't being marked as required. at some point the empty array is getting converted into a string with a term id in it and that's causing the error.

drewish’s picture

Status: Active » Needs review
StatusFileSize
new1.16 KB

Okay, I think I figured it out. Both the #default_values and #values need to be flipped.

webchick’s picture

Status: Needs review » Fixed

Oh man. You are awesome. I officially dedicate a Plaque Of Absolute Awesomeness in your name. :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.