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 / display 2 gallery type...
Power Apps
Suggested Answer

display 2 gallery type in one text input field

(1) ShareShare
ReportReport
Posted on by 76
Hi @WarrenBelz @RandyHayes @Pstork1
 
I have 2 different gallery1 and Gallery 2, I have a single text input where I want to display, data selected in either of Gallery. I have written the default property as (Gallery1.selected.'Leave type' OR Gallery2.selected.'WFH Type') then this is showing error, how to achieve the requirement?
 
I want to display the below text in label - how to display the field value in label? (ex. I have the duration field that keeps the value in days)
 
2 days Annual Leave for Gaurav Kumar
Start: Thursday, 18-Jul-23 End: Friday, 19-Jul-23

 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at
    Hi
     
    1) you didn't share the error
    2) you don't specify how we decide for you which Gallery to get the data from since both galleries could have a record selected
    3) Your Fields, you have in your text about, do not match up with the text you say you want to show.
     
    However, to verify if the Leave Type is not blank, then use that value, of if its blank, then check if Gallery2 WFH Type is blank and if not use that
    and is both are blank it won't put anything in the Label.
    If(!IsBlank(Gallery1.Selected.'Leave Type'), Gallery1.Seleted.'Leave Type', If(!IsBlank(Gallery2.Selected.'WFH Type'), Gallery2.Selected.'WFH Type'));
     
  • Kuma0002 Profile Picture
    76 on at
    @FLMike thanks for your message.
     
    Please see below screenshot. I have two different gallery1 is Leave type and Gallery2 is WFH type, all the leave type in gallery is in the form of Button.
    I want to display the button name (ex: Annual leave or Regular WFH is a button) but one at a time from both of the gallery in the text field called "You Selected" when user click on any gallery button.
     
    I am able to display the button name from one gallery only, not from both of the gallery using formula: default property: gallery1.selected.'Leave Type'.
    Also, I have tried to use formula: gallery1.selected.'Leave Type' OR gallery2.selected.'WFH Type' - it's not working.
     
     
     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

#2
11manish Profile Picture

11manish 193

#3
Valantis Profile Picture

Valantis 138

Last 30 days Overall leaderboard