When you create a Field Type of Text (formatted, long, with summary) you get an option to check for Summary Input which allows you to have a field to explicitly set a Summary. This field is only visible, however, if the Allowed number of values in Field settings is Limited to 1.

Using the 'Unlimited' option or defining values greater than 1 causes the form to auto-hide the Summary field and label. The markup is there, but inline css on the element is setting the display to none.

 <div class="js-text-summary-wrapper text-summary-wrapper" style="display: none;">
    ...
 </div>

Issue fork drupal-2826356

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Revalis created an issue. See original summary.

Revalis’s picture

Version: 8.1.3 » 8.2.2

I noticed I wasn't on the latest version, so updated to 8.2.2 and tried again. Same issue still exists.

shabana.navas’s picture

Status: Active » Needs review
FileSize
657 bytes
17.74 KB

The issue arises because the label for the unlimited textarea has a 'visually-hidden' class added to it. So, for fields with unlimited cardinality, instead of nesting the 'edit-link' underneath the label, we can put it before the label (see attached image).

grndlvl’s picture

Re-roll against latest dev

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

pankaj.singh’s picture

Tested the patch on 8.9. Its working on my end.

Please find the SS attached for ref.

Abhijith S’s picture

Applied patch #4 and it works .The summary section will be displayed in the form after the patch is applied. Including screenshots.

before:
before

after patch:
after1

after patch(expanded summary):
after2

Abhijith S’s picture

Status: Needs review » Reviewed & tested by the community
alexpott’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs tests

We need to change text.es6.js and then use the build tools to generate text.js - see https://www.drupal.org/node/2815083

Also we should add a test for this.

Version: 8.9.x-dev » 9.2.x-dev

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

vikashsoni’s picture

I have checked this issue in drupal -9.3.x-dev
There is no issue exists summery field is coming properly when the textfield has unlimited value
for ref sharing screenshot....

luisrhaas’s picture

Assigned: Unassigned » luisrhaas

Version: 9.2.x-dev » 9.3.x-dev
luisrhaas’s picture

Version: 9.3.x-dev » 9.2.x-dev

back to 9.2.x-dev

luisrhaas’s picture

Status: Needs work » Needs review

Hi!

I opened a MR with patch #4 and made some tests using multiple text field with summary configuration visible/invisible.

Please let me know if need something else or it's ok.

nod_’s picture

Version: 9.2.x-dev » 9.4.x-dev
Status: Needs review » Postponed (maintainer needs more info)
Issue tags: +JavaScript

This should have been fixed by #2817081: Show 'Edit summary' links on multi-value long text field with summary. Can you confirm the bug happens in 9.3 or 9.4?

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

quietone’s picture

Assigned: luisrhaas » Unassigned
Status: Postponed (maintainer needs more info) » Closed (duplicate)
Issue tags: -text +Bug Smash Initiative
Related issues: +#2817081: Show 'Edit summary' links on multi-value long text field with summary

@nod_, thanks.

I tested this on Drupal 10.1.x, umami install. I created a new content type with a multi-alue field of Text (formatted, long with summary). I checked the summary input box. When creating content I was able to add multiple body and summary values for the test field. This does appear to be fixed.

This is a duplicate of #2817081: Show 'Edit summary' links on multi-value long text field with summary which was created 1 month before this issue. It is a good reminder to search for duplicate issues.

I am moving credit to the other issue. No credit is given for duplicate screenshots.

quietone’s picture