Passing user details in JS embedded widjet

Passing user details in JS embedded widjet

by Yana Konstantinovsky -
Number of replies: 0

Hi,

I'm trying to implement a Zendesk chat widjet.
I want it to get some user details without having the user fill lthem in.
The code goes in to the additional HTML head section.
I'm unable to retrie the user data.

This is the embed code.
Can somebody help please? 


/-----------------------------------------------------------------------------------------------------/

<!-- Current widget customizations -->
<script type="text/javascript">
               zE('webWidget', 'setLocale', 'he');
               zE('webWidget', 'prefill', {
               name: {
                    value: 'Cusrrent_customer_name',
               },
               email: {
                   value: 'current_customer_email@email.com',
                  readOnly: true // optional
               },

               phone: {
                  value: '0521234567',
                 readOnly: true // optional
               }
               });

</script>


Average of ratings: -