Support Article
"Refresh Other Section" action is not working in IE browser
SA-105877
Summary
The 'Refresh Other Section' action in a Modal Submit does not work in the Internet Explorer browser.
Error Messages
Not Applicable
Steps to Reproduce
- In Interaction portal header, configure a button to launch a modal window.
- Configure a 'Refresh Other Section' on the Submit button.
- Pass Customer Service Interaction portal work area section name. If the Submit Workarea section does not refresh, only then is the Submit action triggered.
Root Cause
A third-party product issue.
Internet Explorer handles the Request calls differently. After a request call is sent and if the call is not completed, another request call is not triggered in an Async manner.
A section present in the Interaction portal's workarea harness, from the Interaction portal header, is refreshed, Immediately after submitting a modal action from the portal header, Refresh Other Section is invoked, which the Internet Explorer browser fails to trigger.
Resolution
Perform the following local-change:
- Paste the below script and style in the UserWorkForm.
<style>.interactiondriverrefresh{display:none !important;}</style>
<script>
function triggerRefresh(){
var iframes = Array.prototype.slice.call(document.querySelectorAll("iframe"), 0).forEach(function clickbutton(item,index){
console.log("Refreshing harness of "+ item.id);
var btnwrapper = item.contentDocument.querySelector(".interactiondriverrefresh");
var btn = $(btnwrapper).find("button")[0];
if(btn) { btn.click(); }
btnwrapper= null; btn= null;
});}
</script>
- In the Interaction portal's workarea section, add a button.
- In the Presentation tab's Display read/write class, add the interactiondriverrefresh class.
- In Action tab, configure the Refresh current harness action
- In Modal Submit action, configure a Run Script and pass the function name as triggerRefresh.
Published April 10, 2020 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.