cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sahara22
Helper V
Helper V

How display label text based on ONE of the two options selected.

Hello,

 

I have Label that I need Text to appear based on whether the User searches a gallery or scans ID card.

 

Heres what I have: 

 

BrowseGallery8_2.Selected.Title Or EEBAROCODE.Value

 

It dose not work, and the label says "False" 

 

I tried to put "&" and it shows the selected title value and the word "Sample Value" for the barcode even though it wasn't use.

 

The user can only choose on option (Either manually searching or scanning in). The Label should only show either the (Gallery selected value or the Barcode value, not both)

 

Any help would be Great! thanks! 

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User
Super User

@Sahara22 

If the label is outside the gallery, in the Text property of the label

Coalesce(EEBAROCODE.Value, BrowseGallery8_2.Selected.Title).  The label will show the barcode value if it is not blank, otherwise it will show the selected Title in the gallery.

View solution in original post

3 REPLIES 3
Drrickryp
Super User
Super User

@Sahara22 

If the label is outside the gallery, in the Text property of the label

Coalesce(EEBAROCODE.Value, BrowseGallery8_2.Selected.Title).  The label will show the barcode value if it is not blank, otherwise it will show the selected Title in the gallery.

View solution in original post

Hello @Drrickryp ,

 

Thanks for the reply back.

 

When I used that formula , when I selected from the Browse gallery the label displayed "Sample Value" . So I need it to show the text value from the gallery or if the barcode is used, use that value. Its One or the other. 

 

Thanks again. 

Sahara22
Helper V
Helper V

Hello, @Drrickryp , it seems I had to re start the power apps.. It works now. Thank you so much! 🙂 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,323)