Page 1 of 1

Clear script campaign option

PostPosted: Thu Jan 04, 2018 3:27 am
by dspaan
I don't understand what this option does exactly:

Clear Script -This option if enabled will clear the agent SCRIPT tab after a call has been dispositioned by the agent. Default is DISABLED.

If i set this to enabled and test this on a campaign, after i have dispositioned a call i still get to see this:

Image

I would expect this info not to be displayed after the call is done or do i not understand what this feature does?

I also found this issue: http://www.vicidial.org/VICIDIALmantis/view.php?id=223
But do not know if it's related.


Version: 2.14b0.5
SVN Version: 2837
DB Schema Version: 1521

Re: Clear script campaign option

PostPosted: Thu Jan 04, 2018 8:52 am
by blackbird2306
The option "Clear Script" clears only "SCRIPT" tab after a call has dispositioned by agent. But your screencap shows "FORM" tab, which is not the same!
According to the source code it's "ScriptContents" and not "FormContents":
Code: Select all
if (clear_script == 'ENABLED')
   {document.getElementById("ScriptContents").innerHTML = '';}

If it's important for you that "FORM" tab gets also cleared then try this here. Without guarantee that it works, because I didn't test it myself.
Make changes in vicidial.php about line 13539 (Revision 2887):
Code: Select all
if (clear_script == 'ENABLED')
   {document.getElementById("ScriptContents").innerHTML = '';
    document.getElementById("FormContents").innerHTML = '';}

Re: Clear script campaign option

PostPosted: Fri Jan 05, 2018 2:57 pm
by mflorell
That screenshot shows the FORM tab, not the SCRIPT tab. I have tested this feature and it works just fine.