web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Play audio when record...
Power Apps
Unanswered

Play audio when record in 'Submitted' status

(0) ShareShare
ReportReport
Posted on by 576
I have an app with a gallery. Whenever an item is in 'Submitted' status, I want an audio sound to play on repeat until the status changes. Here is what I've done: 1. Set up a timer with the following for OnTimerEnd
 
If(Gallery256.Selected.Status.Value = "Submitted",
    Reset(Audio1_1);
    UpdateContext({playSound: false});
     UpdateContext({playSound: true}));
 
2. Set the Start attribute for the audio file to playSound. 
 
The timer runs every 10 seconds. I'm not hearing any sound. What am I doing wrong?
I've tested with a button and set the OnSelect to the following and no sound plays.
If(Gallery256.Selected.Status.Value = "Submitted",
    Reset(Audio1_1);
    UpdateContext({playSound: false});
     UpdateContext({playSound: true}));
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,315 Super User 2025 Season 2 on at
    Hi,
     
    I do not see any code there that would play a sound. I do no see any controls or screens that have controls that are set to auto play or configured to play based on variables.
  • Verified answer
    SwatiSTW Profile Picture
    741 Super User 2025 Season 2 on at
    Modify the OnTimerEnd Property
    1.  Instead of resetting the audio, directly toggle the playSound variable:
    If(
        Gallery256.Selected.Status.Value = "Submitted",
        UpdateContext({playSound: false});
        UpdateContext({playSound: true})
    )
     
    2. Ensure Audio1_1's Media and Start Properties are Correct
    Media Property: Ensure that your audio file is correctly referenced.
    Start Property: Set it to playSound.

    3. Ensure the Timer is Running Continuously
    AutoStart: true
    Repeat: true
    Duration: Set it to your desired interval (e.g., 10000 for 10 seconds).
    OnTimerStart: UpdateContext({playSound: false}) to reset before the next cycle.
     
    4. Alternative Approach Using Timer.AutoStart
     
    Instead of using UpdateContext({playSound: false}), you can set Timer.AutoStart to playSound so that the timer resets when the sound is playing.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard