Skip to content

Use JavaScript to deliver your content

Integrate Whatfix with PeopleSoft using JavaScript

Integrating Whatfix with your PeopleSoft account enables you to display Whatfix content on your application.

Use the following code to integrate Whatfix with PeopleSoft using Javascript:

var head = document.getElementsByTagName('head');
if (!(window.frameElement && window.frameElement.id == "embed")) {
    if (head && head.length != 0) {
        if (window.top == window) {
            var script = document.createElement("script");
            script.setAttribute("type", "text/javascript");
            script.text = "window._wfx_settings={'ignore_extension':'1','ent_id':'97b6c100-68b6-11e3-9d2e-386077c653fe'};";
            head[0].appendChild(script);
        }
 
        var script = document.createElement("script");
        script.setAttribute("src", '//whatfix.com/embed/embed.nocache.js");
        script.setAttribute("type", "text/javascript");
        head[0].appendChild(script);
    }
}