Hi,
We have a requirement to select default folder field from the dropdown after selecting a particular path in AEMAACS.
let's say we select the path as "/content/dam/exampleA" for this path in dropdown folder field needs to be selected as default.
Is there any way that can be done using the OOTB functionality?
please help us trying to solve above requirement.
Thanks
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi,
I don't think there is an OOTB way to do this unless you overlay and update the original script that build that page. Alternatively, you could use JS to achieve such functionality. Something like the below would work:
// Find all elements with the specified tag and class
var elements = document.querySelectorAll('coral-selectlist-item-content._coral-Menu-itemLabel');
// Iterate over the elements to find the one with the specific text
elements.forEach(function(element) {
if (element.textContent.trim() === 'Files & Folders') {
// Click the element if the text matches
element.click();
}
});
Keep in mind that the above code should be triggered once the button is loaded on the screen.
Hope this helps.
Hi,
I don't think there is an OOTB way to do this unless you overlay and update the original script that build that page. Alternatively, you could use JS to achieve such functionality. Something like the below would work:
// Find all elements with the specified tag and class
var elements = document.querySelectorAll('coral-selectlist-item-content._coral-Menu-itemLabel');
// Iterate over the elements to find the one with the specific text
elements.forEach(function(element) {
if (element.textContent.trim() === 'Files & Folders') {
// Click the element if the text matches
element.click();
}
});
Keep in mind that the above code should be triggered once the button is loaded on the screen.
Hope this helps.
Views
Likes
Replies