Change record status: 
Project: 
Introduced in branch: 
11.x
Introduced in version: 
11.2.0
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

Impacts: 
Site builders, administrators, editors
Module developers
Themers
Site templates, recipes and distribution developers

Comments

ccarnnia’s picture

++
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)