cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MattyH
Continued Contributor
Continued Contributor

Label Text directly relating to choice in previous gallery.

Hi

 

This, hopefully, is something that can be solved very simply, but I just can't seem to find it.

 

What I am hoping to do is make the label of a gallery change, depending on what was chosen in a previous gallery.

 

I have a list of locations in the first gallery, and when one location is chosen, the app brings up a list of all items within that location. What I want to do is have a custom label which tells the user which location they are in at the top of the second gallery.

 

For instance, first gallery chooses "Location 1", then the second gallery label will state "Location 1" at the top of the gallery.

 

Any assistance would be appreciated.

 

Matty

2 ACCEPTED SOLUTIONS

Accepted Solutions
Mike8
Memorable Member
Memorable Member

Hello,

You can insert a Label (Label1) above Gallery2 and set the Text Property of Label1 to:
Label1.Text= Gallery1.Selected.Location

Instead of Location you should use the column name of the table that contains the locations.

View solution in original post

MattyH
Continued Contributor
Continued Contributor

All working now,  just needed the below.

 

'Locations Gallery'.Selected.Location

 

Works like a charm, thanks.

View solution in original post

4 REPLIES 4
Mike8
Memorable Member
Memorable Member

Hello,

You can insert a Label (Label1) above Gallery2 and set the Text Property of Label1 to:
Label1.Text= Gallery1.Selected.Location

Instead of Location you should use the column name of the table that contains the locations.

MattyH
Continued Contributor
Continued Contributor

Hi Mike,

 

Thanks for your help.

 

Unfortunately this does not seem to be working, though, as I am getting an Invalid Argument Type warning when I enter the text as recommended.

MattyH
Continued Contributor
Continued Contributor

All working now,  just needed the below.

 

'Locations Gallery'.Selected.Location

 

Works like a charm, thanks.

Mike8
Memorable Member
Memorable Member

Great MattyH 🙂

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,850)