Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Set a predefine Folder Metadata Schema

Avatar

Level 2

Hello 

It's me Mario! 

 

Is there a way to set a predefine Folder Metadata Schema? 

For instance, we only have one Folder Metadata Schema, and we want this metadata schema to be selected by default when the user creates a folder.

 

thank you indeed. 

mariops_0-1666702351949.png

 

1 Accepted Solution

Avatar

Correct answer by
Level 2

I've solved it using javascript. 

 

 $(document).on('click', '#dam-create-folder', function(){
        //console.log("CREATE FOLDER JS")
        var selected = document.querySelector('#coral-id-1')
        selected.items.getLastSelectable().selected = true;
       
    });

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

I've solved it using javascript. 

 

 $(document).on('click', '#dam-create-folder', function(){
        //console.log("CREATE FOLDER JS")
        var selected = document.querySelector('#coral-id-1')
        selected.items.getLastSelectable().selected = true;
       
    });