Repeater compatibility with DropDown

Hi,
I’m trying to add a drop-down component to a repeater and it doesn’t work.
Can I use the repeater with drop down ? or any other multi select component?

Thanks,

1 Like

You can’t use data collectors within repeaters, idk why

Hi,

Right now repeaters does not support input component, we know that this is requested and doing everything we can to make the product better :slight_smile:

Liran.

Hello,
I was also trying to use a dropdown list within a repeater and it is so pitty I cannot do so.
Do you know if or when will this be available?

Nick

Hello,
I found a solution that works for me:

$w(“#repeater”).data = myData;

        $w("#repeater").forEachItem(  **async**  ($item, itemData, index) => {                

            //Set dropdown options  
            $item("#myDropdownList").options = [ 
                {"label": "Hide", "value": "hide"}, 
                {"label": "Delete", "value": "delete"}, 
                {"label": "Test", "value": "test"} 
                ]; 

        }) 

//Create an onChange event for this dropdown list. Check the arguments: event, $w
export function myDropdownList_change( event, $w ) {
let itemId = event.context.itemId ;
let myAction = $w(“#ddlPostOptions”).value;
myFunction(itemID, myAction);
}

//Do whatever you like for this item of repeater based on ddl selection
function myFunction(itemID, actionType) {
console.log(“We will " + actionType + " repeater item” + itemID);
}