How to skip the description step when uploading a file for a specific field? in the media module's settings, there's a checkbox called "Skip available fields" that lets you skip filling out fields that are attached to your media when you add one.

In some cases, we need to let users enter a description for files that are uploaded and in other cases, no.

Does anybody know how to skip the available fields for a specific field of a specific content type ?  What kind of code or hook implementation is required, etc. ...

Thanks !
You could probably acheive that by implementing

hook_field_attach_form

and setting the required values (e.g #required =&gt; TRUE or unsetting the description element.).

The entity_type and entity values are available for conditionally showing / hiding data there.