PeopleSoft Integration
- 13 Mar 2023
- 1 Minute To Read
- Print
- DarkLight
- PDF
PeopleSoft Integration
- Updated On 13 Mar 2023
- 1 Minute To Read
- Print
- DarkLight
- PDF
Article Summary
Integrating Whatfix with your PeopleSoft account enables you to display Whatfix content on your application.
The usual code snippet used for integration may not work in the case of Peoplesoft. The code has to be modified as following:
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 Modified 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?