Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Unable to delete the selected value in coral3 selection

Avatar

Level 4

In one of our component we are developing , we have a scenario selecting on the path browser we will get the child nodes and set these values into the selection field.

we have created a listener and on selection of the Path browser we will make a ajax an call and get all the child nodes of it and i am setting values in the selection filed.The problem is was unable to delete the only selected value it is appending to my child list.

var test2= $("[name='./childproperty']")[0];

var length = $(".coral3-SelectList-item").length;

if(length >0){

$(".coral3-SelectList-item").remove();

}

-.each(pathbrowserchildvalues, function(value,lang) {

$(test2).append('<coral-select-item>'+value.text+'</coral-select-item>);

});

note:- from ajax i am getting the values of "pathbrowserchildvalues".

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
1 Reply

Avatar

Correct answer by
Community Advisor