Posted by cavax on July 26, 2011 at 4:51pm
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 widgetany idea? i tryed to edit the field_ui_admin_inc, but i still having the same problem.
Thanks
Comments
It would help to mention the
It would help to mention the field type or is it for any field type?
Every field
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
http://www.de-signtn.it
Are you selecting the field
Are you selecting the field type first, it should enable the form element (widget).
If not I would suspect a javascript error.
Solved
I had to delete all the site and the db. Dont know wtf:(
http://www.de-signtn.it
Shoot
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.
JQuery Update
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.
That suggests there is a core
That suggests there is a core js change since the last release of jQuery Update that would need to be addressed.
Firebug workaround and patch.
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
Chrome element panel work around
Similarly, I successfully used the Chrome elements panel to delete disable tag from the 'disabled="disabled"' property from the select element.
Same Problem
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
Same probleme
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);
});
};
Clément Hurel
Thanks. This snippet saved the day.
Thanks. This snippet saved the day.
thanks in advance!
Great patch!
Wow! This should be submitted to Drupal Core!
Soluvas - Your Friend in Business
Reported as bug
Bug report here:
http://drupal.org/node/1327440
Soluvas - Your Friend in Business
Thanks!
This saved me hours of debugging!!!!
can't find Display type in Multiple field settings
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