Is it possible to force modal window pop up to allow authoring title in case title is missed during asset upload | Community
Skip to main content
Level 4
July 4, 2023
Solved

Is it possible to force modal window pop up to allow authoring title in case title is missed during asset upload

  • July 4, 2023
  • 1 reply
  • 953 views

Hi Team,

 

We are looking to make title of an asset mandatory, and as part of this whenever author uploads an asset into dam if title is missing it should open a modal window to enter mandatory fileds like title and move forward.

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by aanchal-sikka

You would have to overlay /libs/dam/gui/coral/components/commons/fileupload/clientlibs/fileupload/js/fileupload.js and customize as per the needs.

 

However, this would also impact the bulk upload of assets. 

1 reply

aanchal-sikka
Community Advisor
Community Advisor
July 4, 2023

Hello @aem-enthu27 

 

We can define the metadata fields mandatory via metadata schema OOTB. AEM already provides checks and highlights for mandatory data to be available.

 

If we follow the route of forcing the user to enter title while upload, then we would have to customize

- Upload asset via Create button

- Drag n drop

- Will also cause discrepancies for uploads from Desktop App/Asset Link.

 

Which use-case is bothering, even after making the title as mandatory via metadata schema?

Aanchal Sikka
Level 4
July 5, 2023

We want to force user to enter title while upload asset via create button.

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
July 5, 2023

You would have to overlay /libs/dam/gui/coral/components/commons/fileupload/clientlibs/fileupload/js/fileupload.js and customize as per the needs.

 

However, this would also impact the bulk upload of assets. 

Aanchal Sikka