d.bernaert Posted January 2, 2019 Share Posted January 2, 2019 Hello, I would like to include a script for support. This is the script, how can I integrate this in my application? <script type="text/javascript" src="http://assets.freshdesk.com/widget/freshwidget.js"></script> <script type="text/javascript"> FreshWidget.init("", {"queryString": "&widgetType=popup", "utf8": "✓", "widgetType": "popup", "buttonType": "text", "buttonText": "Support", "buttonColor": "white", "buttonBg": "#006063", "alignment": "1", "offset": "100px", "formHeight": "500px", "url": "https://adm-concept.freshdesk.com"} ); </script> Thx. Dominique Link to comment Share on other sites More sharing options...
Sherzod Posted January 2, 2019 Share Posted January 2, 2019 3 hours ago, d.bernaert said: This is the script, how can I integrate this in my application? Hello, There are many ways to do this. Try this one UniServerModule -> CustomFiles: http://assets.freshdesk.com/widget/freshwidget.js MainForm -> Script: FreshWidget.init("", {"queryString": "&widgetType=popup", "utf8": "✓", "widgetType": "popup", "buttonType": "text", "buttonText": "Support", "buttonColor": "white", "buttonBg": "#006063", "alignment": "1", "offset": "100px", "formHeight": "500px", "url": "https://adm-concept.freshdesk.com"} ); 1 Link to comment Share on other sites More sharing options...
d.bernaert Posted January 2, 2019 Author Share Posted January 2, 2019 Thx Sherzod, got this one working. I have another one for chat. I tried the same, but that does not work. Could you have a look? Head section: <script src="https://wchat.freshchat.com/js/widget.js"></script> Body section: <script> window.fcWidget.init({ token: "e53250f6-030b-49cb-8b99-fb80642172fd", host: "https://wchat.freshchat.com" }); </script> Thx, Dominique Link to comment Share on other sites More sharing options...
Sherzod Posted January 2, 2019 Share Posted January 2, 2019 I got this error: TypeError: s is null widget.js:101:49 Link to comment Share on other sites More sharing options...
d.bernaert Posted January 2, 2019 Author Share Posted January 2, 2019 Strange, here is a screenshot of the settings. I've included this in a regular website without any problems. Dominique Link to comment Share on other sites More sharing options...
Sherzod Posted January 2, 2019 Share Posted January 2, 2019 6 minutes ago, d.bernaert said: I've included this in a regular website without any problems. Try this: MainForm -> Script: Ext.onReady(function() { window.fcWidget.init({ token: "e53250f6-030b-49cb-8b99-fb80642172fd", host: "https://wchat.freshchat.com" }); }); 1 Link to comment Share on other sites More sharing options...
d.bernaert Posted January 2, 2019 Author Share Posted January 2, 2019 Thx! works perfectly. Dominique Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now