# Add Freshdesk for Certain Roles or Pages

> If you want to start using Freshdesk to support your clients but don't want to show the help/chat for everyone, here is a way you can do this.

Source: https://tadabase.com/docs/snippets/add-freshdesk-for-certain-roles-or-pages  
Status: Not yet re-checked. Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

![Screenshot for “Add Freshdesk for Certain Roles or Pages”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-10/scaled-1680-/NN22022-10-04-15-15-11.png)

If you want to start using Freshdesk to support your clients but don't want to show the help/chat for everyone, here is a way you can do this.

**Step 1**

**Add the following JavaScript to the Customer Footer Code.**

```
<script>
function initFreshChat() {
    window.fcWidget.init({
        token: "REPLACE_WITH_YOUR_TOKEN",
        host: "https://wchat.freshchat.com"
    });
}
function initialize(i, t) {
    var e;
    i.getElementById(t) ? initFreshChat() : ((e = i.createElement("script")).id = t, e.async = !0, e.src = "https://wchat.freshchat.com/js/widget.js", e.onload = initFreshChat, i.head.appendChild(e))
}
function initiateCall() {
    initialize(document, "freshchat-js-sdk")
}
</script>
```

![Screenshot for “Add Freshdesk for Certain Roles or Pages”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-10/scaled-1680-/image-1664937276936.png)

**Step 2**

**Add the following to the JavaScript section of the Layout or pages you want the widget to appear on.**

```
initiateCall();

window.fcWidget.user.setFirstName("{loggedInUser.Name}");
window.fcWidget.user.setEmail("{loggedInUser.Email}");
```

![Screenshot for “Add Freshdesk for Certain Roles or Pages”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-10/scaled-1680-/image-1664937582012.png)

**Original Community Post:**

[Add helpdesk software for only certain roles or pages - Community Discussions / How Do I - Tadabase Community](https://community.tadabase.io/t/add-helpdesk-software-for-only-certain-roles-or-pages/914/10)
