Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
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

0 Replies

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;
       
    });