Hi guys,

I'm trying to use Select Other module in account fields (admin/config/people/accounts/fields) and I'm getting "list_illegal_value" error.

What I did:
1. access /admin/config/people/accounts/fields
2. create one field type: List (text) and widget: Select other list - mandatory or not, doesn't matter.
3. give options to that field like: 1|One, 2|Two, ..., other|Other (one per line of course)
4. access /user/register to try a new registration

When I submit the form I get an error message: "list_illegal_value" for any value in the textfield when Other is chosen. IF I enter with a value that is IN the dropdown list, everything works.
For example, my list is: "1|One, 2|Two, ..., other|Other", if I enter in Other textfield: "Two" - I don't get the error. If I enter with "Twoo" - I get it.

Someone has any clue about this problem? :)
Thanks to all!

Comments

mradcliffe’s picture

Do you have any allowed values specified in the field? If you do, then an other option will not be validated.

fabioknoedt’s picture

Status: Active » Closed (works as designed)

What a trick! It solved the problem! Thank you!

goodboy’s picture

I have the same problem ( 7.x-1.0 version ). When I try to delete allowed values I get an error "Allowed values list: some values are being removed while currently in use."

mradcliffe’s picture

You need to remove all values that you've put in the allowed values list that are in-use by user accounts. For example, you could run a sql query to find these select * from field_data_field_MYFIELDNAME where entity_type = 'user' and value = 'MY VALUE' or create a user view that shows you what user accounts have the value you want to remove from the allowed values list.