Skip to content

Instantly share code, notes, and snippets.

@nbashaw
Created February 7, 2012 20:20
Show Gist options
  • Save nbashaw/1761708 to your computer and use it in GitHub Desktop.
Save nbashaw/1761708 to your computer and use it in GitHub Desktop.
To show only parts of the pre-chat survey (or to make some of them required), use the model below, changing the numeric parameter and text parameter as appropriate:
<!-- 2 == required, 1 == show -->
<script type='text/javascript'>
olark.configure('system.require_name', 2);
olark.configure('system.require_email', 0);
olark.configure('system.require_phone', 0);
olark.configure('system.habla_offline_phone_text','\u003Cclick here\u003E and type your Phone Number');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment