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 / How can I grab the val...
Power Apps
Answered

How can I grab the value of individual text inputs form a vertical gallery?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I want to create a vertical gallery that will be a form of sorts for filtering a data table. Each row will just be a label and a text input, as such:

 

aec2018_2-1667857067324.png

 

 

aec2018_1-1667856675946.png

 

I populate the gallery with this in the Items property:

 

Table({field: "BillingRegion:"}, {field: "CoreCount:"}, {field: "FeatureName:"})

 

When the user clicks on the Apply Filter button, I need to construct a concatenated string from all of the textboxes. I'll need to do a null check on each input to construct the string for the API call so I need to access each individual textbox. However, I can only access an individual row with the gallery.Selected property. I tried .AllItems but that doesn't seem to have any properties I can access after that.

 

Ideally, I figured I would be able to do something like:

 

Set(billingRegionFilterText, gal_StorageTest.txt_inpt.Text WHERE field = "BillingRegion");
Set(coreCountFilterText, gal_StorageTest.txt_inpt.Text WHERE field = "CoreCount");

 

I know that WHERE isn't a PowerApp feature but I'm just using it to illustrate the logic I'm trying to achieve. 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @aec2018 ,

     

    Please try:

    Set(billingRegionFilterText,LookUp( gal_StorageTest.AllItems,StartsWith(field,"BillingRegion")).txt_inpt.Text);
    Set(coreCountFilterText,LookUp( gal_StorageTest.AllItems,StartsWith(field,"CoreCount")).txt_inpt.Text);
    

     

     

    vbofengmsft_0-1667876992982.png

     

    Best Regards,

    Bof

     

  • aec2018 Profile Picture
    Microsoft Employee on at

    @v-bofeng-msft That worked perfectly! Thank you!

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 899

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 499

Last 30 days Overall leaderboard