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 / Collection value on te...
Power Apps
Unanswered

Collection value on text box

(0) ShareShare
ReportReport
Posted on by 1,599 Super User 2024 Season 1

Hello,

 

Iny my app I have various products lists which have their own "Size" values which then have dependent "Waist" and "Leg Length" values based on the "Size" selected.

sudosaurus_2-1666978756415.png

 

I have created a collection named "TrouserTable". 


Ideally, Id like to have a text box per row under the "Product" column with the default value of Female Black Officer Trousers for the first row and Female Holster Pocket Trousers - Black/Grey for the second row.

 

These will then set a precedent for the "Size", "Waist" and "Leg Length" columns.

 

sudosaurus_1-1666978601088.png

I've worked out I can set the value of the Text field to First(TrouserTable).product - however this will only apply to the first product name and I'm unsure how to get it to specifiy the second product name on the row below?

 

Any help would be appreciated. 

 

Thanks,

Chris

Categories:
I have the same question (0)
  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    What may be easiest is to just add a Product Number field and have each one numbered in order. Then you can default to any row you want

  • sudosaurus Profile Picture
    1,599 Super User 2024 Season 1 on at

    @BrianS 

     

    Could you explain how this would work?

     

    I've tried adding a productID (pid) field to the table but I still can't work out how to get this working when "Female Black Office Trousers" is only available on one row... 🤔

     

    sudosaurus_0-1667211641425.png

     

  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    Since you were using first, I assumed you would use 1,2,3,4,... as the IDs so you could just use a LookUp on the ID numbers and get them in order

  • sudosaurus Profile Picture
    1,599 Super User 2024 Season 1 on at

    @BrianS 

     

    So I could use the table column name as "PID" with "1", "2", "3" on each line in the collection right?

  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    Yes - That will let you take items in order 

  • sudosaurus Profile Picture
    1,599 Super User 2024 Season 1 on at

    @BrianS still not entirely sure how I should be doing this?

  • BrianS Profile Picture
    2,407 Super User 2024 Season 1 on at

    Maybe I was sent down the wrong path by your using the First() function. Are you trying to get the second row to use the next product type on the list? If that is the case, I have been answering the wrong question. 

    After re-reading things, I think what you want is to get the text boxes for first set of sizes for each product to show up as the defaults in your form.

    Since what you really need is to know exactly what sizes match the products since there are specific combos, you really only want to user to pick one of those sizes and have the list fill in the rest. You do not want people to order an Officer Trouser with a 38 inch waist. So once the distinct list is set you want to search through the list and get just the sizes. The use that to populate the dropdown for size. Then you will need to do a LookUp() to fill in the other fields. But it appears that you really do not want an unlimited selection on these other fields.  

    If I am wrong again, let me know. There is a video that talks about how to get multiple dropdowns to be set from previous data that may be of use.

  • sudosaurus Profile Picture
    1,599 Super User 2024 Season 1 on at

    @BrianS 

     

    So if a user selects a Size "12" then "41" would automatically select for the waist.

     

    sudosaurus_0-1667220546599.png

    However if being done for Men's products then leg length would be used which is available in 3 different options.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard