cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper V
Helper V

Display collection item values in textbox

Hello,

I have created a Shopping Cart program. The user can add items and the Name and Price for each item is stored in a collection. I am trying to create a reciept screen that will show the price for each item in the collection named 'ShoppingCart', Is it possible to display price for each item in the collection in a textbox? 

1 REPLY 1
Continued Contributor
Continued Contributor

Hello,

 

I think that depends on how your wanting to show the receipt. If your ShoppingCart collection is inside of a gallery, you could add a label inside the gallery and just reference the price for each item by entering: ThisItem.Price into the label. 

 

Or if you want to maybe display the total of all the prices combined, you could say: Sum(ShoppingCartCollection, Price)

 

Does that answer your question at all? 

If this solved the problem for you, feel free to hit "Accept as Solution" so others can find the answer easier. 🙂

Kind regards,

Ben Fetters
Power Apps/Power Automate Developer
www.sovereignsp.com

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Kudoed Authors
Users online (68,655)