Jump to content

Include script


d.bernaert

Recommended Posts

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

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"} );

SupportImg.thumb.png.b95d7eb5bd8b2d4425c0c96a16db4829.png

  • Like 1
Link to comment
Share on other sites

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

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"
  });
});

 

  • Like 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...