Add a YouTube Video to a webpage or Order Form - MKB 0118


    In this article we'll demonstrate how to add a YouTube video to a MyOrderDesk webpage or Order Form.
    The illustration below shows the button that appears on the page and a screen shot of how the video appears.




    If you're adding the button to the home page or any other MyOrderDesk webpage, simply paste the following code anywhere on the page and update the Youtube link in the script.

    If you're adding the button to an Order Form, start by adding an HTML field to your Order Form and name it "button". The paste the text into the value field.



    Be sure to replace the"XXXXXX" YouTube link with the correct link to your video.


    <div id="dialog-udf_button" title="Getting Started Video"><iframe width="560" height="315" src="//" frameborder="0" allowfullscreen=""></iframe></div>
    <h4><button id="dialog-button-udf_button">Getting Started</button>
    <script type="text/javascript">// <![CDATA[
    $(function() {   
    $("#dialog-udf_button").dialog({ autoOpen: false, modal: true, width: 600, height: "auto", buttons: { Close: function() { $(this).dialog("close"); } } });   
    $("#dialog-button-udf_button").click(function() { $("#dialog-udf_button").dialog("open"); return false; }); 
    // ]]></script>



    Powered by Zendesk