• #32900
    Forcetalks

    How to play BEEP Sound in Salesforce?

    Please explain how to play BEEP Sound in Salesforce?

     

    #32908
    Forcetalks

    Hi Madhulika,

    You’ll need to embed a short WAV file in the HTML, and then play that via code.It’s not possible to do directly in JavaScript. It’s not possible to do directly in JavaScript.

    <script>
    function PlaySound(soundObj) {
    var sound = document.getElementById(soundObj);
    sound.Play();
    }
    </script>

    <embed src=”success.wav” autostart=”false” width=”0″ height=”0″ id=”sound1″
    enablejavascript=”true”>

    Now, you can call above script in VF page.

    Thanks.

    #34820
    Salesforce | shariq shariq #1
    Forcetalks

    Hi,

    To add more –

    There is an App I saw recently, I think its called ‘Ring my Bell’, which sounds a bell every time an Opportunity is closed. You need to look into the app and see what they use.

    Hope this helps.

    #36196
    Salesforce | Parul Parul #2
    Forcetalks

    Adding some points:

    You do this by using Javascript . You’ll need to embed a short WAV file in the HTML, and then play that via code.

    <script>
    function BeepSound(soundObj) {
    var sound = document.getElementById(soundObj);
    sound.Play();
    }
    </script>

    <embed src=”success.wav” autostart=”false” width=”0″ height=”0″ id=”sound1″
    enablejavascript=”true”>

     

    And then you can call this javascript method from Visualforce page like:

    <apex:commandLink value=”Beep Button” onclick=”BeepSound(Sound1)” />

     

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2019 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?