By claudiu.cristea on
Change record status:
Draft (View all draft change records)
Project:
Introduced in branch:
11.x
Introduced in version:
11.2.0
Issue links:
Description:
On file field instance settings, when the Enable Description field checkbox is checked, a new Require the Description field checkbox is revealed. By checking this new setting, the description element will be required when adding or editing a file field item.
Site builder perspective

End-user perspective

| Attachment | Size |
|---|---|
| file_field_description.png | 178.54 KB |
| file_field_description_required.png | 66.8 KB |
Impacts:
Site builders, administrators, editors
Module developers
Themers
Site templates, recipes and distribution developers
Comments
good idea
++
without it we'd have a hard time refering to {{ file.description }} in our templates.
this amount of validation in twig template was not enough:
{% if file.description is not empty %} {{ file.description }} {% else %} {{ file_entity.filename }} {% endif %}still looking ....
Casey Carnnia (carnnia@gmail.com)