PlaySound when a Template is displayed


I’m currently trying to play a sound when a template is displayed in a Template Repeater.
I’m using 7.9.14 version of Ignition.

I’ve tried to add the PlaySound function in the script used to refresh the Dataset of my Template Repeater but I figure that the sound is played on the Gateway because I don’t hear it.

What’s the best way to do what I want?

Is there a way to add a script on a Template when it becomes visible or it’s displayed on users screens?

Thank you

Have you tested that sound clip from the designer’s Script Console. Verify that, first.

The playsound function works well.
In Designer’s Script Console and in the application (in a button’s script MouseClick)