d.bernaert Posted January 16, 2021 Share Posted January 16, 2021 Hi, I would like to add a help button to the main form of my application that gives access to the knowledge base. This is the script that should be included: <script> window.fwSettings={ 'widget_id':80000001814 }; !function(){if("function"!=typeof window.FreshworksWidget){var n=function(){n.q.push(arguments)};n.q=[],window.FreshworksWidget=n}}() </script> <script type='text/javascript' src='https://euc-widget.freshworks.com/widgets/80000001814.js' async defer></script> I tried adding https://euc-widget.freshworks.com/widgets/80000001814.js to CustomFiles in the servermodule and added window.fwSettings={ 'widget_id':80000001814 }; !function(){if("function"!=typeof window.FreshworksWidget){var n=function(){n.q.push(arguments)};n.q=[],window.FreshworksWidget=n}}() to the script of the mainform but that does not seem to work. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 16, 2021 Share Posted January 16, 2021 Hi, Try to add only this script, for example MainForm -> Script: Ext.onReady(function() { window.fwSettings = { 'widget_id': 80000001814 }; ! function() { if ("function" != typeof window.FreshworksWidget) { var n = function() { n.q.push(arguments) }; n.q = [], window.FreshworksWidget = n } }(); var s = document.createElement("script"); s.type = "text/javascript"; s.src = "https://euc-widget.freshworks.com/widgets/80000001814.js"; $("head").append(s); }); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.