Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the field UI, if I set an entity reference field using IEF to have a user-entered description/help-text, and set the field as required, when I load the entity's form, neither the help next nor the typical required indicator is visible in the widget.
Comment | File | Size | Author |
---|---|---|---|
#3 | ief_fieldset-description-1992434-3.patch | 1.26 KB | vasike |
Comments
Comment #1
bojanz CreditAttribution: bojanz commentedI agree that this is a problem, and that we should fix it.
Comment #2
dwwNor the admin entered field label, as I pointed out at #1962022-12: Allow labels to be overriden. Not sure if this is a better issue to deal with that, if it should be split to its own, etc.
Thanks,
-Derek
Comment #3
vasikehere is patch for description of the IEF reference field.
about the required mark for required fields there's another issue (with patch) opened : #1891652-10: "Required" form setting ignored with multiple values widget.
Comment #4
errev CreditAttribution: errev commentedDoes this patch compatible with IEF 7.x-1.3?
Comment #5
vasike@errev : at this very moment it should be.
Comment #6
errev CreditAttribution: errev commentedYes, it works, but the translation does not work. The source of translation displays in all languages.
Comment #7
vasikefor translations you should use Field translation module (i18n_field) from i18n package.
https://drupal.org/node/1279346.
Comment #8
errev CreditAttribution: errev commentedYes, I know. I even translated text help in the field setting, but the translation is not displaying.
Comment #9
bojanz CreditAttribution: bojanz commentedThe other issue fixed the required indicator and validation.
Will look at the help text issue.
Comment #10
bojanz CreditAttribution: bojanz commentedCommitted:
http://drupalcode.org/project/inline_entity_form.git/commitdiff/744b4b2
I tweaked the look of the cardinality count (when displayed), it's now below the table on the right:
https://www.evernote.com/shard/s225/sh/bc0e0e47-7c95-454d-a478-69699e961...
Comment #12
Sociality CreditAttribution: Sociality commentedIn edition 7.x-1.8 just add
//Add description to form
$element['form']['#description'] = $instance['description'] ;
in line 781 (just before the return $element; )
in inline_entity_form.module in function inline_entity_form_field_widget_for