Displaying previous call details in script (Helpful when utilizing task management)

[var_URL] = '/CampaignManagement/CallManager/CallDetails.aspx?num=1&sessionid=' + [var_csMQReference];
 
    1. Apply this code to a calculate field in the task management page of the script that the agent will use to action the call after it has been taken.
    2. Create a hidden field named 'RunOnce'
    3. Add the following code underneath the existing code in the calculate field.
 
        
if([RunOnce]=="")
{
[RunOnce]='CalcFired';
openPageFrameset([var_URL],'script.aspx?step=25881');
}
 
    4. Or if you would like to display information/instructions on on half of the page, and the call details on the other, insert the following code instead. Make note of the section that will fire the instruction to display side by side - 'parent.webFrameSetSideBySide='true';'
 
if([RunOnce]=="")
{
[RunOnce]='CalcFired';
parent.webFrameSetSideBySide='true';
openPageFrameset([var_URL],'script.aspx?step=25881');
}