cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jbrown184
Frequent Visitor

Audio when search criteria is met

I want whenever my gallery says Amber to play an audio clip. I can’t figure out anything. Please help!

 

 

088E6F34-AA9F-4B4C-A230-C825EE93F796.png

1 ACCEPTED SOLUTION

Accepted Solutions
rubin_boer
Super User
Super User

hi @Jbrown184 

 

Add a variable to the search textbox to activate the sound when Amber is found like

Set(_PlayWav, If(YourGallery.Selected.Value = "Amber",true,false))

 

Set the Audio Start = _PlayWay

Set the Audio OnEnd = Set(_PlayWav,false)

 

When the gallery reads Amber the sound will play

 

Hope it helps

 
hey there if you liked the post give it a thumbs up, and if it solved your question please accept it as a solution.

View solution in original post

3 REPLIES 3
rubin_boer
Super User
Super User

hi @Jbrown184 

 

Add a variable to the search textbox to activate the sound when Amber is found like

Set(_PlayWav, If(YourGallery.Selected.Value = "Amber",true,false))

 

Set the Audio Start = _PlayWay

Set the Audio OnEnd = Set(_PlayWav,false)

 

When the gallery reads Amber the sound will play

 

Hope it helps

 
hey there if you liked the post give it a thumbs up, and if it solved your question please accept it as a solution.

@rubin_boer on Set(_PlayWav, If(YourGallery.Selected.Value = "Amber",true,false)) do I put it on the default tab or items?

rubin_boer
Super User
Super User

hi @Jbrown184  you can it on the screen OnVisible or if you use a search text box you can add its to the onchange event 

 
hey there if you liked the post give it a thumbs up, and if it solved your question please accept it as a solution.

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 (1,766)