Added clear_form campaign option, Issue #1179

git-svn-id: svn://192.168.202.10@3383 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2021-03-15 21:54:03 +00:00
parent e2c15d8452
commit 1e9f26353b
5 changed files with 48 additions and 13 deletions
@@ -1058,7 +1058,8 @@ transfer_button_launch VARCHAR(12) default 'NONE',
shared_dial_rank TINYINT(3) default '99',
agent_search_method VARCHAR(2) default '',
qc_scorecard_id VARCHAR(20) DEFAULT '',
qc_statuses_id VARCHAR(20) DEFAULT ''
qc_statuses_id VARCHAR(20) DEFAULT '',
clear_form ENUM('DISABLED','ENABLED','ACKNOWLEDGE') default 'ACKNOWLEDGE'
) ENGINE=MyISAM;
CREATE TABLE vicidial_lists (
@@ -4849,4 +4850,4 @@ INSERT INTO vicidial_settings_containers(container_id,container_notes,container_
UPDATE system_settings set vdc_agent_api_active='1';
UPDATE system_settings SET db_schema_version='1621',db_schema_update_date=NOW(),reload_timestamp=NOW();
UPDATE system_settings SET db_schema_version='1622',db_schema_update_date=NOW(),reload_timestamp=NOW();
+4
View File
@@ -1563,3 +1563,7 @@ UPDATE system_settings SET db_schema_version='1620',db_schema_update_date=NOW()
ALTER TABLE system_settings MODIFY enhanced_disconnect_logging ENUM('0','1','2','3','4','5','6') default '0';
UPDATE system_settings SET db_schema_version='1621',db_schema_update_date=NOW() where db_schema_version < 1621;
ALTER TABLE vicidial_campaigns ADD clear_form ENUM('DISABLED','ENABLED','ACKNOWLEDGE') default 'ACKNOWLEDGE';
UPDATE system_settings SET db_schema_version='1622',db_schema_update_date=NOW() where db_schema_version < 1622;
+27 -5
View File
@@ -48,10 +48,11 @@
# 210211-0146 - Added SOURCESELECT field type
# 210304-1612 - Added READONLY submit_button option
# 210310-1115 - Added BUTTON field type with SubmitRefresh function
# 210315-1747 - Added campaign setting for clear_form
#
$version = '2.14-38';
$build = '210310-1115';
$version = '2.14-39';
$build = '210315-1747';
$php_script = 'vdc_form_display.php';
require_once("dbconnect_mysqli.php");
@@ -602,9 +603,30 @@ if ($stage=='SUBMIT')
}
else
{
echo _QXZ("Custom Form Output:")."\n<BR>\n";
echo "$SUBMIT_output";
$clear_form='';
$stmt="SELECT clear_form from vicidial_campaigns where campaign_id='$campaign';";
if ($DB>0) {echo "$stmt";}
$rslt=mysql_to_mysqli($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'06XXX',$user,$server_ip,$session_name,$one_mysql_log);}
$camps_to_print = mysqli_num_rows($rslt);
if ($camps_to_print > 0)
{
$rowx=mysqli_fetch_row($rslt);
$clear_form = $rowx[0];
}
if ($clear_form == 'ACKNOWLEDGE')
{
echo _QXZ("Custom Form Data Submitted")."\n<BR>\n";
}
if ($clear_form == 'ENABLED')
{
echo "\n<BR>\n";
}
if ($clear_form == 'DISABLED')
{
echo _QXZ("Custom Form Output:")."\n<BR>\n";
echo "$SUBMIT_output";
}
}
echo "<form action=./vdc_form_display.php method=POST name=form_custom_fields id=form_custom_fields>\n";
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
# version: 20210315114001
# version: 20210315172801
users-user User ID <QXZ>This field is where you put the users ID number, can be up to 8 digits in length, Must be at least 2 characters in length.</QXZ>
users-pass Password <QXZ>This field is where you put the users password. Must be at least 2 characters in length. A medium strength user password will be at least 10 characters in length, and a strong user password will be at least 20 characters in length and have letters as well as at least one number. It is recommended that you use a longer password if possible, stringing together several unrelated words with no spaces, and a number somewhere in the string. The maximum size of a password is 100 characters.</QXZ>
users-force_change_password Force Change Password <QXZ>If this option is set to Y then the user will be prompted to change their password the next time they log in to the administration webpage or the agent screen. Default is N.</QXZ>
@@ -255,6 +255,7 @@ campaigns-agent_lead_search Agent Lead Search <QXZ>Setting this option to ENABLE
campaigns-agent_lead_search_method Agent Lead Search Method <QXZ>If Agent Lead Search is enabled, this setting defines where the agent will be allowed to search for leads. SYSTEM will search the entire system, CAMPAIGNLISTS will search inside all of the active lists within the campaign, CAMPLISTS_ALL will search inside all of the active and inactive lists within the campaign, LIST will search only within the Manual Dial List ID as defined in the campaign. Default is CAMPLISTS_ALL. One of these options with USER_ in front will only search within leads that have the owner field matching the user ID of the agent, the options with GROUP_ in front will only search within leads that have the owner field matching the user group that the user is a member of, the options with TERRITORY_ in front will only search within leads that have the owner field matching the territories that the agent has selected.</QXZ>
campaigns-campaign_script Campaign Script <QXZ>This menu allows you to choose the script that will appear on the agents screen for this campaign. Select NONE to show no script for this campaign.</QXZ>
campaigns-clear_script Clear Script <QXZ>This option if enabled will clear the agent SCRIPT tab after a call has been dispositioned by the agent. Default is DISABLED.</QXZ>
campaigns-clear_form Clear Form Tab <QXZ>If Custom List Fields is enabled, this option can clear the agent FORM tab after a call has been dispositioned by the agent. The ACKNOWLEDGE option will show a message that the form data has been submitted, but will not show any of the data itself. Default is ACKNOWLEDGE.</QXZ>
campaigns-get_call_launch Get Call Launch <QXZ>This menu allows you to choose whether you want to auto-launch the web-form page in a separate window, auto-switch to the SCRIPT, EMAIL, or CHAT tab ,emails and chats must be allowed to have those options available, or do nothing when a call is sent to the agent for this campaign. If custom list fields are enabled on your system, FORM will open the FORM tab upon connection of a call to an agent. If the PREVIEW option is included, then the launch will happen if a lead is being previewed.</QXZ>
campaigns-browser_alert_sound Agent Browser Call Alert Sound <QXZ>This is the sound that will be played in the web browser that the agent is logged into the agent screen with when a call arrives into the agent session. Default is ---NONE--- for no sound.</QXZ>
campaigns-xferconf_a_dtmf Xfer-Conf DTMF <QXZ>These fields allow for you to have two sets of Transfer Conference and DTMF presets. When the call or campaign is loaded, the agent screen will show two buttons on the transfer-conference frame and auto-populate the number-to-dial and the send-dtmf fields when pressed. If you want to allow Consultative Transfers, a fronter to a closer, have the agent use the CONSULTATIVE checkbox, which does not work for third party non-agent consultative calls. For those just have the agent click the Dial With Customer button. Then the agent can just LEAVE-3WAY-CALL and move on to their next call. If you want to allow Blind transfers of customers to an AGI script for logging or an IVR, then place AXFER in the number-to-dial field. You can also specify a custom extension after the AXFER, for instance if you want to do a call to a special IVR you have set to extension 83900 you would put AXFER83900 in the number-to-dial field.</QXZ>