I want the system to play an audio sound when it detects the user inputs a duplicate and when the form submit is a success.
The way I'm doing it is by playing the audio on Form Configuration using JavaScript. The problem with this method is the audio plays before the form is submitted. Another problem is that I must code it for every form I want.
Is there a way to modify or hard-code this on the system's form validation so it would play for every form I create?
I only have limited coding knowledge so it would be very helpful if anyone could provide the code and what .php file needs to be modified.