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 / Problem with Visible o...
Power Apps
Unanswered

Problem with Visible outside of a gallery with entries from a gallery

(0) ShareShare
ReportReport
Posted on by 147

Hello everyone,

 

I'm not getting anywhere right now.
Initial situation:
I have a gallery, there are three fields among other things:


1. Absence type
2. Status (approved, request open)
3. Number of days (this field indicates the value of the absence)

 

I also have an icon in this gallery where I would like to change the request from request open to approved
So far it works.
Now I would like to put the days that are for the respective request into a label field (this is outside the gallery)

 

Now to my problem:
This label field (outside) should only be visible if the absence type = approved and also only if the absence type is set to training

 

I tried the following:

Visible on the Label Field:
If(Label1_169.Text = "approved" && Label1_41.Text = "training";true; false)
Label1_169.Text and Label1_41.Text = Field from Gallery

 

also set a variable on the icon = Set(typ;ThisItem);;
If I now confirm a line (via the icon) it works, but if I want to add a second entry, it overwrites the existing one

 

What am I doing wrong:

Categories:
  • MudassarSZ365 Profile Picture
    591 on at

    Hi @memphis11 ,

    Set a context variable when the icon inside the gallery is selected to hold the current item's data.

    Set(CurrentItem, ThisItem)

    Use this variable to determine the visibility of the label outside the gallery. The visible property of the label should be something like:

    Visible = CurrentItem.Status = "approved" && CurrentItem.AbsenceType = "training"

    To display the number of days from the approved and training item, set the Text property of the label to:

    Text = CurrentItem.NumberOfDays

    If this solution resolves your issue, please mark it as the solution and leave a thumbs up. Thank you! 😊

     

  • memphis11 Profile Picture
    147 on at

    Hi,

    First of all, thank you very much, but unfortunately nothing is displayed in the Label Field.


    I put the following (in German)

    Visible (Label Field):
    varUrlaubstyp.Abwesenheitstyp = "Fortbildung" && varUrlaubstyp.Status_Anfrage = "genehmigt"

     

    Text (Label Field):
    varUrlaubstyp.Fortbildung

     

    in the gallery the icon:
    Set(varUrlaubstyp;ThisItem);;

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard