Question
Can I delay the opening of the Web Widget (Classic)?
Answer
Yes, you can force the Web Widget to open after a specific amount of time with custom code. To achieve this, use the hide command, and then use the show command of the Core API.
In the sample below, the the code delays the widget for 60 seconds. Note that the time is in milliseconds.
<script type="text/javascript">
zE('webWidget', 'hide');
setTimeout(function(){ zE('webWidget', 'show'); }, 60000);
//time in milliseconds - 60 seconds = 60000
</script>
Disclaimer: This article is provided for instructional purposes only. Zendesk does not support or guarantee the code. Post any issues you have in the comments section or try searching for a solution online.
0 comments
Please sign in to leave a comment.