DrupalGap icon indicating copy to clipboard operation
DrupalGap copied to clipboard

Radio/Check buttons widgets don't work on node_edit

Open mafiname opened this issue 9 years ago • 4 comments

Ok so I'm new to drupalgap, and I have been on this issue the whole day, so not sure if its me or me :)

Here is my testing so far... I'm using hook_form_alter for node_edit, but really not doing much other than hidding some fields. I kept getting the following error everytime I submit the form (for both create and edit a node)..

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

I notice this happens only only on the fields of field type "List(text)" in drupal with the widget type "Check boxes/radio buttons". once I changed the widget type to "select list" everything worked. I had 4 fields of this type, 3 worked except one (in this one I had to also change the "number of values" to 1 for in the field setting. Once I did this I could create and save nodes.

from the response window I had the following:

{"form_errors":{"field_priority][und":"An illegal choice has been detected. Please contact the site administrator."}}

I'm guessing that these widget types are not expecting the language field...

Is this an issue or is it me? Thanks in advance for your help.

mafiname avatar Oct 31 '16 18:10 mafiname

@mafiname This may be related to these long standing issues:

  • https://www.drupal.org/node/2224803
  • https://github.com/signalpoint/DrupalGap/issues/178

DG should properly handle und without issue.

signalpoint avatar Oct 31 '16 20:10 signalpoint

@signalpoint Thanks! I will try out the patch.

mafiname avatar Nov 01 '16 05:11 mafiname

@signalpoint Patch didn't work for me.. same problem.

mafiname avatar Nov 01 '16 18:11 mafiname

Could you solve this problem?

sangasgar avatar Dec 13 '17 22:12 sangasgar