Quantcast
Channel: LivePerson Connect : Popular Discussions - All Communities
Viewing all articles
Browse latest Browse all 2324

Passing custom variables

$
0
0

Hi. I have created JS chat app using the new updated code that is connecting to LP agent app ,put it in IIS and everithing is working fine except passing

custom variables.I just don't see them at other side in the part of other variables. this is code that should do it :

//Sets a custom variable in the chat session 

    function setCustomVariable() { 

        var val = getTrimmedValue("varValue", true); 

        var name = getTrimmedValue("varName", true); 

        if (val && name && chat) { 

            var vars = {}; 

  alert (val);

            vars[name] = val; 

            chat.setCustomVariable({ 

                customVariables: vars, 

                error : function(){ 

                } 

            }); 

        } 

    } 

What are possible reasons of that?

 


Viewing all articles
Browse latest Browse all 2324

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>