i got the title's problem when i try to create a new field.
The problem is that i select a new field name, then the type and i'd like to select the widget, but i cant because the input select it's like locked. i mean i cant click on the widget select, and if i save i get:

Add fieldname field: you need to select a widget

any idea? i tryed to edit the field_ui_admin_inc, but i still having the same problem.
Thanks

Comments

nevets’s picture

It would help to mention the field type or is it for any field type?

andrea.cavattoni’s picture

The problem is that this happens for every field type, also the existent ones....

i tried changing themes and stuff, but it seems to be a problem outside themes and css (i thought was an z-index).

It's something in the core, cause i've also tryed to rebuild the site with a new db, but nothing has changed

nevets’s picture

Are you selecting the field type first, it should enable the form element (widget).

If not I would suspect a javascript error.

andrea.cavattoni’s picture

I had to delete all the site and the db. Dont know wtf:(

eric-ie’s picture

The same thing is happening to me.
It happened immediately after upgrading to Drupal 7.7
Didn't happen before that but now every field asks me to add a widget every time but the widget selector is locked. So we can't add any fields.

eric-ie’s picture

For what it's worth I took jQuery Update off my site and everything went back to normal. Put it back on and my fields broke again.

nevets’s picture

That suggests there is a core js change since the last release of jQuery Update that would need to be addressed.

artfulrobot’s picture

This happened for me when I updated jQuery. Suspect it's something to do with the changes between .attr() and .prop().

I 'fix' it by using firebug to remove the 'disabled="disabled"' property from the select element.

And then it annoyed me too much. Here's a patch to core: modules/field_ui/field_ui.js

89c89,92
<     $(this).html(html).attr('disabled', disabled ? 'disabled' : '');
---
>     // old drupal core: 
> 	// $(this).html(html).attr('disabled', disabled ? 'disabled' : '');
> 	// patch for jQuery>1.6ish:
> 	$(this).html(html).prop('disabled', disabled);
242c245,246
<       $(ajaxElements).attr('disabled', true);
---
> 	  // attr->prop for jQuery 1.6+
>       $(ajaxElements).prop('disabled', true);

Rich

mennonot’s picture

Similarly, I successfully used the Chrome elements panel to delete disable tag from the 'disabled="disabled"' property from the select element.

simoneaudesigns’s picture

This workaround worked for me! Many, many thanks.

skadu’s picture

I had this issue on a 7.0 install and had updated to 7.7 to try and fix it but that did not help. The issue is that the dropdown list never gets populated with widget choices. I disabled jquery_update and the problem has been solved. Not sure where to point the blame though.

~Cooper

churel’s picture

In my point of view jquery update change the behavior of empty string. So here a patch

Index: modules/field_ui/field_ui.js
===================================================================
--- modules/field_ui/field_ui.js	
+++ modules/field_ui/field_ui.js	
@@ -86,7 +86,7 @@
       html += '<option value="' + value + '"' + (is_selected ? ' selected="selected"' : '') + '>' + text + '</option>';
     });
 
-    $(this).html(html).attr('disabled', disabled ? 'disabled' : '');
+    $(this).html(html).attr('disabled', disabled ? 'disabled' : false);
   });
 };

pio.fernandes’s picture

Thanks. This snippet saved the day.

ceefour’s picture

Wow! This should be submitted to Drupal Core!

ceefour’s picture

dready2011’s picture

This saved me hours of debugging!!!!

Novocaine88’s picture

Solved it for me! Many thanks!

iancu35’s picture

beside this issue caused by jquery_update, I have to report another problem, caused by it (in my opinion)

For an image field within a view, when I choose Multiple field settings it doesn't unfold any menu for Display type: Unordered list | Ordered list | Simple separator - doesn't appear any option

I don't know how to solve it.

Many thanks for all you have contributed to the widget issue, so far

deanflory’s picture

I found that by reverting jQuery Update back from v1.7 to the original v1.5 that I was then able to select widgets again.

/admin/config/development/jquery_update

Doesn't really do any good to have jQuery Update as a module or requirement for so many other modules if it breaks the site when jQuery is updated.

doub1ejack’s picture

I have a drupal 6 site that is having the same problem - does anyone know how to fix for D6?

doub1ejack’s picture

Grep the entire site for .js files containing .attr('disabled', disabled ? 'disabled' :. In my case, changing the following lines in /sites/all/modules/cck/content.js solved the problem (line ~75; at the very end of the file):

From:

    $(this)
      .html(html)
      .attr('disabled', disabled ? 'disabled' : '');
  });
}

To:

	 if( disabled ) $(this).html(html).attr('disabled', disabled);
	 else $(this).html(html).removeAttr('disabled');
  });
}
nitvirus’s picture

I was able to resolve it by degrading my jquery version to 1.5

qqboy’s picture

hi friends all i can not contribute more back to you all
but as to this problem
following advice above,
i use firebug and delete the disabled attribute
and leave it
and choose a type like auto complete or radio whatever
then submit
it works
nice
thanks all

barresoft’s picture

1) install or make sure that have jquery_update module (https://www.drupal.org/project/jquery_update)
2) enter to module configuration
2.1) Default jQuery Version -> select last version, on my case "1.10"
2.2) Alternate jQuery version for administrative pages -> select "Default (Provided by Drupal)"

done!

note: if not works, try to change the step 2.2 from higher to lower version