---
schema_version: "1"
id: 84c71e8575e230217ea87371a91fff05002fd17a0bee62ed422cfbad02dee263
title: Sample Static Resource Files for Channel Menu
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/embedded_menu_static_examples.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.embedded_menu_static_examples.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 4c0f822092269d74f88a0c5f3c831ee7c79381c04703ac050a4cb255032e0c45
description: Create JavaScript files to upload as static resources and apply them to your Channel Menu website or Experience site. This code sample populates pre-chat settings and adds a company logo.
products:
  - Service Cloud
release: "264"
---
# Sample Static Resource Files for Channel Menu

Create JavaScript files to upload as static resources and apply them to your Channel Menu website or Experience site. This code sample populates pre-chat settings and adds a company logo.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col style="width:100%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=service.embedded_menu_editions.htm&amp;type=5&amp;language=en_US" target="_blank">View supported editions</a>.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d41168e61">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d41168e61 ">To create and edit static resources:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d41168e61 ">Customize Application AND Author Apex</td>

          </tr>
        </tbody>
      </table>

You can use JavaScript static resource files, including strings, arrays, JSON, and JS functions for the Channel Menu. To set up your code file, use this example for reference.

1. Specify `_snapinsSnippetSettingsFile` on the Global window object.
    
    ```
    window._snapinsSnippetSettingsFile = (function() {})();
    ```
2. Store settings on `embedded_svc.menu.snippetSettingsFile` to merge in Channel Menu.
    
    ```
    window._snapinsSnippetSettingsFile = (function() {
        console.log("Code settings file loaded");
    
        // Chat menu-item specific settings
        embedded_svc.menu.snippetSettingsFile = {
            TestChatChannel: {
                settings: {
                    prepopulatedPrechatFields: {"Subject":"Login Issue"},
                    smallCompanyLogoImgURL: "https://yourwebsite.here/company_logo.png"
                }
            }
        };
    })();
    ```

In the sample code, `TestChatChannel` is a placeholder for your unique Channel Menu item name, so make sure to update it.

When your file is complete, return to [Embedded Static Resources](https://help.salesforce.com/articleView?id=embedded_static_resources.htm&language=en_US) for static resource upload instructions.