web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Collections - Drop dow...
Power Apps
Suggested Answer

Collections - Drop down data and text input field

(0) ShareShare
ReportReport
Posted on by 2
 
 
Hi hope someone can help. 
 
I have a created a collection that stores data selected from a drop down list and then puts it into a gallery. However, i also need this collection to take the data from the text field next to it as well. 
 
i.e. Drop down has a list of products and the text box to the side is where the quantity is entered. 
 
The line is added to the collection when the user presses a + button. How can i get the quantity for that product added to the collection as well
 
The drop down is populated from one sharepoint list and the other connected to another sharepoint list (SharePointList2)
 
Below is how ive set the collection up so far: 
 
OnStart:
 
ClearCollect(MyCollection, SharePointList1);
 
ClearCollect(DsiplayMyCollection,AddColumns(MyCollection,UniqueColumn, Code & " | " & IdentificationNo & " | " & Qty & " | " & BinName & " | "));
 
OnClick: (The commented out section here i tried to link it, but it was throwing errors with "Code" about it not being recognised)
If(
    IsBlank(LookUp(SelectedItemsCollection, Code = Dropdown1_1.Selected.Code)),
    Collect(SelectedItemsCollection,Dropdown1_1.Selected)
    //Collect(SelectedItemsCollection,{DropdownData:Dropdown1_1.Selected, Qauntity: DataCardValue18.Text})
);
 
Gallery - Items: 
SelectedItemsCollection
 
Gallery - Value:
UniqueColumn
  • Suggested answer
    CU29101231-0 Profile Picture
    1,424 Super User 2026 Season 2 on at
    hey
     
     
    yiu can try something like this:
    Collect(colProducts, 
        {
            Product: ddProduct.Selected.Value, 
            Quantity: Value(txtQuantity.Text)
        }
    );
    
    you need to rename to your needs.
     
     
    if it helped please mark as verified answer
     
     
    cheers

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard