Top
PeopleSoft Integration
  • 1 minute to read
  • Print
  • Dark
    Light

PeopleSoft Integration

  • Print
  • Dark
    Light

The usual code snippet used for integration may not work in case of Peoplesoft. The code has to be modified as below:

Usual Code

<script language='javascript'>window._wfx_settings={ent_id:"97b6c100-68b6-11e3-9d2e-386077c653fe"};</script>
<script language='javascript' async='true' type='text/javascript' src='//whatfix.com/embed/embed.nocache.js'></script>

TO

New Code

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


Was this article helpful?