YouTube
The YouTube button opens a YouTube Business page a pop-up window where the survey taker can subscribe the company's videos. If not already signed in, the survey taker is prompted to do so.
Shortly after the pop-up loads, the button changes to its disabled state.
For information on how to implement a social link in a survey, see Social links in surveys.
Configuring the YouTube link
Configure the link with these parameters. The values may be literal or retrieved from Data fields.
|
Parameter |
Description |
Example |
|---|---|---|
|
|
The YouTube user name to view the company's YouTube Business page. For example, the |
|
|
|
Optional. Height of the pop-up window in either pixels (integer) or as a screen percentage. Default is 600 pixels. |
|
|
|
Optional. Width of the pop-up window in either pixels (integer) or as a screen percentage. Default is 600 pixels. |
|
This example retrieves the YouTube user page from the Unit data field named u_youtube_username:
<div id="social-link-config-youtube" style="visibility: hidden; display: none;">
<span id="youtube-username">[=u_youtube_username:html]</span>
<span id="youtube-window-height">600</span>
<span id="youtube-window-width">600</span>
<script type="text/javascript">
if (!Array.isArray(window.MedalliaSocialLinks)) {
window.MedalliaSocialLinks = [];
}
window.MedalliaSocialLinks.push({
type: 'youTube',
username: document.getElementById('youtube-username').innerHTML,
windowHeight: document.getElementById('youtube-window-height').innerHTML,
windowWidth: document.getElementById('youtube-window-width').innerHTML
});
</script>
</div>
