duanjiong2021 2016-09-08 18:18
浏览 78

如何将zopim聊天小部件与自定义表单链接?

Does anyone know how to link custom form with zopim chat? I have a form that contains 2 questions and one listing with radio buttons. If customer fills that form, zopim chat widget have to open zopim chat widget with provided information.

For example:

Client answers "Answer1" to first question and "Answer2" to second question. Client chooses radio button with value "radiobutton2" out of radio button listing. Then he clicks on "Submit" button and zopim chat widget automatically opens up and customer is automatically saying there following line of text: "Hello! I want to sell you Answer1 for Answer2 with radiobutton2!"

I'm using wordpress.

Is it possible?

I also found code:

javascript:void($zopim.livechat.say('textext'));

  • 写回答

1条回答 默认 最新

  • dongren4758 2016-09-30 23:28
    关注

    You can use the Zopim API for this indeed:

    Make it post to the same page with that info using submit. Use input fields and <form> element. Then

    $answer1 = $_POST['answer1'];
    $answer2 = $_POST['answer2'];

    <a href="javascript:void($zopim.livechat.say('Hello! I want to sell you <?php echo $answer1; ?> for <?php echo $answer2; ?> with radiobutton2!'))"></a>
    
    评论

报告相同问题?

悬赏问题

  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 软件测试决策法疑问求解答
  • ¥15 win11 23H2删除推荐的项目,支持注册表等
  • ¥15 matlab 用yalmip搭建模型,cplex求解,线性化处理的方法
  • ¥15 qt6.6.3 基于百度云的语音识别 不会改
  • ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
  • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行