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

Notifications

Announcements

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
I have the same question (0)
  • Suggested answer
    mmbr1606 Profile Picture
    14,605 Super User 2025 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard