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?