/** * control.js - representational metaphor * Represents a control in the actual XForm. It only manages and stores data * about its internal structure and properties - the general form structure * is managed by the DOM. */ var multiSelectedControls = {}; var copyPasteCtrlInfo = {}; var extractRecurseData = {}; var controlsWhenSelectTmp = undefined; var userVariables = {}; var accountVariables = {}; var stackPrevious = []; var stackPreviousCount = 0; var controlsTmp = undefined; var stack = []; var stackPage = []; var stackTable = []; var stackCount = 0; var stackPageCount = 0; var stackTableCount = 0; var serviceLevel = {}; var removeCtrlProperyOfCtrlDeleted = function(){ if($('.ctrlUndoDeleteMark.selected').length>0){ $('.propertiesPaneContent ul.propertyList:visible').empty(); var pageId = $('.ctrlUndoDeleteMark.selected').attr('data-page'); if(pageId && pageId != ''){ if(pageId == $('.jumpToHeader .cboJumpTo').val()){ $('.jumpToHeader .cboJumpTo').val(''); } } } } var addCboRepeatableColumnField = function(controls, repeatableId, level, startAdd){ var cboRepeatableColumnFieldControl = $('.repeatableColumnField .cboRepeatableColumnField'); var cboRepeatableColumnFieldVals = []; var i =0; if(level == 0){ if(cboRepeatableColumnFieldControl.length > 1){ _.each(cboRepeatableColumnFieldControl, function(item){ cboRepeatableColumnFieldVals[i] = $(item).val(); i ++; }); }else{ cboRepeatableColumnFieldVals[0] = cboRepeatableColumnFieldControl.val(); } } if(level == 0){ cboRepeatableColumnFieldControl.empty(); cboRepeatableColumnFieldControl.append($('') .attr(CONST_VALUE, control.id) .text(control.name); cboRepeatableColumnFieldControl.append(optionRow); } } } }); if(level == 0){ if(cboRepeatableColumnFieldControl.length > 1){ i = 0; _.each(cboRepeatableColumnFieldControl, function(item){ $(item).val(cboRepeatableColumnFieldVals[i]); i ++; }); }else{ cboRepeatableColumnFieldControl.val(cboRepeatableColumnFieldVals[0]); } } if(skip || start){ return true; }else{ return false; } } var inputSourceStack = []; var inputSourceStackCount = 0; var findInputSourceCtrlToNode = function(controls, selectedCtrlId, inputSource){ var addNode = false; var tmp = []; var i = 0; _.each(controls, function(control) { if(selectedCtrlId == control.id){ addNode = true; } if(addNode){ return false; } if(control.type == CONST_CTRL_TYPE_GROUP){ addNode = findInputSourceCtrlToNode(control.children, selectedCtrlId, inputSource); }else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){ addNode = findInputSourceCtrlToNode(control.children, selectedCtrlId, inputSource); }else if(control.type == CONST_CTRL_TYPE_CTRLPOD){ addNode = findInputSourceCtrlToNode(control.children, selectedCtrlId, inputSource); }else if(control.type == CONST_CTRL_TYPE_CTRLINV){ addNode = findInputSourceCtrlToNode(control.children, selectedCtrlId, inputSource); }else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){ addNode = findInputSourceCtrlToNode(control.children, selectedCtrlId, inputSource); }else if(control.type == CONST_CTRL_TYPE_CTRLGRID){ //addNode = findInputSourceCtrlToNode(control.children, selectedCtrlId, inputSource); _.each(control.children, function(controlGrd) { if(selectedCtrlId == controlGrd.id){ addNode = true; } if(addNode){ return false; } if(!isVersion(VERSION_GMAP_REMOVE_INPUT_SRC)){ if(inputSource == 'Text widget'){ if(controlGrd.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; }else if(controlGrd.type == CONST_CTRL_TYPE_INPUTCALCULATE && controlGrd.kind == 'String'){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; } }else if(inputSource == 'Numeric widget'){ if(controlGrd.type == CONST_CTRL_TYPE_INPUT_NUMERIC){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; }else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'Number'){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(inputSource == 'Lookup widget'){ if(controlGrd.type == CONST_CTRL_TYPE_INPUTLOOKUP || controlGrd.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || controlGrd.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; } }else if(inputSource == 'Location widget'){ if(controlGrd.type == CONST_CTRL_TYPE_INPUTLOCATION){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; } }else if(inputSource == 'Time widget'){ if(controlGrd.type == CONST_CTRL_TYPE_INPUTDATE && controlGrd.kind == CONST_VALUE_TIME){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; } }else if(inputSource == 'DateTime widget'){ if(controlGrd.type == CONST_CTRL_TYPE_INPUTDATE && controlGrd.kind == CONST_VALUE_DATE_SPACE_TIME){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; } }else if(inputSource == 'ChooseOne widget'){ if(controlGrd.type == CONST_CTRL_TYPE_INPUTSELECTONE){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; }else if(controlGrd.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; }else if(controlGrd.type == CONST_CTRL_TYPE_INPUTCALCULATE && controlGrd.kind == 'String'){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; } } }else{ if(inputSource == 'Lat/Lon'){ if(controlGrd.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; }else if(controlGrd.type == CONST_CTRL_TYPE_INPUTCALCULATE && controlGrd.kind == 'String'){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; }else if(controlGrd.type == CONST_CTRL_TYPE_INPUTLOOKUP || controlGrd.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || controlGrd.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; }else if(controlGrd.type == CONST_CTRL_TYPE_INPUTLOCATION){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; } }else if(inputSource == 'Numeric widget'){ if(controlGrd.type == CONST_CTRL_TYPE_INPUT_NUMERIC){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; }else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'Number'){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(inputSource == 'Time widget'){ if(controlGrd.type == CONST_CTRL_TYPE_INPUTDATE && controlGrd.kind == CONST_VALUE_TIME){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; } }else if(inputSource == 'DateTime widget'){ if(controlGrd.type == CONST_CTRL_TYPE_INPUTDATE && controlGrd.kind == CONST_VALUE_DATE_SPACE_TIME){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; } }else if(inputSource == 'ChooseOne widget'){ if(controlGrd.type == CONST_CTRL_TYPE_INPUTSELECTONE){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; } }else if(inputSource == 'Text|ChooseOne widget'){ if(controlGrd.type == CONST_CTRL_TYPE_INPUTSELECTONE){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; }else if(controlGrd.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; }else if(controlGrd.type == CONST_CTRL_TYPE_INPUTCALCULATE && controlGrd.kind == 'String'){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; } }else { //address if(controlGrd.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; }else if(controlGrd.type == CONST_CTRL_TYPE_INPUTCALCULATE && controlGrd.kind == 'String'){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; }else if(controlGrd.type == CONST_CTRL_TYPE_INPUTLOOKUP || controlGrd.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || controlGrd.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; } } } }); }else { if(!isVersion(VERSION_GMAP_REMOVE_INPUT_SRC)){ if(inputSource == 'Text widget'){ if(control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; }else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'String'){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(inputSource == 'Numeric widget'){ if(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; }else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'Number'){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(inputSource == 'Lookup widget'){ if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){ if(!control.isRetrieve){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } } }else if(inputSource == 'Location widget'){ if(control.type == CONST_CTRL_TYPE_INPUTLOCATION){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(inputSource == 'Time widget'){ if(control.type == CONST_CTRL_TYPE_INPUTDATE && control.kind == CONST_VALUE_TIME){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(inputSource == 'DateTime widget'){ if(control.type == CONST_CTRL_TYPE_INPUTDATE && control.kind == CONST_VALUE_DATE_SPACE_TIME){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(inputSource == 'ChooseOne widget'){ if(control.type == CONST_CTRL_TYPE_INPUTSELECTONE){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(inputSource == 'Text|ChooseOne widget'){ if(control.type == CONST_CTRL_TYPE_INPUTSELECTONE){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; }else if(control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; }else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'String'){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } } }else{ if(inputSource == 'Lat/Lon'){ if(control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; }else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'String'){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; }else if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){ if(!control.isRetrieve){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(control.type == CONST_CTRL_TYPE_INPUTLOCATION){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(inputSource == 'Numeric widget'){ if(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; }else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'Number'){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(inputSource == 'Time widget'){ if(control.type == CONST_CTRL_TYPE_INPUTDATE && control.kind == CONST_VALUE_TIME){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(inputSource == 'DateTime widget'){ if(control.type == CONST_CTRL_TYPE_INPUTDATE && control.kind == CONST_VALUE_DATE_SPACE_TIME){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(inputSource == 'ChooseOne widget'){ if(control.type == CONST_CTRL_TYPE_INPUTSELECTONE){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(inputSource == 'Text|ChooseOne widget'){ if(control.type == CONST_CTRL_TYPE_INPUTSELECTONE){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; }else if(control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; }else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'String'){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else{ //address if(control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; }else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'String'){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; }else if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){ if(!control.isRetrieve){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } } } } } }); if(addNode){ for(var j=i; j>0; j--){ inputSourceStack[inputSourceStackCount] = tmp[j-1]; inputSourceStackCount++; } } return addNode; } var conditionStack = []; var conditionStackCount = 0; var findTableFieldForRetrieve = function(controls){ var addNode = false; var tmp = []; var i = 0; var sameLevel = false; _.each(controls, function(controlTmp) { if(controlTmp.type == CONST_CTRL_TYPE_CTRLTABLE || controlTmp.type == CONST_CTRL_TYPE_GROUP){ var prefix = '(Table) '; var addCls = 'table_item'; if(controlTmp.type == CONST_CTRL_TYPE_GROUP){ prefix = '(Repeatable) '; addCls = 'repeatable_item'; } _.each(controlTmp.children, function(control) { if(control.isRetrieve){ return true; } if(control.type == CONST_CTRL_TYPE_CTRLGRID){ _.each(control.children, function(itemControlGrid){ if(itemControlGrid.isRetrieve){ return true; } if(itemControlGrid.type == CONST_CTRL_TYPE_INPUTLOOKUP || itemControlGrid.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || itemControlGrid.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){ if(!itemControlGrid.isRetrieve){ tmp[i] = $('') .attr(CONST_VALUE, itemControlGrid.id) .attr('data', controlTmp.id) .addClass('optionType_string answerQuestionOptions for_retrieve_modify_only ' + addCls) .text(prefix + itemControlGrid.name); i++; } }else if((itemControlGrid.type == 'inputFacingTable' || itemControlGrid.type == CONST_CTRL_TYPE_INPUT_TEXT || itemControlGrid.type == CONST_CTRL_TYPE_INPUT_NUMERIC || itemControlGrid.type == CONST_CTRL_TYPE_INPUTNUMBERING || itemControlGrid.type == CONST_CTRL_TYPE_INPUTTRENDS || itemControlGrid.type == CONST_CTRL_TYPE_INPUTSELECTONE || itemControlGrid.type == CONST_CTRL_TYPE_INPUTCOUNTER || itemControlGrid.type == CONST_CTRL_TYPE_INPUTCALCULATE || itemControlGrid.type == CONST_CTRL_TYPE_INPUTDATE) && isVersion2_12()){ var optionType = 'string'; switch(itemControlGrid.type.toLowerCase()) { case CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase(): case CONST_CTRL_TYPE_INPUTCOUNTER.toLowerCase(): case CONST_CTRL_KIND_INTEGER.toLowerCase(): case CONST_CTRL_KIND_DECIMAL.toLowerCase(): case CONST_CTRL_KIND_PERCENT.toLowerCase(): case CONST_CTRL_TYPE_INPUT_NUMERIC.toLowerCase(): optionType = 'number'; break; default: optionType = 'string'; break; } if(itemControlGrid.type.toLowerCase() == CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase() && itemControlGrid.kind == 'String') { optionType = 'string'; } if(itemControlGrid.type == CONST_CTRL_TYPE_INPUTDATE) { switch(itemControlGrid.kind.toLowerCase()) { case CONST_VALUE_DATE.toLowerCase(): optionType = 'date'; break; case CONST_VALUE_DATE_SPACE_TIME.toLowerCase(): optionType = 'datetime'; break; case CONST_VALUE_TIME.toLowerCase(): optionType = 'time'; break; } } tmp[i] = $('') .attr(CONST_VALUE, itemControlGrid.id) .attr('data', controlTmp.id) .addClass('optionType_' + optionType + ' answerQuestionOptions for_retrieve_modify_only ' + addCls) .text(prefix + itemControlGrid.name); i++; } }) }else if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){ if(!control.isRetrieve){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .attr('data', controlTmp.id) .addClass('optionType_string answerQuestionOptions for_retrieve_modify_only ' + addCls) .text(prefix + control.name); i++; } }else if((control.type == 'inputFacingTable' || control.type == CONST_CTRL_TYPE_INPUT_TEXT || control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTNUMBERING || control.type == CONST_CTRL_TYPE_INPUTTRENDS || control.type == CONST_CTRL_TYPE_INPUTSELECTONE || control.type == CONST_CTRL_TYPE_INPUTCOUNTER || control.type == CONST_CTRL_TYPE_INPUTCALCULATE || control.type == CONST_CTRL_TYPE_INPUTDATE) && isVersion2_12()){ var optionType = 'string'; switch(control.type.toLowerCase()) { case CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase(): case CONST_CTRL_TYPE_INPUTCOUNTER.toLowerCase(): case CONST_CTRL_KIND_INTEGER.toLowerCase(): case CONST_CTRL_KIND_DECIMAL.toLowerCase(): case CONST_CTRL_KIND_PERCENT.toLowerCase(): case CONST_CTRL_TYPE_INPUT_NUMERIC.toLowerCase(): optionType = 'number'; break; default: optionType = 'string'; break; } if(control.type.toLowerCase() == CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase() && control.kind == 'String') { optionType = 'string'; } if(control.type == CONST_CTRL_TYPE_INPUTDATE) { switch(control.kind.toLowerCase()) { case CONST_VALUE_DATE.toLowerCase(): optionType = 'date'; break; case CONST_VALUE_DATE_SPACE_TIME.toLowerCase(): optionType = 'datetime'; break; case CONST_VALUE_TIME.toLowerCase(): optionType = 'time'; break; } } tmp[i] = $('') .attr(CONST_VALUE, control.id) .attr('data', controlTmp.id) .addClass('optionType_' + optionType + ' answerQuestionOptions for_retrieve_modify_only ' + addCls) .text(prefix + control.name); i++; } }); } }); if(i > 0){ for(var j=i; j>0; j--){ conditionStack[conditionStackCount] = tmp[j-1]; conditionStackCount++; } return true; }else{ return false; } } var tableFiedStack = []; var tableFiedStackCount = 0; var findTableFields = function(controls, kind, endId){ var tmp = []; var i = 0; var end = false; _.each(controls, function(controlTmp) { if(end){ return false; } if(controlTmp.id == endId){ end = true; return false; } if(controlTmp.type == CONST_CTRL_TYPE_CTRLTABLE){ _.each(controlTmp.children, function(control) { if(end){ return false; } if(control.id == endId){ end = true; return false; } if((control.type == 'inputFacingTable' || control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUT_TEXT || control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTNUMBERING || control.type == CONST_CTRL_TYPE_INPUTTRENDS || control.type == CONST_CTRL_TYPE_INPUTSELECTONE || control.type == CONST_CTRL_TYPE_INPUTCOUNTER || control.type == CONST_CTRL_TYPE_INPUTCALCULATE || control.type == CONST_CTRL_TYPE_INPUTDATE) && isVersion2_12()){ var optionType = CONST_STRING_LOWERCASE; switch(control.type.toLowerCase()) { case CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase(): case CONST_CTRL_TYPE_INPUTCOUNTER.toLowerCase(): case CONST_CTRL_KIND_INTEGER.toLowerCase(): case CONST_CTRL_KIND_DECIMAL.toLowerCase(): case CONST_CTRL_KIND_PERCENT.toLowerCase(): case CONST_CTRL_TYPE_INPUT_NUMERIC.toLowerCase(): optionType = CONST_NUMBER_LOWERCASE; break; default: optionType = CONST_STRING_LOWERCASE; break; } if(control.type.toLowerCase() == CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase() && control.kind == 'String') { optionType = CONST_STRING_LOWERCASE; } if(control.type == CONST_CTRL_TYPE_INPUTDATE) { switch(control.kind.toLowerCase()) { case CONST_VALUE_DATE.toLowerCase(): optionType = CONST_VALUE_DATE_LOWERCASE; break; case CONST_VALUE_DATE_SPACE_TIME.toLowerCase(): optionType = CONST_VALUE_DATE_TIME_NO_SPACE_LOWERCASE; break; case CONST_VALUE_TIME.toLowerCase(): optionType = CONST_VALUE_TIME_LOWERCASE; break; } } switch(kind){ case CONST_STRING_LOWERCASE: tmp[i] = $('') .attr(CONST_VALUE, control.id) .attr('data', controlTmp.id) .addClass('optionType_' + optionType + ' answerQuestionOptions for_retrieve_modify_only') .text('(Table) ' + control.name); i++; break; case CONST_VALUE_TIME_LOWERCASE: tmp[i] = $('') .attr(CONST_VALUE, control.id) .attr('data', controlTmp.id) .addClass('optionType_' + optionType + ' answerQuestionOptions for_retrieve_modify_only') .text('(Table) ' + control.name); i++; break; case CONST_VALUE_DATE_TIME_NO_SPACE_LOWERCASE: tmp[i] = $('') .attr(CONST_VALUE, control.id) .attr('data', controlTmp.id) .addClass('optionType_' + optionType + ' answerQuestionOptions for_retrieve_modify_only') .text('(Table) ' + control.name); i++; break; case CONST_NUMBER_LOWERCASE: tmp[i] = $('') .attr(CONST_VALUE, control.id) .attr('data', controlTmp.id) .addClass('optionType_' + optionType + ' answerQuestionOptions for_retrieve_modify_only') .text('(Table) ' + control.name); i++; break; default: tmp[i] = $('') .attr(CONST_VALUE, control.id) .attr('data', controlTmp.id) .addClass('optionType_' + optionType + ' answerQuestionOptions for_retrieve_modify_only') .text('(Table) ' + control.name); i++; } } }); } }); if(i > 0){ for(var j=i; j>0; j--){ tableFiedStack[tableFiedStackCount] = tmp[j-1]; tableFiedStackCount++; } return end; }else{ return end; } } var findTableFieldForRetrieveModiFy = function(controls, properties){ var addNode = false; var tmp = []; var i = 0; var actionType = properties.modifyFieldsAction ? properties.modifyFieldsAction.value : ''; _.each(controls, function(controlTmp) { if(controlTmp.type == CONST_CTRL_TYPE_CTRLTABLE || controlTmp.type == CONST_CTRL_TYPE_GROUP){ var prefix = '(Table) '; var addCls = 'table_item'; if(controlTmp.type == CONST_CTRL_TYPE_GROUP){ prefix = '(Repeatable) '; addCls = 'repeatable_item'; } _.each(controlTmp.children, function(control) { if(control.isRetrieve){ return true; } var optionRow = $('') .attr(CONST_VALUE, control.id) //.addClass('for_retrieve_modify_only hide_in_modify ' + addCls) .addClass('for_retrieve_modify_only ' + addCls) .attr('data', controlTmp.id) .text(prefix + control.name); if(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTCOUNTER || control.type == CONST_CTRL_TYPE_INPUTNUMBERING || control.type == CONST_CTRL_TYPE_INPUTCALCULATE) { // Add modifyaction_numeric class for numeric options use for "Add/Subtract" action and hide it optionRow.addClass('modifyaction_numeric').hide(); } else if(control.type == CONST_CTRL_TYPE_INPUTDATE) { // Add modifyaction_date class for datetime options use for "Change Date" action and hide it optionRow.addClass('modifyaction_date').hide(); } else { // Add modifyaction_none class for options and hide it optionRow.addClass('modifyaction_none').hide(); } switch(actionType) { case CONS_RETRIVE_ACTION_ADD_VALUE: case CONS_RETRIVE_ACTION_SUBTRACT_VALUE: case CONS_RETRIVE_ACTION_ADDDAYS_VALUE: case CONS_RETRIVE_ACTION_SUBTRACTDAYS_VALUE: if(optionRow[0].className == 'modifyaction_numeric'){ optionRow.show(); } break; case CONS_RETRIVE_ACTION_CHANGEDATE_VALUE: if(optionRow[0].className == 'modifyaction_date'){ optionRow.show(); } break; default: optionRow.show(); break; } tmp[i] = optionRow; i++; }); } }); if(i > 0){ for(var j=i; j>0; j--){ conditionStack[conditionStackCount] = tmp[j-1]; conditionStackCount++; } return true; }else{ return false; } } var findPreviousItem = function(controls, endId, ctrlType){ var addNode = false; var tmp = []; var i = 0; var addNodeToEndOfGroup = false; var end = false; var typeTmp = ''; var kindTmp = ''; if(ctrlType != undefined){ var pos = ctrlType.indexOf('-'); if(pos>=0){ isCheckCtrlKind = true; typeTmp = ctrlType.substring(0, pos); kindTmp = ctrlType.substring(pos+1); if(typeTmp == CONST_CTRL_TYPE_INPUT_NUMERIC){ ctrlType = typeTmp; isCheckCtrlKind = false; }else if(typeTmp == CONST_CTRL_TYPE_INPUTCALCULATE){ if(kindTmp == CONST_VALUE_DATE){ ctrlType = CONST_CTRL_TYPE_INPUTDATE; }else if(kindTmp == 'String'){ ctrlType = CONST_CTRL_TYPE_INPUT_TEXT; }else{ ctrlType = CONST_CTRL_TYPE_INPUT_NUMERIC; } isCheckCtrlKind = false; }else if(typeTmp == CONST_CTRL_TYPE_INPUTTRENDS){ ctrlType = CONST_CTRL_TYPE_INPUT_NUMERIC; isCheckCtrlKind = false; }else if(typeTmp == CONST_CTRL_TYPE_INPUTBARCODE){ ctrlType = CONST_CTRL_TYPE_INPUT_TEXT; isCheckCtrlKind = false; }else if(typeTmp == CONST_CTRL_TYPE_INPUTSCORESUMMARY){ ctrlType = CONST_CTRL_TYPE_INPUTSCORESUMMARY; isCheckCtrlKind = false; } }else{ typeTmp = ctrlType; switch(typeTmp){ case CONST_CTRL_TYPE_INPUTCALCULATE: if(kindTmp == CONST_VALUE_DATE){ ctrlType = CONST_CTRL_TYPE_INPUTDATE; }else if(kindTmp == 'String'){ ctrlType = CONST_CTRL_TYPE_INPUT_TEXT; }else{ ctrlType = CONST_CTRL_TYPE_INPUT_NUMERIC; } break; case CONST_CTRL_TYPE_INPUTCOUNTER: case CONST_CTRL_TYPE_INPUTTRENDS: ctrlType = CONST_CTRL_TYPE_INPUT_NUMERIC; break; case CONST_CTRL_TYPE_INPUTSCORESUMMARY: ctrlType = CONST_CTRL_TYPE_INPUTSCORESUMMARY; break; default: if(isCtrlTextKind(typeTmp)){ ctrlType = CONST_CTRL_TYPE_INPUT_TEXT; } break; } } } _.each(controls, function(control) { if(end){ return false; } if(endId == control.id){ if(control.parentCtrlType == CONST_CTRL_TYPE_GROUP){ addNodeToEndOfGroup = true; } } if(control.type == CONST_CTRL_TYPE_GROUP && !addNodeToEndOfGroup){ if(findPreviousItem(control.children, endId) == true){ end = true; return true; } }else if(control.type == CONST_CTRL_TYPE_CTRLGRID){ _.each(control.children, function(control1) { if(endId == control1.id){ if(control.parentCtrlType == CONST_CTRL_TYPE_GROUP){ addNodeToEndOfGroup = true; } } if(control1.type == CONST_CTRL_TYPE_GROUP){ }else if(control1.type == CONST_CTRL_TYPE_CTRLTABLE){ }else if(control1.type == CONST_CTRL_TYPE_CTRLSCHEDULE){ }else if(control1.type == CONST_CTRL_TYPE_CTRLPOD){ }else if(control1.type == CONST_CTRL_TYPE_CTRLINV){ }else if(control1.type == CONST_CTRL_TYPE_CTRLSCORETABLE){ }else if(control1.type == CONST_CTRL_TYPE_CTRLGRID){ }else if(control1.type == 'inputPageBreak'){ }else if(control1.type == 'inputLabel' || control1.type == 'inputInstruction' || control1.type == CONST_CTRL_TYPE_INPUTACTION || control1.type == CONST_CTRL_TYPE_INPUTPAYMENT){ }else if(control1.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){ }else if(control1.type == CONST_CTRL_TYPE_INPUTNUMBERING){ }else if(control1.type == CONST_CTRL_TYPE_INPUTNEWPAYMENT){ }else if(control1.type == CONST_CTRL_TYPE_INPUTEMAILREPORT){ }else if(control1.type == CONST_CTRL_TYPE_INPUTFAX){ }else if(control1.type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){ }else if(control1.type == CONST_CTRL_TYPE_INPUTAPPROVAL){ }else if(control1.type == 'inputLookupMulti'){ }else if(control1.type == 'inputSaveAndSend'){ }else{ if(ctrlType != undefined){ if(isCheckCtrlKind){ var cmp = control1.type + '-' + control1.kind; if(ctrlType == cmp){ tmp[i] = $('') .attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control1.id) .text('(' + CONST_PREVIOUS + ') ' + control1.name); i++; }else{ if(typeTmp == CONST_CTRL_TYPE_INPUTDATE){ switch(control1.type){ case CONST_CTRL_TYPE_INPUTCALCULATE: if(control1.kind == CONST_VALUE_DATE){ tmp[i] = $('') .attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control1.id) .text('(' + CONST_PREVIOUS + ') ' + control1.name); i++; } break; } } } }else{ if(ctrlType == control1.type){ tmp[i] = $('') .attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control1.id) .text('(' + CONST_PREVIOUS + ') ' + control1.name); i++; }else{ var isTheSame = false; if(ctrlType == CONST_CTRL_TYPE_INPUT_NUMERIC){ switch(control1.type){ case CONST_CTRL_TYPE_INPUTCALCULATE: if(control1.kind != CONST_VALUE_DATE){ isTheSame = true; } break; case CONST_CTRL_TYPE_INPUTCOUNTER: case CONST_CTRL_TYPE_INPUTTRENDS: isTheSame = true; break; } }else if(ctrlType == CONST_CTRL_TYPE_INPUTDATE){ switch(control1.type){ case CONST_CTRL_TYPE_INPUTCALCULATE: if(control1.kind == CONST_VALUE_DATE){ isTheSame = true; } break; } }else if(ctrlType == CONST_CTRL_TYPE_INPUTSCORESUMMARY){ switch(control1.type){ case CONST_CTRL_TYPE_INPUTCALCULATE: if(control1.kind != CONST_VALUE_DATE && control.kind != 'String'){ isTheSame = true; } break; case CONST_CTRL_TYPE_INPUTCOUNTER: case CONST_CTRL_TYPE_INPUTTRENDS: case CONST_CTRL_TYPE_INPUT_NUMERIC: isTheSame = true; break; } }else if(isCtrlTextKind(ctrlType) && isCtrlTextKind(control1.type, control1)){ isTheSame = true; } if(isTheSame){ tmp[i] = $('') .attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control1.id) .text('(' + CONST_PREVIOUS + ') ' + control1.name); i++; } } } }else{ tmp[i] = $('') .attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control1.id) .text('(' + CONST_PREVIOUS + ') ' + control1.name); i++; } } }); }else if(control.type == 'inputPageBreak'){ }else if(control.type == 'inputLabel' || control.type == 'inputInstruction' || control.type == CONST_CTRL_TYPE_INPUTACTION || control.type == CONST_CTRL_TYPE_INPUTPAYMENT){ }else if(control.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){ }else if(control.type == CONST_CTRL_TYPE_INPUTNUMBERING){ }else if(control.type == CONST_CTRL_TYPE_INPUTNEWPAYMENT){ }else if(control.type == CONST_CTRL_TYPE_INPUTEMAILREPORT){ }else if(control.type == CONST_CTRL_TYPE_INPUTFAX){ }else if(control.type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){ }else if(control.type == CONST_CTRL_TYPE_INPUTAPPROVAL){ }else if(control.type == 'inputLookupMulti'){ }else if(control.type == 'inputSaveAndSend'){ }else{ if(ctrlType != undefined){ if(isCheckCtrlKind){ var cmp = control1.type + '-' + control1.kind; if(ctrlType == cmp){ tmp[i] = $('') .attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control.id) .text('(' + CONST_PREVIOUS + ') ' + control.name); i++; }else{ if(typeTmp == CONST_CTRL_TYPE_INPUTDATE){ switch(control1.type){ case CONST_CTRL_TYPE_INPUTCALCULATE: if(control1.kind == CONST_VALUE_DATE){ tmp[i] = $('') .attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control.id) .text('(' + CONST_PREVIOUS + ') ' + control.name); i++; } break; } } } }else{ if(ctrlType == control1.type){ tmp[i] = $('') .attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control.id) .text('(' + CONST_PREVIOUS + ') ' + control.name); i++; }else{ var isTheSame = false; if(ctrlType == CONST_CTRL_TYPE_INPUT_NUMERIC){ switch(control1.type){ case CONST_CTRL_TYPE_INPUTCALCULATE: if(control1.kind != CONST_VALUE_DATE){ isTheSame = true; } break; case CONST_CTRL_TYPE_INPUTCOUNTER: case CONST_CTRL_TYPE_INPUTTRENDS: isTheSame = true; break; } }else if(ctrlType == CONST_CTRL_TYPE_INPUTDATE){ switch(control1.type){ case CONST_CTRL_TYPE_INPUTCALCULATE: if(control1.kind == CONST_VALUE_DATE){ isTheSame = true; } break; } }else if(ctrlType == CONST_CTRL_TYPE_INPUTSCORESUMMARY){ switch(control1.type){ case CONST_CTRL_TYPE_INPUTCALCULATE: if(control1.kind != CONST_VALUE_DATE && control.kind != 'String'){ isTheSame = true; } break; case CONST_CTRL_TYPE_INPUTCOUNTER: case CONST_CTRL_TYPE_INPUTTRENDS: case CONST_CTRL_TYPE_INPUT_NUMERIC: isTheSame = true; break; } }else if(isCtrlTextKind(ctrlType) && isCtrlTextKind(control1.type, control1)){ isTheSame = true; } if(isTheSame){ tmp[i] = $('') .attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control.id) .text('(' + CONST_PREVIOUS + ') ' + control.name); i++; } } } }else{ tmp[i] = $('') .attr(CONST_VALUE, CONST_PREVIOUS + ' ' + control.id) .text('(' + CONST_PREVIOUS + ') ' + control.name); i++; } } }); if(addNodeToEndOfGroup){ for(var j=i; j>0; j--){ stackPrevious[stackPreviousCount] = tmp[j-1]; stackPreviousCount++; } return true; }else{ if(end){ return true; } return false; } } var addCboSkipAnswer = function(cboSkipControl, controls, level, properties){ var cboSkipAnswerConditionVal = cboSkipControl.val(); if(level == 0){ cboSkipControl.empty(); cboSkipControl.append(''); } var start = false; var skip = false; var endOfForm = true; _.each(controls, function(control) { if(skip){ return false; } if(!start){ if(control.type == CONST_CTRL_TYPE_GROUP || control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE || control.type == CONST_CTRL_TYPE_CTRLPOD || control.type == CONST_CTRL_TYPE_CTRLINV || control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){ if(addCboSkipAnswer(cboSkipControl, control.children, level + 1, properties)){ skip = true; start = true; endOfForm = false; } }else if(control.type == CONST_CTRL_TYPE_CTRLGRID){ if(addCboSkipAnswer(cboSkipControl, control.children, level + 1, properties)){ start = true; } } } if(!skip){ if(start == false && control.id == properties.id.value){ start = true; }else{ if (start){ if(control.type == 'inputPageBreak' || control.type == CONST_CTRL_TYPE_INPUTAPPROVAL){ }else{ var optionRow = $('') .attr(CONST_VALUE, control.id) .text(control.name); cboSkipControl.append(optionRow); if(control.type == CONST_CTRL_TYPE_CTRLGRID){ _.each(control.children, function(control1){ var optionRow = $('') .attr(CONST_VALUE, control1.id) .text(control1.name); cboSkipControl.append(optionRow); }) } } } } } }); if(level == 0){ if(endOfForm){ cboSkipControl.append(''); }else{ cboSkipControl.append(''); } cboSkipControl.val(cboSkipAnswerConditionVal); } return start; }; function updateSelectedControls(){ var selkectedItems = $('.workspace:visible .multi-selected'); var lastSel = undefined; if(multiSelectedControls){ lastSel = multiSelectedControls['__LAST_SEL__']; } multiSelectedControls = {}; multiSelectedControls['__CTRLS__'] = {}; if(lastSel){ multiSelectedControls['__LAST_SEL__'] = lastSel; } if(selkectedItems.length < 2 && selkectedItems.hasClass('selected')){ selkectedItems.removeClass('multi-selected'); return; } for(var i=0; i < selkectedItems.length; i++){ var item = $(selkectedItems[i]); var itemId = item.attr('id'); multiSelectedControls[itemId] = i; multiSelectedControls['__CTRLS__'][itemId] = item; } } function positionCompare(lastSelected, curSelected){ if(!lastSelected || !curSelected){ return 0; } if(lastSelected.offset().top < curSelected.offset().top){ return -1; }else{ return 1; } } function updateReportDataElementColumnNumber(){ var $ctrlBreakPointDataElements = $('.reportBuilder .ctrlBreakPointData .control.ctrlBreakPointDataElement'); for(var i = 0; i < $ctrlBreakPointDataElements.length; i++){ var $ctrlBreakPointDataElement = $($ctrlBreakPointDataElements[i]); $ctrlBreakPointDataElement.find('.reportColumnNumber').empty().append('' + (i + 1)); } } function removeUnsupportProperty(properties, controlType){ // remove justificationAnswer for all control switch(controlType){ case CONST_CTRL_TYPE_INPUTSIGNATURE: case 'inputDraw': case CONST_CTRL_TYPE_INPUTIMAGE: case CONST_CTRL_TYPE_INPUTAUDIO: case CONST_CTRL_TYPE_INPUTVIDEO: case CONST_CTRL_TYPE_INPUTMEDIA: case CONST_CTRL_TYPE_INPUTSKETCH: case CONST_CTRL_TYPE_INPUTLOCATION: case CONST_CTRL_TYPE_INPUTATTACHMENT: try{ delete properties.justificationAnswer; }catch(ex){} break; } } // The config setting about using "Mobile Required", "Dispatch Required" function isUsingDispatchRequiredCustom() { return isVersion(VERSION_ADD_DISPATCH_REQUIRED); } // The config for []Not use lookup in Dispatch tab in Build Forms function isUsingNotUseLKInDispatchCustom() { return isVersion(VERSION_NOT_USE_LK_IN_DISPATCH_TAB); } function removeUnuseVersion(properties) { _.each(properties, function(property, key) { switch(key){ case 'sendReport': property.version = VERSION_SEND_REPORT; break; } if(property.version){ if(!isVersion(property.version)){ delete properties[key]; } } }); } var ctrlDuplicate = false; var replaceNonAlphaNumericChar = function(text, dontTrimLRUnd, notIsXMLTag){ if(text == undefined){ return ''; }else{ var ret = ('' + text).replace(/ /g, '').replace(/[^A-Za-z0-9]+/g,'_'); if(!dontTrimLRUnd){ ret = ret.replace(/^_+/,'').replace(/_+$/,''); } if(isVersion(VERSION_ADD_X_IF_START_DIGIT)){ if(notIsXMLTag){ return ret; } // is is xml tag then add x to the first if ret start with a number or xml if(ret != "" && !isNaN(ret.charAt(0))){ ret = 'x' + ret; }else{ if(ret.toLowerCase().startsWith('xml')){ ret = 'x' + ret } } } return ret; } } var replaceNonAlphaNumericCharForScoreControl = function(text){ if(text == undefined){ return ''; }else{ var ret = ('' + text).replace(/[^A-Za-z0-9. -]+/g,'_'); ret = ret.replace(/^_+/,'').replace(/_+$/,''); return ret; } } var copyProperties = function(properties, newProperties, donotIgnoreIsOldCtrl){ _.each(properties, function(property, key){ if(!donotIgnoreIsOldCtrl && key == 'isOldCtrl'){ return true; } //if( property.toString() === "[object Object]"){ if(jQuery.isPlainObject(property)){ newProperties[key] = jQuery.isArray(property)?[]:{}; if(property.isInsideTheScoreTable && key == 'options'){ copyProperties(property, newProperties[key], true); }else{ copyProperties(property, newProperties[key], donotIgnoreIsOldCtrl); } }else{ //if(property[0] !== undefined && jQuery.isPlainObject(property[0])){ if(jQuery.isArray(property)){ newProperties[key] = []; copyProperties(property, newProperties[key], donotIgnoreIsOldCtrl); }else{ newProperties[key] = property; } } }); } var isHiddenProperty = function(properties, property, key){ if(property.hide_condition_ques && property.hide_condition_ques_val != undefined){ var scqProperty = properties[property.hide_condition_ques]; if(scqProperty){ if(checkValueInObject(scqProperty.value, property.show_condition_ques_val)){ return true; } // continue check show_condition_ques 2 } } if(property.show_condition_ques && property.show_condition_ques_val != undefined){ //show_condition_ques: 'isIgnoreGrid', //show_condition_ques_val: true, var scqProperty = properties[property.show_condition_ques]; if(scqProperty){ if(!checkValueInObject(scqProperty.value, property.show_condition_ques_val)){ return true; } // continue check show_condition_ques 2 } } if(property.show_condition_ques_2 && property.show_condition_ques_2_val != undefined){ //show_condition_ques_2: 'isIgnoreGrid', //show_condition_ques_2_val: true, var scqProperty = properties[property.show_condition_ques_2]; if(scqProperty){ if(!checkValueInObject(scqProperty.value, property.show_condition_ques_2_val)){ return true; } // continue check show_condition_ques 3 } } if(property.show_condition_ques_3 && property.show_condition_ques_3_val != undefined){ //show_condition_ques_3: 'isIgnoreGrid', //show_condition_ques_3_val: true, var scqProperty = properties[property.show_condition_ques_3]; if(scqProperty){ if(!checkValueInObject(scqProperty.value, property.show_condition_ques_3_val)){ return true; } } } if(property.add_class && (property.add_class.indexOf(CONST_CSS_CLASS_HIDE_SESSION)>=0 || property.add_class.indexOf(CONST_CSS_CLASS_HIDE_SESSION_IMP)>=0)){ return true; } return false; } var getControlType = function(control){ if($(control).hasClass(CONST_CTRL_TYPE_INPUT_TEXT)){ return CONST_CTRL_TYPE_INPUT_TEXT; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUT_NUMERIC)){ return CONST_CTRL_TYPE_INPUT_NUMERIC; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTTRENDS)){ return CONST_CTRL_TYPE_INPUTTRENDS; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTDATE)){ return CONST_CTRL_TYPE_INPUTDATE; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTLOCATION)){ return CONST_CTRL_TYPE_INPUTLOCATION; }else if($(control).hasClass(mdi_kind_inputImage)){ return mdi_kind_inputImage; }else if($(control).hasClass(mdi_kind_inputAudio)){ return mdi_kind_inputAudio; }else if($(control).hasClass(mdi_kind_inputVideo)){ return mdi_kind_inputVideo; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTMEDIA)){ return CONST_CTRL_TYPE_INPUTMEDIA; }else if($(control).hasClass(mdi_kind_inputSketch)){ return mdi_kind_inputSketch; }else if($(control).hasClass(mdi_kind_inputSignature)){ return mdi_kind_inputSignature; }else if($(control).hasClass('inputDraw')){ return 'inputDraw'; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTBARCODE)){ return CONST_CTRL_TYPE_INPUTBARCODE; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTNFC)){ return CONST_CTRL_TYPE_INPUTNFC; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTFORWARD)){ return CONST_CTRL_TYPE_INPUTFORWARD; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTSECUREFORWARD)){ return CONST_CTRL_TYPE_INPUTSECUREFORWARD; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTCOUNTER)){ return CONST_CTRL_TYPE_INPUTCOUNTER; /* }else if($(control).hasClass('inputRIF')){ return 'inputRIF';*/ }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTSELECTONE)){ return CONST_CTRL_TYPE_INPUTSELECTONE; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTSCOREONE)){ return CONST_CTRL_TYPE_INPUTSCOREONE; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTSELECTMANY)){ return CONST_CTRL_TYPE_INPUTSELECTMANY; }else if($(control).hasClass(CONST_CTRL_TYPE_GROUP)){ return CONST_CTRL_TYPE_GROUP; }else if($(control).hasClass('inputPageBreak')){ return 'inputPageBreak'; }else if($(control).hasClass('inputLabel')){ return 'inputLabel'; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTSCORESUMMARY)){ return CONST_CTRL_TYPE_INPUTSCORESUMMARY; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTNUMBERING)){ return CONST_CTRL_TYPE_INPUTNUMBERING; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTNEWPAYMENT)){ return CONST_CTRL_TYPE_INPUTNEWPAYMENT; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTNEWPAYMENT)){ return CONST_CTRL_TYPE_INPUTNEWPAYMENT; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTACTION)){ return CONST_CTRL_TYPE_INPUTACTION; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTPAYMENT)){ return CONST_CTRL_TYPE_INPUTPAYMENT; }else if($(control).hasClass('inputInstruction')){ return 'inputInstruction'; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTEMAILREPORT)){ return CONST_CTRL_TYPE_INPUTEMAILREPORT; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTFAX)){ return CONST_CTRL_TYPE_INPUTFAX; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT)){ return CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTAPPROVAL)){ return CONST_CTRL_TYPE_INPUTAPPROVAL; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTCALCULATE)){ return CONST_CTRL_TYPE_INPUTCALCULATE; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP)){ return CONST_CTRL_TYPE_INPUTLOOKUP; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTLFBLUETOOTH)){ return CONST_CTRL_TYPE_INPUTLFBLUETOOTH; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE)){ return CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE; }else if($(control).hasClass('inputSaveAndSend')){ return 'inputSaveAndSend'; }else if($(control).hasClass('inputLookupMulti')){ return 'inputLookupMulti'; }else if($(control).hasClass(CONST_CTRL_TYPE_CTRLTABLE)){ return CONST_CTRL_TYPE_CTRLTABLE; }else if($(control).hasClass(CONST_CTRL_TYPE_CTRLSCHEDULE)){ return CONST_CTRL_TYPE_CTRLSCHEDULE; }else if($(control).hasClass(CONST_CTRL_TYPE_CTRLPOD)){ return CONST_CTRL_TYPE_CTRLPOD; }else if($(control).hasClass(CONST_CTRL_TYPE_CTRLINV)){ return CONST_CTRL_TYPE_CTRLINV; }else if($(control).hasClass(CONST_CTRL_TYPE_CTRLSCORETABLE)){ return CONST_CTRL_TYPE_CTRLSCORETABLE; }else if($(control).hasClass(CONST_CTRL_TYPE_CTRLGRID)){ return CONST_CTRL_TYPE_CTRLGRID; }else if($(control).hasClass('inputFacingTable')){ return 'inputFacingTable'; }else if($(control).hasClass(CONST_CTRL_TYPE_INPUTATTACHMENT)){ return CONST_CTRL_TYPE_INPUTATTACHMENT; }else{ return ''; } }; var loadGroupChildren = function($root, $controlsProperties, isPrepend) { _.each($controlsProperties, function(properties){ /*if(properties.id < 0){ return true; }*/ if(properties.name && properties.name.indexOf('__Status') >= 0){ return true; } if(properties.name && properties.name.indexOf('__AutoID') >= 0){ return true; } var $this = $(this); var newProperties = null; var type = properties.type; if(type != ''){ if ((type == CONST_CTRL_TYPE_GROUP) || (type == CONST_CTRL_TYPE_CTRLTABLE) || (type == CONST_CTRL_TYPE_CTRLSCHEDULE) || (type == CONST_CTRL_TYPE_CTRLPOD) || (type == CONST_CTRL_TYPE_CTRLINV) || (type == CONST_CTRL_TYPE_CTRLSCORETABLE) || (type == CONST_CTRL_TYPE_CTRLGRID) || (type == 'branch') || (type == 'inputPageBreak') || (type == 'inputLabel') || (type == CONST_CTRL_TYPE_INPUTSCORESUMMARY) || (type == CONST_CTRL_TYPE_INPUTNUMBERING) || (type == CONST_CTRL_TYPE_INPUTNEWPAYMENT) || (type == CONST_CTRL_TYPE_INPUTACTION) || (type == CONST_CTRL_TYPE_INPUTPAYMENT) || (type == 'inputInstruction') || //(type == CONST_CTRL_TYPE_INPUTCALCULATE) || (type == CONST_CTRL_TYPE_INPUTLOOKUP) || (type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH) || (type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE) || (type == 'inputFacingTable') || (type == 'inputLookupMulti') || (type == CONST_CTRL_TYPE_INPUTEMAILREPORT) || (type == CONST_CTRL_TYPE_INPUTFAX) || (type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT) || (type == CONST_CTRL_TYPE_INPUTAPPROVAL) || (type == 'inputSaveAndSend') || (type == 'ctrlDataSource') || (type == 'ctrlHeaderGrid') || (type == 'ctrlDataFilter') || (type == 'ctrlReportBreakPoint') || (type == 'ctrlBreakPointData') || (type == 'ctrlBreakPointDataElement') || (type == 'ctrlFooterGrid') || (type == 'ctrlEmailSchedule')){ newProperties = $.extend(true, {}, $.fn.odkControl.controlProperties[type]); }else{ newProperties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[type]); removeUnsupportProperty(newProperties, type); } removeUnuseVersion(newProperties); //copyProperties(properties, newProperties); _.each(newProperties, function(property, key) { //property.value = properties[key]; if(jQuery.isPlainObject(properties[key])){ property.value = jQuery.isArray(properties[key])?[]:{}; copyProperties(properties[key], property.value); }else{ if(jQuery.isArray(properties[key])){ property.value = []; copyProperties(properties[key], property.value); }else{ if((type == CONST_CTRL_TYPE_INPUTEMAILREPORT || type == CONST_CTRL_TYPE_INPUTFAX || type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT) && key == 'defaultValue'){ var value = properties[key]; if(value != undefined){ var contentStartPos = value.indexOf(CONST_DOUBLE_DOLLAR, 0); if(contentStartPos >= 0){ property.value = value.substring(0, contentStartPos); property.mailcontent = value.substring(contentStartPos + 2); }else{ property.value = value; } } if(isVersion(VERSION_EMAIL_REPORT_NEW_DEFAULT)){ property.selectedCtrl = properties[key+'_selectedCtrl']; } }else if(type == 'ctrlEmailSchedule' && key == 'reportEmail'){ var value = properties[key]; if(value != undefined){ var contentStartPos = value.indexOf(CONST_DOUBLE_DOLLAR, 0); if(contentStartPos >= 0){ property.value = value.substring(0, contentStartPos); property.mailcontent = value.substring(contentStartPos + 2); }else{ property.value = value; } } }else{ property.value = properties[key]; } } } if(key == 'name' && property.valueinput != undefined){ var controlid = replaceNonAlphaNumericChar(properties.label.eng, true); if(controlid != property.value){ property.valueinput = property.value; } } }); var idInt = 0; try{ idInt = parseInt(properties['id']); }catch(e){ } var classExt = type; if(properties.parentCtrlType == CONST_CTRL_TYPE_CTRLINV && idInt <= parseInt(INV_ID_COL_ID)){ newProperties.name.valueinput = newProperties.name.value; classExt += ' invSpecialCtrl ' + newProperties.name.value; }else if(properties.parentCtrlType == CONST_CTRL_TYPE_CTRLTABLE && idInt <= parseInt(SCHEDULE_WIDGET_START_TIME_ID)){ newProperties.name.valueinput = newProperties.name.value; classExt += ' scheduleSpecialCtrl ' + newProperties.name.value; }else if(idInt <= parseInt(POD_QTY_COL_ID)){ newProperties.name.valueinput = newProperties.name.value; classExt += ' podSpecialCtrl ' + newProperties.name.value; }else{ if(properties && properties.dontGenId != true){ newProperties.id.value = utils.seq.getUniqueId(); } //newProperties.name.valueinput = ''; //CO-205 Copy Fields Bug - Build Forms if (newProperties.id.ctrlType == 'inputPageBreak'){ newProperties.name.value = 'page_break' + newProperties.id.value; } } var $dupControl = undefined; if(isPrepend){ $dupControl = $('#templates .control') .clone() .addClass(classExt) .addClass('caption-just-paste') // 2548 .odkControl(type, null, newProperties) .prependTo($root); }else{ if($root.parents('.ctrlPOD').length > 0){ if(properties.name && properties.name.indexOf('__Deliver') >= 0){ classExt += ' __Deliver'; $dupControl = $('#templates .control') .clone() .addClass(classExt) .addClass('caption-just-paste') // 2548 .odkControl(type, null, newProperties) .appendTo($root); }else{ var insertBeforeCtrl = $root.find('.control.podSpecialCtrl.__Comment'); if(insertBeforeCtrl.length==0){ insertBeforeCtrl = $root.find('.control.podSpecialCtrl.__Deliver'); } if(properties.name && properties.name.indexOf('__Comment') >= 0){ classExt += ' __Comment'; } var replaceCtrl = undefined; if(properties.replaceCtrlClass){ replaceCtrl = $root.find('.' + properties.replaceCtrlClass); } if(replaceCtrl && replaceCtrl.length > 0){ $dupControl = $('#templates .control') .clone() .addClass(classExt) .addClass('caption-just-paste') // 2548 .odkControl(type, null, newProperties); if(isFirstCtrlInGroup(replaceCtrl)){ $root.find('.' + CONST_CLASS_FIRST_CHILD).removeClass(CONST_CLASS_FIRST_CHILD); $dupControl.addClass(CONST_CLASS_FIRST_CHILD); } if(isLastCtrlInGroup(replaceCtrl)){ $root.find('.' + CONST_CLASS_LAST_CHILD).removeClass(CONST_CLASS_LAST_CHILD); $dupControl.addClass(CONST_CLASS_LAST_CHILD); } replaceCtrl.replaceWith($dupControl); }else if(insertBeforeCtrl.length > 0){ $dupControl = $('#templates .control') .clone() .addClass(classExt) .addClass('caption-just-paste') // 2548 .odkControl(type, null, newProperties) .insertBefore(insertBeforeCtrl); }else{ $dupControl = $('#templates .control') .clone() .addClass(classExt) .addClass('caption-just-paste') // 2548 .odkControl(type, null, newProperties) .appendTo($root); } } }else if($root.parents('.ctrlINV').length > 0){ if(properties.name && properties.name.indexOf('__Image') >= 0){ classExt += ' __Image'; $dupControl = $('#templates .control') .clone() .addClass(classExt) .addClass('caption-just-paste') // 2548 .odkControl(type, null, newProperties) .appendTo($root); }else{ var insertBeforeCtrl = $root.find('.control.podSpecialCtrl.__Comment'); if(insertBeforeCtrl.length==0){ insertBeforeCtrl = $root.find('.control.podSpecialCtrl.__Image'); } if(properties.name && properties.name.indexOf('__Comment') >= 0){ classExt += ' __Comment'; } var replaceCtrl = undefined; if(properties.replaceCtrlClass){ replaceCtrl = $root.find('.' + properties.replaceCtrlClass); } if(replaceCtrl && replaceCtrl.length > 0){ $dupControl = $('#templates .control') .clone() .addClass(classExt) .addClass('caption-just-paste') // 2548 .odkControl(type, null, newProperties); if(isLastCtrlInGroup(replaceCtrl)){ $root.find('.' + CONST_CLASS_LAST_CHILD).removeClass(CONST_CLASS_LAST_CHILD); $dupControl.addClass(CONST_CLASS_LAST_CHILD); } replaceCtrl.replaceWith($dupControl); }else if(insertBeforeCtrl.length > 0){ $dupControl = $('#templates .control') .clone() .addClass(classExt) .addClass('caption-just-paste') // 2548 .odkControl(type, null, newProperties) .insertBefore(insertBeforeCtrl); }else{ $dupControl = $('#templates .control') .clone() .addClass(classExt) .addClass('caption-just-paste') // 2548 .odkControl(type, null, newProperties) .appendTo($root); } } $root.find('.control.second-element').removeClass('second-element'); $($root.find('.control')[1]).addClass('second-element'); }else{ $dupControl = $('#templates .control') .clone() .addClass(classExt) .addClass('caption-just-paste') // 2548 .odkControl(type, null, newProperties) .appendTo($root); } } $dupControl.find('.controlErrorMessage').addClass('ctrlId_' + newProperties.id.value); if (type == CONST_CTRL_TYPE_GROUP){ //var groupProperties = odkmaker.data.getCtrlProperties(properties.id); //loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children, isPrepend); loadGroupChildren($dupControl.find('.workspaceInner'), properties.children, isPrepend); } if (type == CONST_CTRL_TYPE_CTRLTABLE || type == CONST_CTRL_TYPE_CTRLSCHEDULE){ //var groupProperties = odkmaker.data.getCtrlProperties(properties.id); //loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children, isPrepend); loadGroupChildren($dupControl.find('.workspaceInner'), properties.children, isPrepend); } if (type == CONST_CTRL_TYPE_CTRLPOD){ //var groupProperties = odkmaker.data.getCtrlProperties(properties.id); //loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children, isPrepend); loadGroupChildren($dupControl.find('.workspaceInner'), properties.children, isPrepend); } if (type == CONST_CTRL_TYPE_CTRLINV){ //var groupProperties = odkmaker.data.getCtrlProperties(properties.id); //loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children, isPrepend); loadGroupChildren($dupControl.find('.workspaceInner'), properties.children, isPrepend); } if (type == CONST_CTRL_TYPE_CTRLSCORETABLE){ //var groupProperties = odkmaker.data.getCtrlProperties(properties.id); //loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children, isPrepend); loadGroupChildren($dupControl.find('.workspaceInner'), properties.children, isPrepend); } if (type == CONST_CTRL_TYPE_CTRLGRID){ //var groupProperties = odkmaker.data.getCtrlProperties(properties.id); //loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children, isPrepend); loadGroupChildren($dupControl.find('.workspaceInner'), properties.children, isPrepend); } } }); }; // for substitution inside question text var control_init = function($) { // Private methods var refreshFromProperties = function($this, type, config, properties) { var $info = $this.children('.controlInfo'); var $propertyList = $this.children('.propertyList:visible'); /*$('.ctrlDescription .propertiesCtrlName') .empty(); $('.ctrlDescription .propertiesCtrlExplain') .empty();*/ $('.propertiesPane:visible h3') .empty() .append(msg_properties); var idInt = 0; try{ idInt = parseInt(properties.id.value); }catch(e){ } if(type == 'ctrlReportBreakPoint'){ if(properties.name.value == 'Report_break_point'){ if(dataNS.currentDataSourceForm && dataNS.currentDataSourceForm.controls && dataNS.currentDataSourceForm.controls[properties.reportBreakPoint.value]){ var fieldProperty = dataNS.currentDataSourceForm.controls[properties.reportBreakPoint.value]; properties.name.value = fieldProperty.db_name || 'Report_break_point'; properties.name.valueinput = properties.name.value; } } }else if (type == 'ctrlDataFilter'){ try { var fieldId = properties.filterField.value.filterField; if(!fieldId || fieldId == ''){ properties.name.value = 'Data_filter'; properties.name.valueinput = properties.name.value; properties.label.value['eng'] = 'Data filter'; }else if(dataNS.currentDataSourceForm && dataNS.currentDataSourceForm.controls && dataNS.currentDataSourceForm.controls[fieldId]){ var fieldProperty = dataNS.currentDataSourceForm.controls[fieldId]; properties.name.value = fieldProperty.db_name || 'Data_filter'; properties.name.valueinput = properties.name.value; var newLabel = 'Data filter (' + fieldProperty.db_name; switch(properties.filterField.value.filterCondition){ case CONST_VALUE_EQUAL: newLabel += ' = '; break; case CONST_VALUE_NOT_EQUAL: newLabel += ' != '; break; case CONST_VALUE_LESS_THAN: newLabel += ' < '; break; case CONST_VALUE_LESS_THAN_OR_EQUAL: newLabel += ' <= '; break; case CONST_VALUE_GREATER_THAN: newLabel += ' > '; break; case CONST_VALUE_GREATER_THAN_OR_EQUAL: newLabel += ' >= '; break; default : newLabel += ' = '; } if(properties.filterField.value.filterAnswer && properties.filterField.value.filterAnswer != ''){ var cmpFieldProperty = dataNS.currentDataSourceForm.controls[properties.filterField.value.filterAnswer]; newLabel += cmpFieldProperty.db_name + ') ' + properties.filterJoin.value; }else{ newLabel += properties.filterField.value.filterAnswerConstant + ') ' + properties.filterJoin.value; } properties.label.value['eng'] = newLabel; } }catch(e){} } $info.children('.controlName').text(properties.name.value); // show skip, relevance mark if(isVersion1_1()){ if((isVersion(VERSION_NEW_TOOL_LAYOUT) && properties.isShowSkipCondition && !properties.isShowSkipCondition.value) || properties.skipconds == undefined || properties.skipconds.value == undefined || properties.skipconds.value.length == 0){ $info.children('.controlSkipConditions').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .removeAllSkipCondition').addClass(CONST_CSS_CLASS_HIDE_SESSION); }else{ if(isVersion(VERSION_NEW_TOOL_LAYOUT) && $('li.isShowSkipCondition.hideSession').length > 0){ $info.children('.controlSkipConditions').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .removeAllSkipCondition').addClass(CONST_CSS_CLASS_HIDE_SESSION); }else{ $info.children('.controlSkipConditions').removeClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .removeAllSkipCondition').removeClass(CONST_CSS_CLASS_HIDE_SESSION); } } if(isVersion(VERSION_SKIP_IF)){ if(properties.isShowSkipIf && properties.isShowSkipIf.value){ $info.children('.controlSkipIfConditions').removeClass(CONST_CSS_CLASS_HIDE_SESSION); }else{ $info.children('.controlSkipIfConditions').addClass(CONST_CSS_CLASS_HIDE_SESSION); } } if((isVersion(VERSION_NEW_TOOL_LAYOUT) && properties.isShowRelevanceCondition && !properties.isShowRelevanceCondition.value) || properties.relevanceconds == undefined || properties.relevanceconds.value == undefined || properties.relevanceconds.value.length == 0){ $info.children('.controlRelevanceConditions').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .removeAllRelevanceCondition').addClass(CONST_CSS_CLASS_HIDE_SESSION); }else{ if(isVersion(VERSION_NEW_TOOL_LAYOUT) && $('li.isShowRelevanceCondition.hideSession').length > 0){ $info.children('.controlRelevanceConditions').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .removeAllRelevanceCondition').addClass(CONST_CSS_CLASS_HIDE_SESSION); }else{ $info.children('.controlRelevanceConditions').removeClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .removeAllRelevanceCondition').removeClass(CONST_CSS_CLASS_HIDE_SESSION); } } if(isVersion(VERSION_IF_THEN_ELSE)){ if(properties.isShowITE && properties.isShowITE.value){ $info.children('.controlIfThenElse').removeClass(CONST_CSS_CLASS_HIDE_SESSION); }else{ $info.children('.controlIfThenElse').addClass(CONST_CSS_CLASS_HIDE_SESSION); } } if(isVersion(VERSION_READ_ONLY_IF)){ if(properties.isShowReadOnlyIf && properties.isShowReadOnlyIf.value){ $info.children('.controlReadOnlyIf').removeClass(CONST_CSS_CLASS_HIDE_SESSION); }else{ $info.children('.controlReadOnlyIf').addClass(CONST_CSS_CLASS_HIDE_SESSION); } } } if (type == CONST_CTRL_TYPE_GROUP || type == CONST_CTRL_TYPE_CTRLTABLE || type == CONST_CTRL_TYPE_CTRLSCHEDULE || type == CONST_CTRL_TYPE_CTRLPOD || type == CONST_CTRL_TYPE_CTRLINV || type == CONST_CTRL_TYPE_CTRLSCORETABLE || type == CONST_CTRL_TYPE_CTRLGRID || type == CONST_CTRL_TYPE_CTRLINV) { var controlLabel = undefined; if (type == CONST_CTRL_TYPE_GROUP){ controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_rep_label); if(trim(controlLabel) == ''){ controlLabel = lbl_no_rep_label; } }else if(type == CONST_CTRL_TYPE_CTRLTABLE || type == CONST_CTRL_TYPE_CTRLSCHEDULE){ controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_table_label); if(trim(controlLabel) == ''){ controlLabel = lbl_no_table_label; } }else if(type == CONST_CTRL_TYPE_CTRLPOD){ controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_pod_label); if(trim(controlLabel) == ''){ controlLabel = lbl_no_pod_label; } }else if(type == CONST_CTRL_TYPE_CTRLINV){ controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_inv_label); if(trim(controlLabel) == ''){ controlLabel = lbl_no_inv_label; } }else if(type == CONST_CTRL_TYPE_CTRLGRID){ if(properties.isButtonGrid && properties.isButtonGrid.value){ controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_button_grid_label); if(trim(controlLabel) == ''){ controlLabel = lbl_no_button_grid_label; } }else{ controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_grid_label); if(trim(controlLabel) == ''){ controlLabel = lbl_no_grid_label; } } }else{ controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_ques_label); if(trim(controlLabel) == ''){ controlLabel = lbl_no_ques_label; } } $info.children('.controlLabel').text(controlLabel); if(properties.name.valueinput == '') { if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){ if(controlLabel !== lbl_no_rep_label && controlLabel !== lbl_no_table_label && controlLabel !== lbl_no_ques_label && controlLabel !== lbl_no_grid_label && controlLabel !== lbl_no_button_grid_label && controlLabel !== lbl_no_pod_label){ var controlid = replaceNonAlphaNumericChar(controlLabel); if(isKeyWord(controlid.toLowerCase())){ controlid += 'x'; } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; }else{ controlid = 'untitled' + properties.id.value; $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; } if(properties.name.isOldCtrl){ isSpecialDataChanged = true; } } }else{ var controlid; if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){ controlid = properties.name.value; }else{ controlid = replaceNonAlphaNumericChar(properties.name.value, true); } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } var $control = $('.propertyList:visible #property_name'); if($control.length > 0 && $control.val() !== controlid){ var bkSelectionStart = getSelectionStart($control[0]); var orlen = $control.val().length; $control.val(controlid); bkSelectionStart = bkSelectionStart - (orlen - controlid.length); setCaretPos($control[0], bkSelectionStart); } properties.name.value = controlid; } var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty().append('
 
 
'); }else if (type == 'inputPageBreak'){ $info.children('.controlName').text(''); var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_page_name); if(trim(controlLabel) == ''){ controlLabel = lbl_no_page_name; } $info.children('.controlLabel').text(controlLabel); if(properties.name.valueinput == '') { if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){ if(controlLabel !== lbl_no_page_name){ var controlid = replaceNonAlphaNumericChar(controlLabel); if(isKeyWord(controlid.toLowerCase())){ controlid += 'x'; } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; }else{ controlid = 'page_break' + properties.id.value; $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; } if(properties.name.isOldCtrl){ isSpecialDataChanged = true; } } }else{ var controlid; if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){ controlid = properties.name.value; }else{ controlid = replaceNonAlphaNumericChar(properties.name.value, true); } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } var $control = $('.propertyList:visible #property_name'); if($control.length > 0 && $control.val() !== controlid){ var bkSelectionStart = getSelectionStart($control[0]); var orlen = $control.val().length; $control.val(controlid); bkSelectionStart = bkSelectionStart - (orlen - controlid.length); setCaretPos($control[0], bkSelectionStart); } properties.name.value = controlid; } }else if (type == 'inputLabel' || type == CONST_CTRL_TYPE_INPUTSCORESUMMARY || type == CONST_CTRL_TYPE_INPUTACTION || type == CONST_CTRL_TYPE_INPUTPAYMENT || type == 'inputInstruction' || type == 'inputSaveAndSend' ) { // Fix bug 0019792: Wrong text of Action widget var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text); if(trim(controlLabel) == ''){ controlLabel = lbl_no_caption_text; } // // Fix bug 0019792: Wrong text of Action widget // if (type === CONST_CTRL_TYPE_INPUTACTION || type === 'inputSaveAndSend' || type === CONST_CTRL_TYPE_INPUTSCORESUMMARY) { // controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text); // if(trim(controlLabel) == ''){ // controlLabel = lbl_no_caption_text; // } // } $info.children('.controlLabel').text(controlLabel); if(properties.hint != undefined && properties.hint.value != undefined){ $info.children('.controlHint').text(properties.hint.value[odkmaker.i18n.displayLanguage()]); } else { if(properties.hint == undefined){ properties.hint = {}; } if(properties.hint.value == undefined){ properties.hint.value = {}; } } if(properties.name.valueinput == '') { if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){ if(controlLabel !== lbl_no_caption_text){ var controlid = replaceNonAlphaNumericChar(controlLabel); if(isKeyWord(controlid.toLowerCase())){ controlid += 'x'; } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; }else{ controlid = 'untitled' + properties.id.value; $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; } if(properties.name.isOldCtrl){ isSpecialDataChanged = true; } } }else{ var controlid; if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){ controlid = properties.name.value; }else{ controlid = replaceNonAlphaNumericChar(properties.name.value, true); } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } var $control = $('.propertyList:visible #property_name'); if($control.length > 0 && $control.val() !== controlid){ var bkSelectionStart = getSelectionStart($control[0]); var orlen = $control.val().length; $control.val(controlid); bkSelectionStart = bkSelectionStart - (orlen - controlid.length); setCaretPos($control[0], bkSelectionStart); } properties.name.value = controlid; } var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty().append('
 
 
'); }else if (type == CONST_CTRL_TYPE_INPUTNUMBERING) { // Fix bug 0019594: Wrong text of Auto-number widget var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text); if(trim(controlLabel) == ''){ controlLabel = lbl_no_caption_text; } $info.children('.controlLabel').text(controlLabel); if(properties.hint != undefined && properties.hint.value != undefined){ $info.children('.controlHint').text(properties.hint.value[odkmaker.i18n.displayLanguage()]); } else { if(properties.hint == undefined){ properties.hint = {}; } if(properties.hint.value == undefined){ properties.hint.value = {}; } } if(properties.name.valueinput == '') { if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){ if(controlLabel !== lbl_no_caption_text){ var controlid = replaceNonAlphaNumericChar(controlLabel); if(isKeyWord(controlid.toLowerCase())){ controlid += 'x'; } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; }else{ controlid = 'untitled' + properties.id.value; $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; } if(properties.name.isOldCtrl){ isSpecialDataChanged = true; } } }else{ var $control = $('.propertyList:visible #property_name'); var controlid; if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){ controlid = properties.name.value; }else{ controlid = replaceNonAlphaNumericChar(properties.name.value, true); } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } var $control = $('.propertyList:visible #property_name'); if($control.length > 0 && $control.val() !== controlid){ var bkSelectionStart = getSelectionStart($control[0]); var orlen = $control.val().length; $control.val(controlid); bkSelectionStart = bkSelectionStart - (orlen - controlid.length); setCaretPos($control[0], bkSelectionStart); } properties.name.value = controlid; } var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty(); var $viewTextControl = $('#templates .viewTextControl').clone(); var $textCtrl = $viewTextControl.find('.controlText'); $textCtrl.val(properties['defaultValue'].value); $propertyList1.append($viewTextControl); }else if (type == CONST_CTRL_TYPE_INPUTNEWPAYMENT) { var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text); if(trim(controlLabel) == ''){ controlLabel = lbl_no_caption_text; } $info.children('.controlLabel').text(controlLabel); if(properties.hint != undefined && properties.hint.value != undefined){ $info.children('.controlHint').text(properties.hint.value[odkmaker.i18n.displayLanguage()]); } else { if(properties.hint == undefined){ properties.hint = {}; } if(properties.hint.value == undefined){ properties.hint.value = {}; } } if(properties.name.valueinput == '') { if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){ if(controlLabel !== lbl_no_caption_text){ var controlid = replaceNonAlphaNumericChar(controlLabel); if(isKeyWord(controlid.toLowerCase())){ controlid += 'x'; } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; }else{ controlid = 'untitled' + properties.id.value; $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; } if(properties.name.isOldCtrl){ isSpecialDataChanged = true; } } }else{ var $control = $('.propertyList:visible #property_name'); var controlid; if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){ controlid = properties.name.value; }else{ controlid = replaceNonAlphaNumericChar(properties.name.value, true); } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } var $control = $('.propertyList:visible #property_name'); if($control.length > 0 && $control.val() !== controlid){ var bkSelectionStart = getSelectionStart($control[0]); var orlen = $control.val().length; $control.val(controlid); bkSelectionStart = bkSelectionStart - (orlen - controlid.length); setCaretPos($control[0], bkSelectionStart); } properties.name.value = controlid; } var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty(); var $viewTextControl = $('#templates .viewTextControl').clone(); $propertyList1.append($viewTextControl); }else if (type == CONST_CTRL_TYPE_INPUTAPPROVAL) { var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text); if(trim(controlLabel) == ''){ controlLabel = lbl_no_caption_text; } $info.children('.controlLabel').text(controlLabel); if(properties.hint != undefined && properties.hint.value != undefined){ $info.children('.controlHint').text(properties.hint.value[odkmaker.i18n.displayLanguage()]); } else { if(properties.hint == undefined){ properties.hint = {}; } if(properties.hint.value == undefined){ properties.hint.value = {}; } } if(properties.name.valueinput == '') { if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){ if(controlLabel !== lbl_no_caption_text){ var controlid = replaceNonAlphaNumericChar(controlLabel); if(isKeyWord(controlid.toLowerCase())){ controlid += 'x'; } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; }else{ controlid = 'untitled' + properties.id.value; $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; } if(properties.name.isOldCtrl){ isSpecialDataChanged = true; } } }else{ var controlid; if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){ controlid = properties.name.value; }else{ controlid = replaceNonAlphaNumericChar(properties.name.value, true); } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } var $control = $('.propertyList:visible #property_name'); if($control.length > 0 && $control.val() !== controlid){ var bkSelectionStart = getSelectionStart($control[0]); var orlen = $control.val().length; $control.val(controlid); bkSelectionStart = bkSelectionStart - (orlen - controlid.length); setCaretPos($control[0], bkSelectionStart); } properties.name.value = controlid; } var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty().append('
 
 
'); }else if (type == CONST_CTRL_TYPE_INPUTEMAILREPORT || type == CONST_CTRL_TYPE_INPUTFAX || type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT) { var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text); if(trim(controlLabel) == ''){ controlLabel = lbl_no_caption_text; } $info.children('.controlLabel').text(controlLabel); $info.children('.controlHint').text(properties.hint.value[odkmaker.i18n.displayLanguage()]); if(properties.name.valueinput == '') { if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){ if(controlLabel !== lbl_no_caption_text){ var controlid = replaceNonAlphaNumericChar(controlLabel); if(isKeyWord(controlid.toLowerCase())){ controlid += 'x'; } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; }else{ controlid = 'untitled' + properties.id.value; $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; } if(properties.name.isOldCtrl){ isSpecialDataChanged = true; } } }else{ var controlid; if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){ controlid = properties.name.value; }else{ controlid = replaceNonAlphaNumericChar(properties.name.value, true); } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } var $control = $('.propertyList:visible #property_name'); if($control.length > 0 && $control.val() !== controlid){ var bkSelectionStart = getSelectionStart($control[0]); var orlen = $control.val().length; $control.val(controlid); bkSelectionStart = bkSelectionStart - (orlen - controlid.length); setCaretPos($control[0], bkSelectionStart); } properties.name.value = controlid; } var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty().append('
 
 
'); }else if (type == CONST_CTRL_TYPE_INPUTCALCULATE) { var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text); if(trim(controlLabel) == ''){ controlLabel = lbl_no_label; } $info.children('.controlLabel').text(controlLabel); $info.children('.controlHint').text(properties.hint.value[odkmaker.i18n.displayLanguage()]); if(properties.name.valueinput == '') { if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){ if(controlLabel !== lbl_no_caption_text){ var controlid = replaceNonAlphaNumericChar(controlLabel); if(isKeyWord(controlid.toLowerCase())){ controlid += 'x'; } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; }else{ controlid = 'untitled' + properties.id.value; $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; } if(properties.name.isOldCtrl){ isSpecialDataChanged = true; } } }else{ var $control = $('.propertyList:visible #property_name'); var controlid; if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){ controlid = properties.name.value; }else{ controlid = replaceNonAlphaNumericChar(properties.name.value, true); } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } var $control = $('.propertyList:visible #property_name'); if($control.length > 0 && $control.val() !== controlid){ var bkSelectionStart = getSelectionStart($control[0]); var orlen = $control.val().length; $control.val(controlid); bkSelectionStart = bkSelectionStart - (orlen - controlid.length); setCaretPos($control[0], bkSelectionStart); } properties.name.value = controlid; } var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty().append('
 
 
'); }else if (type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || type == 'inputFacingTable' || type == 'inputLookupMulti') { var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text); if(trim(controlLabel) == ''){ controlLabel = lbl_no_label; } $info.children('.controlLabel').text(controlLabel); $info.children('.controlHint').text(properties.hint.value[odkmaker.i18n.displayLanguage()]); if(properties.name.valueinput == '') { if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){ if(controlLabel !== lbl_no_caption_text){ var controlid = replaceNonAlphaNumericChar(controlLabel); if(isKeyWord(controlid.toLowerCase())){ controlid += 'x'; } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; }else{ controlid = 'untitled' + properties.id.value; $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; } if(properties.name.isOldCtrl){ isSpecialDataChanged = true; } } }else{ var controlid; if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){ controlid = properties.name.value; }else{ controlid = replaceNonAlphaNumericChar(properties.name.value, true); } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } var $control = $('.propertyList:visible #property_name'); if($control.length > 0 && $control.val() !== controlid){ var bkSelectionStart = getSelectionStart($control[0]); var orlen = $control.val().length; $control.val(controlid); bkSelectionStart = bkSelectionStart - (orlen - controlid.length); setCaretPos($control[0], bkSelectionStart); } properties.name.value = controlid; } var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty().append('
 
 
'); if(properties.datasource && properties.datasource.value != ''){ try{ var tableName = lookupdatainf.lookupTables[properties.datasource.value]; var lookupTablesHeaders = lookupdatainf.LookupTablesHeaders[properties.datasource.value]; var colName = ''; var lookupfield = ''; if(properties.lookupfield && properties.lookupfield.value != ''){ lookupfield = properties.lookupfield.value; if(lookupTablesHeaders && lookupTablesHeaders[lookupfield] && lookupTablesHeaders[lookupfield] != ''){ colName = '(' + lookupTablesHeaders[lookupfield] + ')'; } } $propertyList1.find('.datasourceSession').empty().append(tableName + colName); }catch(ex){ } } // CO-1739 - Set dispMobile = true for retrieve if(properties.isRetrieve && properties.isRetrieve.value) { properties.dispMobile.value = true; } if(properties.keyboardType && properties.keyboardType.value == 'Text'){ properties.lockNumericKeyboard.value = false; } } else if (type == 'ctrlBreakPointDataElement') { var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text); if(trim(controlLabel) == ''){ controlLabel = lbl_no_caption_text; } $info.children('.controlLabel').text(controlLabel); $info.children('.controlHint').text(properties.hint.value[odkmaker.i18n.displayLanguage()]); } else { var controlLabel = $.emptyString(properties.label.value[odkmaker.i18n.displayLanguage()], lbl_no_caption_text); if(trim(controlLabel) == ''){ controlLabel = lbl_no_caption_text; } $info.children('.controlLabel').text(controlLabel); $info.children('.controlHint').text(properties.hint.value[odkmaker.i18n.displayLanguage()]); if(properties.name.valueinput == '') { if(isSpecialDataChanged || !isFormOpenSpecial || !properties.name.isOldCtrl){ if(controlLabel !== lbl_no_caption_text){ var controlid = replaceNonAlphaNumericChar(controlLabel); if(isKeyWord(controlid.toLowerCase())){ controlid += 'x'; } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; }else{ controlid = 'untitled' + properties.id.value; $info.children('.controlName').text(controlid); $('.propertyList:visible #property_name').val(controlid); properties.name.value = controlid; } if(properties.name.isOldCtrl){ isSpecialDataChanged = true; } } }else{ var $control = $('.propertyList:visible #property_name'); var controlid; if(idInt <= parseInt(POD_QTY_COL_ID) || (properties.isSearchField && properties.isSearchField.value)){ controlid = properties.name.value; }else{ controlid = replaceNonAlphaNumericChar(properties.name.value, true); } if(controlid.length > 30){ controlid = controlid.substring(0, 30); } if($control.length > 0 && $control.val() !== controlid){ var bkSelectionStart = getSelectionStart($control[0]); var orlen = $control.val().length; $control.val(controlid); bkSelectionStart = bkSelectionStart - (orlen - controlid.length); setCaretPos($control[0], bkSelectionStart); } properties.name.value = controlid; } } if($info.children('.controlName').text().length > 80){ $info.children('.controlName').text($info.children('.controlName').text().substring(0, 80) + '...'); }else if(trim($info.children('.controlName').text()).length == 0){ if (type !== 'inputPageBreak'){ $info.children('.controlName').text('[no name]'); }else{ $info.children('.controlName').text(''); } } var $propertyList = $info.children('.controlProperties'); $propertyList.empty(); var ctrlKind = ''; if(type == CONST_CTRL_TYPE_INPUTDATE){ if(properties.kind.value == undefined){ ctrlKind = CONST_VALUE_DATE; }else{ ctrlKind = properties.kind.value; } } var isInPOD = false; if(type != CONST_CTRL_TYPE_CTRLPOD){ if(properties && properties.id && properties.id.isInPOD){ isInPOD = true; properties.id.isInPOD = undefined; }else if($info.parents('.ctrlPOD').length > 0){ isInPOD = true; } } var isInINV = false; if(type != CONST_CTRL_TYPE_CTRLINV){ if(properties && properties.id && properties.id.isInINV){ isInINV = true; properties.id.isInINV = undefined; }else if($info.parents('.ctrlINV').length > 0){ isInINV = true; } } _.each(properties, function(property, key) { if(isInPOD){ return false; } if(isInINV){ return false; } if(property && property.removeSettingTextBF){ return; } if(key == 'defaultImage'){ if((property.value || '') !== ''){ $propertyList.append( $('
  • Image Uploaded
  • ') ); } return; } // START CO-2699 if(property.type != undefined && property.type == 'logoType'){ if(property.value == undefined && property.valueIfUndefined){ property.value = property.valueIfUndefined; } else { var logoTypeVal = 'WEBSITE'; if(property.value == 'TABLET') { logoTypeVal = 'TABLET'; } $('.propertiesPane input.labelLogo[value="' + logoTypeVal + '"]').prop('checked', true); } } // END CO-2699 if(property.hideInControlProperties){ return; } if(property.type == undefined || property.type !== 'bool'){ if(property.value == undefined && property.valueIfUndefined){ property.value = property.valueIfUndefined; } return; } if(key == 'showAsDropdown'){ if($info.parents('.ctrlScoreTable').length > 0){ return; } } switch(key){ case 'isButtonGrid': case 'isSecureEmail': case 'isRetrieve': case 'isSecureForward': case 'readOnlyWebAppGrp': case 'requiredWebAppGrp': case 'hideWebAppGrp': case 'isOpenFileWidget': case 'isAttachFormWidget': return; case 'showPrintCtrlCaptionColon': var actCtrlVal = $('#property_imgAction').val(); if(actCtrlVal && actCtrlVal == CONST_ACTION_ZEBRA_PRINT){ }else{ return; } break; case 'isDeleteWhenVarChange': var actCtrlVal = $('#property_isVariableRepeats').val(); if($('#property_isVariableRepeats')[0] == undefined || $('#property_isVariableRepeats')[0].checked != true){ return; }else{ } break; case 'isShowComma': if(type == CONST_CTRL_TYPE_INPUTCALCULATE && !(properties.kind == undefined || properties.kind.value == undefined || properties.kind.value == 'Number')){ return; } break; } if(property.hideVersion != undefined){ if(isVersion(parseFloat(property.hideVersion))){ if(isVersion(VERSION_READ_ONLY_REQUIRED_HIDE_OPTION)){ //for ios return; } if(key == 'isUseDispOnly' && isVersion(VERSION_RESTRICT_OPTION)){ //for ios }else{ property.value = false; } return; } } var propertyValue = property.value; if(propertyValue == undefined && property.valueIfUndefined){ if(property.valueIfUndefined == 'SystemParam'){ if(property.systemParamIfUndefined){ property.value = authNS.currentUser[property.systemParamIfUndefined]; } }else{ propertyValue = property.valueIfUndefined; property.value = propertyValue; } } if(propertyValue != undefined && property.isNagativeValue){ propertyValue = !property.value; } if ((property.summary === false) || (propertyValue !== true)){ if((type == 'inputLabel' || type == CONST_CTRL_TYPE_INPUTSCORESUMMARY || type == CONST_CTRL_TYPE_INPUTACTION || type == CONST_CTRL_TYPE_INPUTPAYMENT) && propertyValue == undefined){ }else if(type == 'inputLabel' && (key == 'dispReport' || key == 'dispMobile') && propertyValue == false){ }else if(type == CONST_CTRL_TYPE_INPUTSCORESUMMARY && (key == 'dispReport' || key == 'dispMobile') && propertyValue == false){ }else if((type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE) && propertyValue == undefined && (key == 'onClear' || key == 'kbIconPortrait' || key == 'kbIconLanscape' || key == 'openKBPortrait' || key == 'openKBLanscape')){ property.value = true; }else if((type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE) && property.type == 'bool' && propertyValue == undefined){ }else if(type == 'inputFacingTable' && property.type == 'bool' && propertyValue == undefined){ }else if(type == 'inputLookupMulti' && property.type == 'bool' && propertyValue == undefined){ }else if((type == CONST_CTRL_TYPE_CTRLTABLE || type == CONST_CTRL_TYPE_CTRLSCHEDULE) && property.type == 'bool' && propertyValue == undefined){ }else if(type == CONST_CTRL_TYPE_CTRLPOD && property.type == 'bool' && propertyValue == undefined){ }else if(type == CONST_CTRL_TYPE_CTRLINV && property.type == 'bool' && propertyValue == undefined){ }else if(type == 'inputPageBreak' && property.type == 'bool' && propertyValue == undefined){ }else if(type == CONST_CTRL_TYPE_INPUTSELECTONE && key == 'showAsDropdown' && propertyValue == undefined){ }else if((type == CONST_CTRL_TYPE_INPUTEMAILREPORT || type == CONST_CTRL_TYPE_INPUTFAX || type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT) && (key == 'hideInMobile' || key == 'hideInWeb') && propertyValue == undefined){ }else if(key == 'showGPSInfo' && propertyValue == undefined){ }else if(key == 'turnOffEmail' && propertyValue == undefined){ }else if(key == 'disTrendsBtn' && propertyValue == undefined){ /*}else if(key == 'isOneTimeSignatureCapture'){ if(propertyValue == undefined){ property.value = false; }*/ }else{ return; } } if(type == CONST_CTRL_TYPE_INPUTDATE && property.type == 'bool' && ctrlKind == CONST_VALUE_DATE && key == 'militaryTime'){ return; } if(property.version == 'disable'){ return; } if((type == 'inputLabel') || (type == CONST_CTRL_TYPE_INPUTACTION) || (type == CONST_CTRL_TYPE_INPUTPAYMENT) || (type == CONST_CTRL_TYPE_INPUTSCORESUMMARY) ){ if(!isVersion1_3()){ return; } } if(property.ctrlActive){ if(property.ctrlActive.indexOf(type) < 0){ return; } } if(property.version){ if(!isVersion(property.version)){ return; } } if(!isEnableWhenUserProperty(property.enableWhenUserPropertyValue)){ return; } if(property.value == undefined){ switch(key){ case "militaryTime": property.value = true; break; case "autoReturn": property.value = true; break; case "displayPageBreakWA": property.value = true; break; case "autoExpandPageWA": property.value = false; break; case "showAsHM": property.value = false; break; case "jumpOverChkLst": property.value = true; break; case "isShowDuplicateValue": property.value = false; break; case "dispChkLstCol": property.value = true; break; case "dispMobile": if(type == 'inputLabel' || type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){ property.value = true; return; } property.value = true; break; case "dispNFCBtn": property.value = false; return; case "dispKBPortrait": property.value = true; break; case "dispKBLandscape": property.value = true; break; case "isWrapText": property.value = false; return; case "showAsDropdown": property.value = false; return; case "dispReport": if(type == 'inputLabel' || type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){ property.value = true; return; } property.value = true; break; case "isSortLookupList": property.value = true; break; case "equallySpaceColumns": property.value = true; break; case "isAcceptNull": property.value = true; break; case "allowImgSel": property.value = false; return; case "appendComment": property.value = false; return; case "disTrendsBtn": property.value = true; break; case "showGPSInfo": property.value = true; break; case "isAllowEdit": property.value = true; break; case "showDecimalValue": property.value = true; break; default: property.value = false; return; }; } if (type == CONST_CTRL_TYPE_CTRLTABLE || type == CONST_CTRL_TYPE_CTRLSCHEDULE){ if(properties.usechecklist && properties.usechecklist.value !== true){ switch(key){ case "jumpOverChkLst": return; break; case "isShowDuplicateValue": return; break; case "dispChkLstCol": return; break; case "hideRows": return; break; } }else if(!isFormLoadding && properties.usechecklist && properties.usechecklist.value === true && !$this.hasClass(CONST_DUPLICATING)){ if(!$($this.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP) && !$($this.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLFBLUETOOTH) && !$($this.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE)){ properties.usechecklist.value = false; return; } } } if (type == 'inputPageBreak' && properties.displayPageBreakWA !== undefined && properties.displayPageBreakWA.value !== true){ switch(key){ case "autoExpandPageWA": return; break; } } if(key == 'dispChkLstCol'){ // don't show this attr return; } var lookupConditionFields; if(properties.isRetrieve && properties.isRetrieve.value){ lookupConditionFields = properties.lookupConditionFields4R; }else{ lookupConditionFields = properties.lookupConditionFields; } if((key == 'isAcceptNull' || key == 'isEvaluateERT') && (lookupConditionFields == undefined || lookupConditionFields.value == undefined || lookupConditionFields.value[0] == undefined)){ // don't show this attr return; } if(key == 'isShowCmpType' && (lookupConditionFields == undefined || lookupConditionFields.value == undefined || lookupConditionFields.value[0] == undefined)){ // don't show this attr return; } if(key == 'isOneTimeSignatureCapture' && property.value == true){ return; } if((type == 'inputLabel' || type == CONST_CTRL_TYPE_INPUTSCORESUMMARY) && (key == 'dispReport' || key == 'dispMobile') && property.value == true){ return; } if((key == 'isAllRepRequired' || key == 'isRepCountDisplay') && (properties.isVariableRepeats == undefined || !properties.isVariableRepeats.value)){ // don't show this attr return; } if(properties.isVariableNumberRow != undefined && properties.isVariableNumberRow.value){ if(key == 'usechecklist' || key == 'hideRows' || key == 'hideFlag' || key == 'jumpOverChkLst' || key == 'isShowDuplicateValue'){ // don't show this attr return; } }else{ if(key == 'isAllRowRequired' || key == 'isRowCountDisplay'){ // don't show this attr return; } } /* hqkhanh delete 12/02/2015 Auto-Stamp currently has a sub option: Allow edit option. a. Default to always be shown (do not hide this when auto-stamp is checked) b. Default to checked if(isVersion(VERSION_ALLOW_EDIT_OPT)){ if(!properties.autoStamp || !properties.autoStamp.value){ if(key == 'isAllowEdit'){ // don't show this attr return; } } }*/ /*if(isVersion(VERSION_ALLOW_EDIT_OPT) && type == CONST_CTRL_TYPE_INPUTLOCATION){ if(!properties.autoStamp || !properties.autoStamp.value){ if(key == 'isAllowEdit'){ // don't show this attr return; } } }*/ // Special treating with []Equally space columns and []Fit to screen width // based on []Column weight if (key == 'equallySpaceColumns' || key == 'isUtilizingFullScr') { if (properties.isColumnWeightCustom != undefined && properties.isColumnWeightCustom.value == true) { // Don't show []Equally space columns and []Fit to screen width when [x]Column weight return; } } switch(key){ case 'isShowSkipCondition': case 'isShowRelevanceCondition': case 'isShowSkipIf': case 'isShowITE': case 'isShowReadOnlyIf': case 'ofDispatchRequired': return; } // $propertyList.append( // $('
  • ' + property.name + '
  • ') // ); var appendPropertyName = property.name; // PCA-270: Remove the replace space function // // Special treating with replaceSpaceWithHtmlTagNBSP // if (key == 'replaceSpaceWithHtmlTagNBSP') { // appendPropertyName = HtmlEncode4Website(property.name); // } // bool property append here var isHidden = isHiddenProperty(properties, property, key); if(key == 'isCaptionOnTop'){ isHidden = true; } if(!isHidden){ if(property['parent_group'] && properties[property['parent_group']] && properties[property['parent_group']].name){ if(!appendPropertyName.startsWith(properties[property['parent_group']].name)){ appendPropertyName = properties[property['parent_group']].name + ' ' + appendPropertyName; } } $propertyList.append( $('
  • ' + appendPropertyName + '
  • ').addClass("pro_" + key) ); } if((type == CONST_CTRL_TYPE_INPUTEMAILREPORT) || (type == CONST_CTRL_TYPE_INPUTFAX) || (type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT)){ var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty().append('
     
    '); } }); if((type == CONST_CTRL_TYPE_INPUTSELECTONE) || (type == CONST_CTRL_TYPE_INPUTSCOREONE) || (type == CONST_CTRL_TYPE_INPUTSELECTMANY)){ $propertyList.append( $('
  •  
  • ') ); } if ((type == CONST_CTRL_TYPE_INPUTSELECTONE) || (type == CONST_CTRL_TYPE_INPUTSCOREONE) || (type == CONST_CTRL_TYPE_INPUTSELECTMANY)) { var $propertyList1; if($info.parents('.ctrlScoreTable').length > 0){ $propertyList1 = $info.parents('.ctrlScoreTable').find('.workspaceInner .controlProperties1'); }else if($info.parents('.ctrlGrid').length > 0){ //$propertyList1 = $info.parents('.ctrlGrid').find('.workspaceInner .controlProperties1'); $propertyList1 = $info.children('.controlProperties1'); }else{ $propertyList1 = $info.children('.controlProperties1'); } $propertyList1.empty(); _.each(properties, function(property) { if (property.type !== 'optionsEditor' && property.type !== 'optionsEditorScoreOne') return; var $selectionCtrl = $('#templates .viewoptions .selection').clone(); var $translationsList = $selectionCtrl.find('.selection-translations'); var $defaultValueControl = $('.propertiesPane:visible .cboChoiceDefaultFieldValue'); var $iteThenControl = $('.propertiesPane:visible .thenSession .forSelectField'); var $iteElseControl = $('.propertiesPane:visible .elseSession .forSelectField'); var $forSelecteControl = $('.propertiesPane:visible .hideIfCmpVal .forSelectField, .propertiesPane:visible .skipIfConditions .forSelectField'); var i = 0; var defaultValueControlVals = []; if($defaultValueControl.length == 1){ defaultValueControlVals[i] = $defaultValueControl.val(); }else{ _.each($defaultValueControl, function(item) { defaultValueControlVals[i] = $(item).val(); i ++; }); } var iteThenControlVals = $iteThenControl.val(); var iteElseControlVals = $iteElseControl.val(); i = 0; var forSelecteControlVals = []; if($forSelecteControl.length == 1){ forSelecteControlVals[i] = $forSelecteControl.val(); }else{ _.each($forSelecteControl, function(item) { forSelecteControlVals[i] = $(item).val(); i ++; }); } $defaultValueControl.empty(); $defaultValueControl.append('') .attr(CONST_VALUE, valTrue) .text(valTrue); $defaultValueControl.append(item); $iteThenControl.append(item.clone()); $iteElseControl.append(item.clone()); $forSelecteControl.append(item.clone()); item = $('') .attr(CONST_VALUE, valFalse) .text(valFalse); $defaultValueControl.append(item); $iteThenControl.append(item.clone()); $iteElseControl.append(item.clone()); $forSelecteControl.append(item.clone()); }else{ var i=0; _.each(property.value, function(element) { if (element.isShowUnderlying !== undefined){ return true; } var val = element.text; var score = element.score; //_.each(element, function(val, valtype) //{ if(val != undefined){ var $option; if (type == CONST_CTRL_TYPE_INPUTSELECTONE){ $option = $('#templates .viewoptions .chooseonce-translation').clone(); }else if (type == CONST_CTRL_TYPE_INPUTSCOREONE){ $option = $('#templates .viewoptions .choosescoreonce-translation').clone(); }else{ $option = $('#templates .viewoptions .choosemultiple-translation').clone(); } i++; $option.find('.controlOptionBtnText') .addClass('Answer_' + i) .on('option_propertiesUpdated', function(event) { /*var id = $(this).attr('class'); id = id.replace('controlOptionBtnText ', ''); $(this).text( $('#' + id).val() || lbl_undefined); */ $('.workspaceScrollArea:visible .selected .controlOptionBtnScoreText').trigger('option_category_propertiesUpdated'); }); $option.find('.controlOptionBtnScoreText') .addClass('Answer_' + i) .on('option_category_propertiesUpdated', function(event) { /*var id = $(this).attr('class'); id = id.replace('controlOptionBtnScoreText ', ''); $(this).text( ' (' + ($('.ScoreOptionsEditorValueField .' + id).val() || lbl_undefined) + ')');*/ }); /*$option.find('.controlOptionBtnScoreText') .addClass('Answer_' + i) .on('option_propertiesUpdated', function(event) { var id = $(this).attr('class'); id = id.replace('controlOptionBtnScoreText ', ''); $(this).text( ' Score : ' + ($('#Score_' + id).val() || '')); });*/ $option.find('.controlOptionBtn').addClass('id__' + replaceNonAlphaNumericChar(element.val)); _.each(odkmaker.i18n.activeLanguages(), function(language) { var languageKey = language; /*if((element.val == undefined && backValue == '') || backValue == element.val){ $option.find('.controlOptionBtn').prop('checked', CONST_VALUE_TRUE_STR); }*/ $option.find('.controlOptionBtnText').text( val[languageKey] || lbl_undefined); $option.find('.controlOptionBtnScoreText').text(' (' + (element.val || '') + ')'); //$option.find('.controlOptionBtnScoreText').text( ' Score : ' + (score || '')); if(theFirst){ //$translationsList.append('
    '); theFirst = false; } $translationsList.append($option); }); } //}); if(element.val == defaultValueTmp){ defaultValueDeleted = false; }; var item = $('') .attr(CONST_VALUE, element.val || '') .text(element.text['eng'] || lbl_undefined); $defaultValueControl.append(item); $iteThenControl.append(item.clone()); $iteElseControl.append(item.clone()); $forSelecteControl.append(item.clone()); }); } if($defaultValueControl.length == 1){ $defaultValueControl.val(defaultValueControlVals[0]); }else{ i = 0; _.each($defaultValueControl, function(item) { $(item).val(defaultValueControlVals[i]); i ++; }); } $iteThenControl.val(iteThenControlVals); $iteElseControl.val(iteElseControlVals); if($forSelecteControl.length == 1){ $forSelecteControl.val(forSelecteControlVals[0]); }else{ i = 0; _.each($forSelecteControl, function(item) { $(item).val(forSelecteControlVals[i]); i ++; }); } if(defaultValueDeleted){ properties.defaultValue.value = ''; properties.defaultValue.valueinput = ''; } $propertyList1.append($selectionCtrl); }); if($info.parents('.ctrlScoreTable').length > 0){ //set default value var allControls = $info.parents('.ctrlScoreTable').find('.workspaceInner .control'); _.each(allControls, function(controlItem){ var ctrlProperties = $(controlItem).data('odkControl-properties'); if(ctrlProperties.defaultValue.value != ''){ $(controlItem).find('.id__' + replaceNonAlphaNumericChar(ctrlProperties.defaultValue.value)).prop('checked', CONST_VALUE_TRUE_STR); } }); }else{ var ctrlProperties = $this.data('odkControl-properties'); if(ctrlProperties.defaultValue.value != ''){ $info.find('.id__' + replaceNonAlphaNumericChar(ctrlProperties.defaultValue.value)).prop('checked', CONST_VALUE_TRUE_STR); } } } if (type == CONST_CTRL_TYPE_INPUTSCOREONE) { if($info.parents('.ctrlScoreTable').length > 0){ //set default value var allControls = $info.parents('.ctrlScoreTable').find('.workspaceInner .control'); _.each(allControls, function(controlItem){ var ctrlProperties = $(controlItem).data('odkControl-properties'); if(ctrlProperties.scoreCategory.value != ''){ $(controlItem).find('.selection h4').text(ctrlProperties.scoreCategory.value); } }); }else{ var $propertyList1 = $info.children('.controlProperties1'); _.each(properties, function(property) { if (property.type !== 'textAutoComplete') return; var scoreCategory = property.value; $propertyList1.find('.selection h4').text(scoreCategory); }); } } if (type == CONST_CTRL_TYPE_INPUTSCORESUMMARY) { } if ((type == CONST_CTRL_TYPE_INPUT_TEXT) || (type == CONST_CTRL_TYPE_INPUT_NUMERIC) || (type == CONST_CTRL_TYPE_INPUTTRENDS)) { var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty(); var $viewTextControl = $('#templates .viewTextControl').clone(); var $textCtrl = $viewTextControl.find('.controlText'); if(type == CONST_CTRL_TYPE_INPUT_NUMERIC && properties.kind.value == 'Percent'){ var value = toPercent(parseFloat(properties['defaultValue'].value));/*parseFloat(properties['defaultValue'].value) * 100; if(isNaN(value)){ value = ''; }else{ value += '%'; }*/ $textCtrl.val(value); }else{ $textCtrl.val(properties['defaultValue'].value); } $propertyList1.append($viewTextControl); // START CO-2680: Enable/Disable User Custom Format checkbox if(properties.isCustomFormat && !properties.isCustomFormat.value) { $('.propertyList .isShowCustomFormat').addClass(CONST_CSS_CLASS_HIDE_SESSION); } else { $('.propertyList .isShowCustomFormat').removeClass(CONST_CSS_CLASS_HIDE_SESSION); } if(isVersion(VERSION_TEXT_USE_CUSTOM_FORMAT_OPTION_DISABLE)){ $('.propertyList #property_isCustomFormat').prop('disabled', true); $('.propertyList .txtCustomFormatVal .editorTextfield').prop('disabled', true); $('.propertyList #property_isShowCustomFormat').prop('disabled', true); } // END CO-2680: Enable/Disable User Custom Format checkbox } if(type == CONST_CTRL_TYPE_INPUT_NUMERIC){ if(properties.kind.value == 'Integer'){ properties.defaultValue.kind = 'Integer'; properties.range.kind = 'Integer'; properties.skipconds.kind = 'Integer'; }else if(properties.kind.value == 'Decimal'){ properties.defaultValue.kind = 'Decimal'; properties.range.kind = 'Decimal'; properties.skipconds.kind = 'Decimal'; }else if (properties.kind.value == 'Percent'){ properties.defaultValue.kind = 'Percent'; properties.range.kind = 'Percent'; properties.skipconds.kind = 'Percent'; } } if(type == CONST_CTRL_TYPE_INPUTTRENDS){ if(properties.kind.value == 'Integer'){ properties.range.kind = 'Integer'; properties.skipconds.kind = 'Integer'; }else if(properties.kind.value == 'Decimal'){ properties.range.kind = 'Decimal'; properties.skipconds.kind = 'Decimal'; } } if ((type == 'inputSaveAndSend')) { var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty(); var $viewButtonControl = $('#templates .viewButtonControl').clone(); var $buttonCtrl = $viewButtonControl.find('.controlButton'); $buttonCtrl.text(CONST_ACTION_SAVE_AND_SEND); $propertyList1.append($viewButtonControl); } if ((type == CONST_CTRL_TYPE_INPUTLOCATION)) { var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty(); var $viewButtonControl = $('#templates .viewButtonControl').clone(); var $buttonCtrl = $viewButtonControl.find('.controlButton'); $buttonCtrl.text(lbl_capture_location); $propertyList1.append($viewButtonControl); } if ((type == mdi_kind_inputImage)) { var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty(); var $viewButtonControl = $('#templates .viewButtonControl').clone(); var $buttonCtrl = $viewButtonControl.find('.controlButton'); $buttonCtrl.text(lbl_capture_image); $propertyList1.append($viewButtonControl); } if ((type == mdi_kind_inputAudio)) { var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty(); var $viewButtonControl = $('#templates .viewButtonControl').clone(); var $buttonCtrl = $viewButtonControl.find('.controlButton'); $buttonCtrl.text(lbl_capture_audio); $propertyList1.append($viewButtonControl); } if ((type == mdi_kind_inputVideo)) { var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty(); var $viewButtonControl = $('#templates .viewButtonControl').clone(); var $buttonCtrl = $viewButtonControl.find('.controlButton'); $buttonCtrl.text(lbl_capture_video); $propertyList1.append($viewButtonControl); } if ((type == CONST_CTRL_TYPE_INPUTATTACHMENT)) { var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty(); var $viewButtonControl = $('#templates .viewButtonControl').clone(); var $buttonCtrl = $viewButtonControl.find('.controlButton'); $buttonCtrl.text(lbl_select_attachment); $propertyList1.append($viewButtonControl); } if ((type == CONST_CTRL_TYPE_INPUTMEDIA)) { var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty(); var $viewButtonControl = $('#templates .viewButtonControl').clone(); var $buttonCtrl = $viewButtonControl.find('.controlButton'); if(properties.kind.value == mdi_kind_image){ $buttonCtrl.text(lbl_capture_image); }else if(properties.kind.value == mdi_kind_audio){ $buttonCtrl.text(lbl_capture_audio); }else if(properties.kind.value == mdi_kind_video){ $buttonCtrl.text(lbl_capture_video); /*}else if(properties.kind.value == 'Barcode'){ $buttonCtrl.text(lbl_capture_barcode);*/ }else{ $buttonCtrl.text(lbl_capture_media); } $propertyList1.append($viewButtonControl); } if ((type == mdi_kind_inputSketch)) { var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty(); var $viewButtonControl = $('#templates .viewButtonControl').clone(); var $buttonCtrl = $viewButtonControl.find('.controlButton'); $buttonCtrl.text(lbl_draw_sketch); $propertyList1.append($viewButtonControl); } if ((type == mdi_kind_inputSignature)) { var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty(); var $viewButtonControl = $('#templates .viewButtonControl').clone(); var $buttonCtrl = $viewButtonControl.find('.controlButton'); $buttonCtrl.text(lbl_draw_sign); $propertyList1.append($viewButtonControl); } if ((type == 'inputDraw')) { var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty(); var $viewButtonControl = $('#templates .viewButtonControl').clone(); var $buttonCtrl = $viewButtonControl.find('.controlButton'); if(properties.kind.value == mdi_kind_sketch){ $buttonCtrl.text(lbl_draw_sketch); }else if(properties.kind.value == mdi_kind_signature){ $buttonCtrl.text(lbl_draw_sign); }else{ $buttonCtrl.text(lbl_draw); } $propertyList1.append($viewButtonControl); } if ((type == CONST_CTRL_TYPE_INPUTBARCODE)) { var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty(); var $viewButtonControl = $('#templates .viewButtonControl').clone(); var $buttonCtrl = $viewButtonControl.find('.controlButton'); $buttonCtrl.text(lbl_capture_barcode); $propertyList1.append($viewButtonControl); if(properties.kind.value == 'Number'){ properties.defaultValue.kind = 'Number'; properties.length.kind = 'Number'; properties.skipconds.kind = 'Number'; }else{ properties.defaultValue.kind = 'String'; properties.length.kind = 'String'; properties.skipconds.kind = 'String'; } } if ((type == CONST_CTRL_TYPE_INPUTNFC)) { var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty(); var $viewButtonControl = $('#templates .viewButtonControl').clone(); var $buttonCtrl = $viewButtonControl.find('.controlButton'); $buttonCtrl.text(lbl_capture_nfc); $propertyList1.append($viewButtonControl); } if ((type == CONST_CTRL_TYPE_INPUTFORWARD || type == CONST_CTRL_TYPE_INPUTSECUREFORWARD)) { properties.defaultValue.kind = CONST_VALUE_NONE; } if ((type == CONST_CTRL_TYPE_INPUTCOUNTER)) { var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty(); var $viewCounterControl = $('#templates .viewCounterControl').clone(); $propertyList1.append($viewCounterControl); if(properties.counterFormat){ switch(properties.counterFormat.value){ case CONST_TYPE_STARS: var starsCtrl = $propertyList1.find(CONST_CSS_ID_STARSCTRL); if(starsCtrl.hasClass(CONST_CSS_CLASS_HIDE_SESSION_IMP)){ $propertyList1.find(CONST_CSS_CLASS_COUNTERCTRL).addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); starsCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); } break; case CONST_TYPE_SLIDER: var sliderCtrl = $propertyList1.find(CONST_CSS_ID_SLIDERCTRL); if(sliderCtrl.hasClass(CONST_CSS_CLASS_HIDE_SESSION_IMP)){ $propertyList1.find(CONST_CSS_CLASS_COUNTERCTRL).addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); sliderCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); } break; default: var arrowsCtrl = $propertyList1.find(CONST_CSS_ID_COUNTERCTRL); if(arrowsCtrl.hasClass(CONST_CSS_CLASS_HIDE_SESSION_IMP)){ $propertyList1.find(CONST_CSS_CLASS_COUNTERCTRL).addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); arrowsCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); } } } } /* if ((type == 'inputRIF')) { var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty(); var $viewButtonControl = $('#templates .viewButtonControl').clone(); var $buttonCtrl = $viewButtonControl.find('.controlButton'); $buttonCtrl.text('Capture RIF'); $propertyList1.append($viewButtonControl); }*/ if ((type == 'inputPageBreak')){ } if ((type == 'inputLabel') || (type == CONST_CTRL_TYPE_INPUTACTION) || (type == CONST_CTRL_TYPE_INPUTLOCATION) || (type == CONST_CTRL_TYPE_INPUTPAYMENT) || (type == CONST_CTRL_TYPE_INPUTLOOKUP && properties.isRetrieve && properties.isRetrieve.value)) { var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty(); var $viewImageControl = $('#templates .viewImageControl').clone(); var $imageCtrl = $viewImageControl.find('img'); var $btnCtrl = $viewImageControl.find('#divImgBtm_0'); if(type == CONST_CTRL_TYPE_INPUTACTION || (type == CONST_CTRL_TYPE_INPUTLOOKUP && properties.isRetrieve && properties.isRetrieve.value)){ if(isVersion(VERSION_ACTION_TYPE)){ if((properties.kind != undefined && properties.kind.value == 'Image') || (properties.btnKind != undefined && properties.btnKind.value == 'Image')){ $btnCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); $imageCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); }else{ $btnCtrl.find('a').text(properties.actionBtnText.value || lbl_enter_button_text); $imageCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); $btnCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); } }else{ $btnCtrl.find('a').text(properties.actionBtnText.value || lbl_enter_button_text); if($('#property_useImage') !== undefined && $('#property_useImage').length > 0 && $('#property_useImage')[0].checked === false){ $imageCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); $btnCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); }else if(($('#property_useImage') === undefined || $('#property_useImage').length == 0) && (properties.useImage !== undefined && properties.useImage.value == false)){ $imageCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); $btnCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); }else{ $btnCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); $imageCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); } } }else if(type == CONST_CTRL_TYPE_INPUTPAYMENT){ if(isVersion(VERSION_ACTION_TYPE)){ if(properties.kind != undefined && properties.kind.value == 'Image'){ $btnCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); $imageCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); }else{ $btnCtrl.find('a').text(properties.actionBtnText.value || lbl_enter_button_text); $imageCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); $btnCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); } }else{ $btnCtrl.find('a').text(properties.actionBtnText.value || lbl_enter_button_text); if($('#property_useImage') !== undefined && $('#property_useImage').length > 0 && $('#property_useImage')[0].checked === false){ $imageCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); $btnCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); }else if(($('#property_useImage') === undefined || $('#property_useImage').length == 0) && (properties.useImage !== undefined && properties.useImage.value == false)){ $imageCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); $btnCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); }else{ $btnCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); $imageCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); } } }else{ $btnCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); $imageCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP); } if(properties.hintLink.value && properties.hintLink.value.indexOf('/img/filib/')>=0){ $imageCtrl.css('width', '64px'); }else{ $imageCtrl.css('width', CONST_VALUE_INITIAL); } $imageCtrl.attr('src', properties.hintLink.value || '/img/photo/noimages.gif'); var $imageCtrlAlign = $viewImageControl.find('.imgAlignment'); if(type != 'inputLabel') { if(properties.imgJustify.value == 'Left'){ if(!$imageCtrlAlign.hasClass('imgAlignLeft')){ $imageCtrlAlign.removeClass('imgAlignRight'); $imageCtrlAlign.addClass('imgAlignLeft'); } }else if(properties.imgJustify.value == 'Right'){ if(!$imageCtrlAlign.hasClass('imgAlignRight')){ $imageCtrlAlign.removeClass('imgAlignLeft'); $imageCtrlAlign.addClass('imgAlignRight'); } }else { $imageCtrlAlign.removeClass('imgAlignLeft'); $imageCtrlAlign.removeClass('imgAlignRight'); } } // START CO-2725 if(type == 'inputLabel' && properties.justificationImage) { var $imageCtrlAlignImg = $viewImageControl.find('.imgAlignment'); if(properties.justificationImage.value == '0'){ if(!$imageCtrlAlignImg.hasClass('imgAlignLeft')){ $imageCtrlAlignImg.removeClass('imgAlignRight'); $imageCtrlAlignImg.addClass('imgAlignLeft'); } }else if(properties.justificationImage.value == '2'){ if(!$imageCtrlAlignImg.hasClass('imgAlignRight')){ $imageCtrlAlignImg.removeClass('imgAlignLeft'); $imageCtrlAlignImg.addClass('imgAlignRight'); } }else { $imageCtrlAlignImg.removeClass('imgAlignLeft'); $imageCtrlAlignImg.removeClass('imgAlignRight'); } } // END CO-2725 $propertyList1.attr('style', ''); $propertyList1.append($viewImageControl); } if ((type == CONST_CTRL_TYPE_INPUTNUMBERING)) { } if ((type == CONST_CTRL_TYPE_INPUTNEWPAYMENT)) { } if ((type == 'inputInstruction')) { } if ((type == 'inputSaveAndSend')) { } if ((type == CONST_CTRL_TYPE_INPUTEMAILREPORT) || (type == CONST_CTRL_TYPE_INPUTFAX) || (type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT)) { } if ((type == CONST_CTRL_TYPE_INPUTAPPROVAL)) { } if ((type == CONST_CTRL_TYPE_INPUTCALCULATE)) { } if ((type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE)) { if(properties.kind.value == 'Number'){ properties.defaultValue.kind = 'Number'; properties.skipconds.kind = 'Number'; }else { properties.defaultValue.kind = 'String'; properties.skipconds.kind = 'String'; } } if ((type == 'inputFacingTable')) { } if ((type == 'inputLookupMulti')) { } if ((type == CONST_CTRL_TYPE_INPUTDATE)) { var $propertyList1 = $info.children('.controlProperties1'); $propertyList1.empty(); var $viewDateControl = $('#templates .viewDateControl').clone(); if(properties.kind.value == CONST_VALUE_DATE){ properties.defaultValue.kind = CONST_VALUE_DATE_LOWERCASE; properties.range.kind = CONST_VALUE_DATE_LOWERCASE; properties.skipconds.kind = CONST_VALUE_DATE_LOWERCASE; $viewDateControl.find('.datetimecontrol_date').attr('class', 'datetimecontrol_date'); }else if(properties.kind.value == CONST_VALUE_TIME){ properties.defaultValue.kind = CONST_VALUE_TIME_LOWERCASE; properties.range.kind = CONST_VALUE_TIME_LOWERCASE; properties.skipconds.kind = CONST_VALUE_TIME_LOWERCASE; $viewDateControl.find('.datetimecontrol_date').attr('class', 'datetimecontrol_time'); }else if(properties.kind.value == CONST_VALUE_DATE_SPACE_TIME){ properties.defaultValue.kind = 'dateTime'; properties.range.kind = 'dateTime'; properties.skipconds.kind = 'dateTime'; $viewDateControl.find('.datetimecontrol_date').attr('class', 'datetimecontrol_datetime'); }else{ properties.defaultValue.kind = CONST_VALUE_DATE_LOWERCASE; properties.range.kind = CONST_VALUE_DATE_LOWERCASE; properties.skipconds.kind = CONST_VALUE_DATE_LOWERCASE; $viewDateControl.find('.datetimecontrol_date').attr('class', 'datetimecontrol_date'); } var $dayCtrl = $viewDateControl.find('.day'); var $monthCtrl = $viewDateControl.find('.month'); var $yearCtrl = $viewDateControl.find('.year'); var $hourCtrl = $viewDateControl.find('.hour'); var $minuteCtrl = $viewDateControl.find('.minute'); var $secondCtrl = $viewDateControl.find('.second'); var $ampmCtrl = $viewDateControl.find('.ampm'); var defaultDate; if (properties['defaultValue'] == null || properties['defaultValue'].value == ''){ if(properties['defaultValue_tmp'] == null){ properties['defaultValue_tmp'] = {type: 'hidden', value:''}; } if(properties['defaultValue_tmp'].value == null || properties['defaultValue_tmp'].value == ''){ properties['defaultValue_tmp'].value = (new Date()).toString(); } defaultDate = new Date(properties['defaultValue_tmp'].value); }else{ if(properties.kind.value == CONST_VALUE_TIME){ if(properties['defaultValue'].value.indexOf('/')>=0){ defaultDate = new Date(properties['defaultValue'].value); }else{ defaultDate = new Date('01/01/2011 ' + properties['defaultValue'].value); } }else{ defaultDate = new Date(properties['defaultValue'].value); } if(isNaN(defaultDate) || defaultDate == 'Invalid Date'){ defaultDate = new Date(); } } var month_name=new Array(12); month_name[0]=lbl_date_jan; month_name[1]=lbl_date_feb; month_name[2]=lbl_date_mar; month_name[3]=lbl_date_apr; month_name[4]=lbl_date_may; month_name[5]=lbl_date_jun; month_name[6]=lbl_date_jul; month_name[7]=lbl_date_aug; month_name[8]=lbl_date_sep; month_name[9]=lbl_date_oct; month_name[10]=lbl_date_nov; month_name[11]=lbl_date_dec; $dayCtrl.val(makeTwoDigitText(defaultDate.getDate())); $monthCtrl.val(month_name[defaultDate.getMonth()]); $yearCtrl.val(defaultDate.getFullYear()); $minuteCtrl.val(makeTwoDigitText(defaultDate.getMinutes())); $secondCtrl.val(makeTwoDigitText(defaultDate.getSeconds())); if(defaultDate.getHours() > 11){ $ampmCtrl.val('PM'); $hourCtrl.val(makeTwoDigitText(defaultDate.getHours() - 12)); }else{ $ampmCtrl.val('AM'); $hourCtrl.val(makeTwoDigitText(defaultDate.getHours())); } $propertyList1.append($viewDateControl); } if(type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){ var ctrlTables = $('.control.ctrlTable'); if(!isFormLoadding && ctrlTables.length>0 && !ctrlTables.hasClass(CONST_DUPLICATING)){ for(var i = 0; i < ctrlTables.length; i++){ var ctrlTable = $(ctrlTables[i]); if(!$(ctrlTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP) && !$(ctrlTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLFBLUETOOTH) && !$(ctrlTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE)){ var parentProperties = ctrlTable.data('odkControl-properties'); if(parentProperties.usechecklist && parentProperties.usechecklist.value === true){ parentProperties.usechecklist.value = false; ctrlTable.find('.controlProperties li.pro_usechecklist, .controlProperties li.pro_isShowDuplicateValue, .controlProperties li.pro_jumpOverChkLst').remove(); } } } }else{ ctrlTables = $('.control.ctrlSchedule'); if(!isFormLoadding && ctrlTables.length>0 && !ctrlTables.hasClass(CONST_DUPLICATING)){ for(var i = 0; i < ctrlTables.length; i++){ var ctrlTable = $(ctrlTables[i]); if(!$(ctrlTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP) && !$(ctrlTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLFBLUETOOTH) && !$(ctrlTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE)){ var parentProperties = ctrlTable.data('odkControl-properties'); if(parentProperties.usechecklist && parentProperties.usechecklist.value === true){ parentProperties.usechecklist.value = false; ctrlTable.find('.controlProperties li.pro_usechecklist, .controlProperties li.pro_isShowDuplicateValue, .controlProperties li.pro_jumpOverChkLst').remove(); } } } } } }else{ var parentTable = $this.parents('.control.ctrlTable'); if(!isFormLoadding && parentTable.length>0 && !parentTable.hasClass(CONST_DUPLICATING)){ if(!$(parentTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP) && !$(parentTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLFBLUETOOTH) && !$(parentTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE)){ var parentProperties = parentTable.data('odkControl-properties'); if(parentProperties.usechecklist && parentProperties.usechecklist.value === true){ parentProperties.usechecklist.value = false; parentTable.find('.controlProperties li.pro_usechecklist, .controlProperties li.pro_isShowDuplicateValue, .controlProperties li.pro_jumpOverChkLst').remove(); } } }else{ parentTable = $this.parents('.control.ctrlSchedule'); if(!isFormLoadding && parentTable.length>0 && !parentTable.hasClass(CONST_DUPLICATING)){ if(!$(parentTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP) && !$(parentTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLFBLUETOOTH) && !$(parentTable.find('.workspaceInnerWrapper .workspaceInner div.control')[0]).hasClass(CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE)){ var parentProperties = parentTable.data('odkControl-properties'); if(parentProperties.usechecklist && parentProperties.usechecklist.value === true){ parentProperties.usechecklist.value = false; parentTable.find('.controlProperties li.pro_usechecklist, .controlProperties li.pro_isShowDuplicateValue, .controlProperties li.pro_jumpOverChkLst').remove(); } } } } } }; var refreshFromViewProperties = function($this, type, config, properties) { }; var optionControlName = { text: function(property, $propertyList) { }, uiText: function(property, $propertyList) { }, optionsEditorValueField: function(property, $propertyList) { }, bool:function(property, $propertyList) { }, numericRange: function(property, $propertyList) { }, 'enumeration': function(property, $propertyList) { }, dateRange: function(property, $propertyList) { }, optionsEditor: function(property, $propertyList) { var $selectionCtrl = $('#templates .viewoptions .selection').clone(); var $translationsList = $selectionCtrl.find('.selection-translations'); var $defaultValueControl = $('.propertiesPane:visible .cboChoiceDefaultFieldValue'); var backValue = $defaultValueControl.val(); $defaultValueControl.empty(); $defaultValueControl.append('') .attr(CONST_VALUE, element.val || '') .text(element.text['eng'] || lbl_undefined); $defaultValueControl.append(item); }); }, optionsEditorScoreOne: function(property, $propertyList) { var $selectionCtrl = $('#templates .viewoptions .selection').clone(); var $translationsList = $selectionCtrl.find('.selection-translations'); var $defaultValueControl = $('.propertiesPane:visible .cboChoiceDefaultFieldValue'); var backValue = $defaultValueControl.val(); $defaultValueControl.empty(); $defaultValueControl.append('') .attr(CONST_VALUE, element.val || '') .text(element.text['eng'] || lbl_undefined); $defaultValueControl.append(item); }); }, skipConditionsEditor: function(property, $propertyList) { }, reportFilterConditionsEditor: function(property, $propertyList) { }, relevanceConditionsEditor: function(property, $propertyList) { }, checklistConditionsEditor: function(property, $propertyList) { }, loopEditor: function(property, $propertyList) { }, lookupFillEditor: function(property, $propertyList) { }, parsingInfoEditor: function(property, $propertyList) { } }; // gets just the pure data for any one control var getDataRepresentation = function($control) { var data = {}; _.each($control.data('odkControl-properties'), function(property, name) { data[name] = property.value; }); data.type = $control.data('odkControl-type'); if(isVersion(VERSION_NEW_TOOL_LAYOUT)){ if(data){ if(data.isShowRelevanceCondition == false){ data.relevanceconds = []; } if(data.isShowSkipCondition == false){ data.skipconds = []; } } } if(isVersion(VERSION_DISPLAY_TYPE_FUNCTION) && data.displayType == CONST_DROPDOWN){ data.showAsDropdown = true; } return data; }; var appendAllExternalForPOD = function(children, data){ /*if(data.stopType == 'multi'){ // Qty column var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]); properties.id.value = POD_QTY_COL_ID + data.id; properties.name.value = 'S' + data.id + '__Qty'; var $ctrl = $('
    ').data('odkControl-properties', properties); var dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD; dataTmp.label.eng = 'Qty'; if(data.stopType == 'multi'){ dataTmp.hideInMobile = false; dataTmp.hideInWeb = false; dataTmp.hideInPDF = false; dataTmp.hidePdfWeb = false; }else{ dataTmp.hideInMobile = true; dataTmp.hideInWeb = true; dataTmp.hideInPDF = true; dataTmp.hidePdfWeb = true; } dataTmp.readOnly = true; dataTmp.readOnlyDsp = true; children.push(dataTmp); }*/ if(data.showActual){ // Actual column var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]); properties.id.value = POD_ACTUAL_COL_ID + data.id; properties.name.value = 'S' + data.id + '__Actual'; var $ctrl = $('
    ').data('odkControl-properties', properties); var dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD; dataTmp.label.eng = 'Actual'; if(data.showActual){ dataTmp.hideInMobile = false; dataTmp.hideInWeb = false; dataTmp.hideInPDF = false; dataTmp.hidePdfWeb = false; }else{ dataTmp.hideInMobile = true; dataTmp.hideInWeb = true; dataTmp.hideInPDF = true; dataTmp.hidePdfWeb = true; } dataTmp.readOnly = false; dataTmp.readOnlyDsp = true; children.push(dataTmp); } var showCommentIfCheck = false; if(data.showDamaged){ showCommentIfCheck = true; var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]); properties.id.value = POD_DAMAGED_COL_ID + data.id; properties.name.value = 'S' + data.id + '__Damaged'; var $ctrl = $('
    ').data('odkControl-properties', properties); var dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD; /*dataTmp.options = []; dataTmp.options.push({'text':{'eng':'Yes'}, 'val':'yes'}); dataTmp.displayType = CONST_ACROSS;*/ dataTmp.label.eng = 'Damaged'; children.push(dataTmp); } if(data.showReject){ showCommentIfCheck = true; var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]); properties.id.value = POD_REJECTED_COL_ID + data.id; properties.name.value = 'S' + data.id + '__Rejected'; var $ctrl = $('
    ').data('odkControl-properties', properties); var dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD; /*dataTmp.options = []; dataTmp.options.push({'text':{'eng':'Yes'}, 'val':'yes'}); dataTmp.displayType = CONST_ACROSS;*/ dataTmp.label.eng = 'Rejected'; children.push(dataTmp); } if(data.itemPerRow == 'multi'){ // Qty column var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]); properties.id.value = POD_QTY_COL_ID + data.id; properties.name.value = 'S' + data.id + '__Qty'; var $ctrl = $('
    ').data('odkControl-properties', properties); var dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD; dataTmp.label.eng = 'Qty'; dataTmp.hideInMobile = false; dataTmp.hideInWeb = false; dataTmp.hideInPDF = false; dataTmp.hidePdfWeb = false; dataTmp.readOnly = true; dataTmp.readOnlyDsp = true; children.push(dataTmp); } if(data.manifestMethod == 'button'){ var label = 'Pickup'; if(data.manifestType == 'delivery'){ label = 'Deliver'; } //ass deliver button var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUTACTION]); properties.id.value = POD_DELIVER_COL_ID + data.id; properties.name.value = 'S' + data.id + '__Deliver'; var $ctrl = $('
    ').data('odkControl-properties', properties); var dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUTACTION; dataTmp.imgAction = label; dataTmp.actionBtnText = label; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD; dataTmp.label.eng = label; children.push(dataTmp); } if(showCommentIfCheck && data.showComment){ var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_TEXT]); properties.id.value = POD_COMMENT_COL_ID + data.id; properties.name.value = 'S' + data.id + '__Comment'; var $ctrl = $('
    ').data('odkControl-properties', properties); var dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUT_TEXT; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD; dataTmp.label.eng = 'Comment'; dataTmp.readonly = false; dataTmp.readOnlyDsp = false; children.push(dataTmp); } } var appendAllExternalForINV = function(children, data){ var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_TEXT]); properties.id.value = INV_ID_COL_ID + data.id; properties.name.value = 'I' + data.id + 'A__ID'; var $ctrl = $('
    ').data('odkControl-properties', properties); var dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUT_TEXT; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLINV; dataTmp.label.eng = 'ID'; dataTmp.readonly = false; dataTmp.readOnlyDsp = false; children.push(dataTmp); if(data.isShowCommentCol){ var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_TEXT]); properties.id.value = INV_COMMENT_COL_ID + data.id; properties.name.value = 'I' + data.id + 'A__Comment'; var $ctrl = $('
    ').data('odkControl-properties', properties); var dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUT_TEXT; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLINV; dataTmp.label.eng = 'Comment'; dataTmp.readonly = false; dataTmp.readOnlyDsp = false; children.push(dataTmp); } if(data.isShowImageCol){ var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUTIMAGE]); properties.id.value = INV_IMAGE_COL_ID + data.id; properties.name.value = 'I' + data.id + 'A__Image'; var $ctrl = $('
    ').data('odkControl-properties', properties); var dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUTIMAGE; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLINV; dataTmp.label.eng = 'Photo'; dataTmp.readonly = false; dataTmp.readOnlyDsp = false; children.push(dataTmp); } } var appendAllExternalForScheduleWidget = function(children, data){ // Start Date var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUTDATE]); properties.id.value = utils.seq.getUniqueId(); properties.name.value = 'Start_Date'; properties.kind.vaue = CONST_VALUE_DATE; var $ctrl = $('
    ').data('odkControl-properties', properties); var dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUTDATE; dataTmp.kind = CONST_VALUE_DATE; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLTABLE; dataTmp.label.eng = 'START DATE'; dataTmp.militaryTime = false; dataTmp.hideInMobile = false; dataTmp.hideInWeb = false; dataTmp.hideInPDF = false; dataTmp.hidePdfWeb = false; dataTmp.readOnly = false; dataTmp.readOnlyDsp = false; dataTmp.dontGenId = true; children.push(dataTmp); data.dispatchDate = properties.id.value; // Start Time properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUTDATE]); properties.id.value = SCHEDULE_WIDGET_START_TIME_ID + data.id; properties.name.value = 'S' + data.id + '__Start_Time'; properties.kind.vaue = CONST_VALUE_TIME; properties.useInterval.vaue = true; properties.minuteInterval.vaue = '15'; properties.militaryTime.vaue = false; $ctrl = $('
    ').data('odkControl-properties', properties); dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUTDATE; dataTmp.kind = CONST_VALUE_TIME; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLTABLE; dataTmp.label.eng = 'START TIME'; dataTmp.useInterval = true; dataTmp.minuteInterval = '15' dataTmp.militaryTime = false; dataTmp.hideInMobile = false; dataTmp.hideInWeb = false; dataTmp.hideInPDF = false; dataTmp.hidePdfWeb = false; dataTmp.readOnly = false; dataTmp.readOnlyDsp = true; children.push(dataTmp); //Duration properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUTCALCULATE]); properties.id.value = SCHEDULE_WIDGET_DURATION_ID + data.id; properties.name.value = 'S' + data.id + '__Duration_Minutes'; $ctrl = $('
    ').data('odkControl-properties', properties); dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUTCALCULATE; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLTABLE; dataTmp.label.eng = 'DURATION'; dataTmp.expression = []; dataTmp.expression.push({text: {operation: "Other value", operation_other_count: "", operation_other_part_of_date: "", operation_other_sum: "", operation_other_val: "60"}, value: {}}) children.push(dataTmp); } // gets the pure data tree for any workspace DOM node var extractRecurse = function($root, rootType, gridCols, gridEmptyCol) { if(!rootType || rootType == ''){ if(isVersion(VERSION_BUILD_FORM_NEW)){ if(extractRecurseData && extractRecurseData.controls){ return extractRecurseData.controls; } } resetUniqueIdForEmptyCell(); } var result = []; var isNewRow_Grid = true; $root.children('.control').each(function() { var $this = $(this); if(gridEmptyCol && isNewRow_Grid && ((result.length % gridCols) % gridEmptyCol) == (gridEmptyCol - 1)){ result.push(makeGridEmptyCell()); isNewRow_Grid = false; if((result.length % gridCols) == 0){ isNewRow_Grid = true; } } var data = getDataRepresentation($this); if(rootType && rootType != ''){ data.parentCtrlType = rootType; }else{ data.parentCtrlType = ''; } if (data.type == CONST_CTRL_TYPE_GROUP) { data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), CONST_CTRL_TYPE_GROUP); } else if (data.type == CONST_CTRL_TYPE_CTRLTABLE) { data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), CONST_CTRL_TYPE_CTRLTABLE); } else if (data.type == CONST_CTRL_TYPE_CTRLSCHEDULE) { data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), CONST_CTRL_TYPE_CTRLSCHEDULE); } else if (data.type == CONST_CTRL_TYPE_CTRLPOD) { data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), CONST_CTRL_TYPE_CTRLPOD); } else if (data.type == CONST_CTRL_TYPE_CTRLINV) { data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), CONST_CTRL_TYPE_CTRLINV); } else if (data.type == CONST_CTRL_TYPE_CTRLSCORETABLE) { data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), CONST_CTRL_TYPE_CTRLSCORETABLE); } else if (data.type == CONST_CTRL_TYPE_CTRLGRID) { data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), CONST_CTRL_TYPE_CTRLGRID, data.loop, data.emptyCol); } else if (data.type == 'branch') { data.branches = []; $this.find('.workspaceInner').each(function() { var branch = {}; branch.conditions = $(this).data('odkmaker-branchConditions'); branch.children = extractRecurse($(this), 'branch'); data.branches.push(branch); }); } result.push(data); if(gridEmptyCol && (result.length % gridEmptyCol) == (gridEmptyCol - 1)){ result.push(makeGridEmptyCell()); } if(!isNewRow_Grid && (result.length % gridCols) == 0){ isNewRow_Grid = true; } }); if(isVersion(VERSION_BUILD_FORM_NEW)){ if(!rootType || rootType == ''){ extractRecurseData = { controls: result } } } return result; }; var getUniqueIdForEmptyCell = function(){ currentEmptyCellId = currentEmptyCellId + 1; return currentEmptyCellId; } var resetUniqueIdForEmptyCell = function(){ currentEmptyCellId = 0; } var makeGridEmptyCell = function(){ var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties['inputLabel']); properties.id.value = getUniqueIdForEmptyCell(); properties.name.value = 'AE__' + properties.id.value; var $ctrl = $('
    ').data('odkControl-properties', properties); dataTmp = getDataRepresentation($ctrl); dataTmp.type = 'inputLabel'; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLGRID; dataTmp.label.eng = ''; return dataTmp; } var makeGridEmptyCell = function(){ var properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties['inputLabel']); properties.id.value = utils.seq.getUniqueId(); properties.name.value = 'S' + properties.id.value + '__EmptyCell'; var $ctrl = $('
    ').data('odkControl-properties', properties); dataTmp = getDataRepresentation($ctrl); dataTmp.type = 'inputLabel'; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLGRID; dataTmp.label.eng = ''; return dataTmp; } var updateCboSkipAnswer = function(type){ var cboSkipAnswers = $('.editors .skipConditionsEditorValueField .cboSkipAnswer'); updateCboCompareType(cboSkipAnswers, type); }; var updateCboReportFilterAnswer = function(type){ var cboReportFilterAnswers = $('.editors .reportFilterConditionsEditorValueField .cboReportFilterAnswer'); updateCboCompareType(cboReportFilterAnswers, type); }; var updateCboLookup = function(type){ if(type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){ if(!isVersion2_12()){ var cboLookupConditionField = $('.editors .lookupConditionFieldEditorValueField_2_11 .cboLookupConditionField'); cboLookupConditionField.empty(); }else{ var cboLookupConditionAnswer = $('.editors .lookupConditionFieldEditorValueField .cboLookupConditionAnswer'); cboLookupConditionAnswer.empty(); } } }; $.live('.formBuilder .ctrlUndo', 'click', function(event) { if($('.workspace:visible .just-paste').length > 0){ var justCtrl = $('.workspace:visible .just-paste'); if(justCtrl.hasClass('first-child')){ justCtrl.next().addClass('first-child'); }else if(justCtrl.hasClass('last-child')){ justCtrl.prev().addClass('last-child'); } justCtrl.addClass(CONST_CSS_CLASS_HIDE_SESSION_IMP).removeClass('control'); }else if($('.workspace:visible .ctrlUndoMark').length > 0){ var ctrlUndoMarks = $('.workspace:visible .ctrlUndoMark'); $('.workspace:visible .ctrlRedoMark').remove(); $('.workspace:visible .ctrlUndoDeleteMark').remove(); $('.workspace:visible .ctrlRedoDeleteMark').removeClass('ctrlRedoDeleteMark'); for(var i=0; i
    '); ctrlRedoMark.attr('data', ctrlId); ctrlRedoMark.insertAfter(ctrl); ctrl.insertAfter(ctrlUndoMark); ctrlUndoMark.remove(); } }else if($('.workspace:visible .ctrlUndoDeleteMark').length > 0){ var ctrlUndoDeleteMarks = $('.workspace:visible .ctrlUndoDeleteMark'); for(var i=0; i 0){ var justCtrl = $('.workspace:visible .just-paste'); if(justCtrl.hasClass('first-child')){ justCtrl.next().removeClass('first-child'); }else if(justCtrl.hasClass('last-child')){ justCtrl.prev().removeClass('last-child'); } justCtrl.removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP).addClass('control'); }else if($('.workspace:visible .ctrlRedoMark').length > 0){ var ctrlRedoMarks = $('.workspace:visible .ctrlRedoMark'); $('.workspace:visible .ctrlUndoMark').remove(); $('.workspace:visible .ctrlUndoDeleteMark').remove(); $('.workspace:visible .ctrlRedoDeleteMark').removeClass('ctrlRedoDeleteMark'); for(var i=0; i
    '); ctrlUndoMark.attr('data', ctrlId); ctrlUndoMark.insertAfter(ctrl); ctrl.insertAfter(ctrlRedoMark); ctrlRedoMark.remove(); } }else if($('.workspace:visible .ctrlRedoDeleteMark').length > 0){ var ctrlRedoDeleteMarks = $('.workspace:visible .ctrlRedoDeleteMark'); for(var i=0; i $('.workspaceScrollArea:visible').height()){ $('.workspaceScrollArea:visible').scrollTop($('.workspaceScrollArea:visible').scrollTop() + $dupControl.position().top + 150 - $('.workspaceScrollArea:visible').height()); } if (type == CONST_CTRL_TYPE_GROUP){ if(groupProperties == undefined){ groupProperties = odkmaker.data.getCtrlProperties(properties.id.value); } loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children); } if (type == CONST_CTRL_TYPE_CTRLTABLE || type == CONST_CTRL_TYPE_CTRLSCHEDULE){ if(groupProperties == undefined){ groupProperties = odkmaker.data.getCtrlProperties(properties.id.value); } loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children); } if (type == CONST_CTRL_TYPE_CTRLPOD){ if(groupProperties == undefined){ groupProperties = jQuery.extend({}, odkmaker.data.getCtrlProperties(properties.id.value)); } var newPODId = newProperties.id.value; _.each(groupProperties.children, function(itemProperties){ var idInt = 0; try{ idInt = parseInt(itemProperties['id']); }catch(e){ } if(idInt <= parseInt(POD_QTY_COL_ID)){ var name = itemProperties.name; var arr = name.split('__'); if(!arr[1]){ arr[1] = ''; } switch(arr[1]){ case 'Qty': itemProperties['id'] = POD_QTY_COL_ID + newPODId; itemProperties['name'] = 'S' + newPODId + '__Qty'; break; case 'Actual': itemProperties['id'] = POD_ACTUAL_COL_ID + newPODId; itemProperties['name'] = 'S' + newPODId + '__Actual'; break; case 'Damaged': itemProperties['id'] = POD_DAMAGED_COL_ID + newPODId; itemProperties['name'] = 'S' + newPODId + '__Damaged'; break; case 'Rejected': itemProperties['id'] = POD_REJECTED_COL_ID + newPODId; itemProperties['name'] = 'S' + newPODId + '__Rejected'; break; case 'Comment': itemProperties['id'] = POD_COMMENT_COL_ID + newPODId; itemProperties['name'] = 'S' + newPODId + '__Comment'; break; case 'Deliver': itemProperties['id'] = POD_DELIVER_COL_ID + newPODId; itemProperties['name'] = 'S' + newPODId + '__Deliver'; break; case 'ID': itemProperties['id'] = POD_ID_COL_ID + newPODId; itemProperties['name'] = 'S' + newPODId + '__ID'; break; } } }); loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children); } if (type == CONST_CTRL_TYPE_CTRLINV){ if(groupProperties == undefined){ groupProperties = jQuery.extend({}, odkmaker.data.getCtrlProperties(properties.id.value)); } var newINVId = newProperties.id.value; _.each(groupProperties.children, function(itemProperties){ var idInt = 0; try{ idInt = parseInt(itemProperties['id']); }catch(e){ } if(idInt <= parseInt(INV_ID_COL_ID)){ var name = itemProperties.name; var arr = name.split('__'); if(!arr[1]){ arr[1] = ''; } switch(arr[1]){ case 'Comment': itemProperties['id'] = INV_COMMENT_COL_ID + newINVId; itemProperties['name'] = 'I' + newINVId + 'A__Comment'; break; case 'Image': itemProperties['id'] = INV_IMAGE_COL_ID + newINVId; itemProperties['name'] = 'I' + newINVId + 'A__Image'; break; case 'ID': itemProperties['id'] = INV_ID_COL_ID + newINVId; itemProperties['name'] = 'I' + newINVId + 'A__ID'; break; } } }); loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children); } if (type == CONST_CTRL_TYPE_CTRLSCORETABLE){ if(groupProperties == undefined){ groupProperties = odkmaker.data.getCtrlProperties(properties.id.value); } loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children); } if (type == CONST_CTRL_TYPE_CTRLGRID){ if(groupProperties == undefined){ groupProperties = odkmaker.data.getCtrlProperties(properties.id.value); } loadGroupChildren($dupControl.find('.workspaceInner'), groupProperties.children); } selectControl($dupControl, type, null, newProperties, true); $dupControl.removeClass(CONST_DUPLICATING); return $dupControl; }; var selectControl = function($this, type, config, properties, isSetFocus) { if(type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){ type = CONST_CTRL_TYPE_INPUTLOOKUP; } /*if($this.hasClass('ctrlDataFilter')){ if($this.prev( ".ctrlDataFilter" ).length >0){ properties.filterField.showJoinCond = true; }else{ properties.filterField.showJoinCond = false; } }*/ if(type == 'ctrlBreakPointDataElement'){ if(properties.kind && properties.kind.value == 'Number'){ if(properties.footerTypeNum){ properties.footerTypeNum.type = 'enumeration_radio'; } if(properties.footerTypeText){ properties.footerTypeText.type = 'hidden'; } }else{ if(properties.footerTypeNum){ properties.footerTypeNum.type = 'hidden'; } if(properties.footerTypeText){ properties.footerTypeText.type = 'enumeration_radio'; } } } var controls = extractRecurse($('.workspace:visible'), ''); controlsTmp = controls; controlsWhenSelectTmp = controls; $('.ac_results').hide(); $('.workspace:visible .control').removeClass('selected'); var offsetParent = $this.offsetParent(); var top = $this[0].offsetTop; while(!offsetParent.hasClass('workspaceScrollArea')){ top += offsetParent[0].offsetTop; offsetParent = offsetParent.offsetParent(); } var scrollTop = $('.workspaceScrollArea:visible').scrollTop(); if(top < scrollTop){ $('.workspaceScrollArea:visible').scrollTop(top); }else{ var wpHeight = $('.workspaceScrollArea:visible').height(); if(top + $this.height() > scrollTop + wpHeight){ if($this.height() >= wpHeight){ $('.workspaceScrollArea:visible').scrollTop(top); }else{ var tmp = wpHeight - (top - scrollTop); $('.workspaceScrollArea:visible').scrollTop(scrollTop + $this.height() - tmp); } } } $this.addClass('selected'); if($this.attr('id') == undefined || $this.attr('id') == ''){ var newId = 'selectedCtrlFocus' + properties.id.value; $this.attr('id', newId); } if(isSetFocus){ window.location.href = '#' + $this.attr('id'); } var idInt = 0; try{ idInt = parseInt(properties['id'].value); }catch(e){ } if(idInt <= parseInt(POD_QTY_COL_ID)){ //return; } updateCboLookup(type); updateCboSkipAnswer(type); updateCboReportFilterAnswer(type); var $propertyList = $('.propertyList:visible').attr('class', 'propertyList'); $propertyList.find('input[name=radio_cal_kind]').off('change') $('.propertyList:visible').find('input:focus').trigger('change').trigger('blur'); $propertyList.empty(); var attrs = $propertyList[0].attributes; var attrNames = []; _.each(attrs, function(attr, i){ switch(attr.name){ case 'id': case 'class': break; default: attrNames.push(attr.name); } }); _.each(attrNames, function(name, i){ $propertyList.removeAttr(name); }); $('.propertiesPane:visible #propertyListSampleHelp').addClass('hideSession'); $('.ctrlDescription .propertiesCtrlName') .empty(); $('.ctrlDescription .propertiesCtrlExplain') .empty(); $('.ctrlDescription .propertiesCtrlHint') .empty(); var i = 0; // iterate through non-advanced properties _.each(properties, function(property, propertyKey) { updateRuntimeVersion4ControlProperties(property); if((type == 'inputLabel' || type == CONST_CTRL_TYPE_INPUTACTION || type == CONST_CTRL_TYPE_INPUTPAYMENT) && propertyKey == 'hintLink'){ if(!isVersion1_1_LCE()){ return; } } if(type == CONST_CTRL_TYPE_INPUT_TEXT || type == CONST_CTRL_TYPE_INPUT_NUMERIC || type == CONST_CTRL_TYPE_INPUTDATE || type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || type == CONST_CTRL_TYPE_INPUTNEWPAYMENT){ try{ // Gray caption property if(propertyKey == 'grayCaption' && (!isVersion(VERSION_GRAY_CAPTION_TEXT) || !isInsideTheGridFreeForm($this))){ // CO-1977 fix problem with checkbox grayCaption properties.grayCaption.value = false; return; } // Compare property for Date/Time if(type == CONST_CTRL_TYPE_INPUTDATE){ if((propertyKey == 'validateValue' && !isVersion(VERSION_DATE_TIME_COMPARE)) || (propertyKey == 'useCalendarView' && !isVersion(VERSION_DATE_TIME_CALENDAR_VIEW))){ return; } } } catch(e){ } } property.ctrlType = type; if (property.advanced === true) return; var editor; if(propertyKey == 'isDisplayFirstMatching'){ editor = $('
  • ') .addClass(propertyKey) .toggleClass('even', (i % 2) == 0) .propertyEditor(property, $this, propertyKey) .appendTo($propertyList.find('li.lookupConditionFields .luAcceptNullValue')); }else if(propertyKey == 'isAllowEdit' && (type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE)){ editor = $('
  • ') .addClass(propertyKey) .toggleClass('even', (i % 2) == 0) .propertyEditor(property, $this, propertyKey) .appendTo($propertyList.find('li.lookupConditionFields .luAcceptNullValue')); }else if(propertyKey == 'isAcceptNull'){ editor = $('
  • ') .addClass(propertyKey) .toggleClass('even', (i % 2) == 0) .propertyEditor(property, $this, propertyKey) .appendTo($propertyList.find('li.lookupConditionFields .luAcceptNullValue')); }else if(propertyKey == 'isEvaluateERT'){ editor = $('
  • ') .addClass(propertyKey) .toggleClass('even', (i % 2) == 0) .propertyEditor(property, $this, propertyKey) .appendTo($propertyList.find('li.lookupConditionFields .luAcceptNullValue')); }else if(propertyKey == 'isShowCmpType'){ editor = $('
  • ') .addClass(propertyKey) .toggleClass('even', (i % 2) == 0) .propertyEditor(property, $this, propertyKey) .appendTo($propertyList.find('li.lookupConditionFields .luAcceptNullValue')); }else{ var insertBeforeClass = undefined; if(property.insertBefore && property.insertBefore !== ''){ insertBeforeClass = getInsertBeforeValue(property.insertBefore); } if(insertBeforeClass && $propertyList.find('li.' + insertBeforeClass).length > 0){ editor = $('
  • ') .addClass(propertyKey) .toggleClass('even', (i % 2) == 0) .propertyEditor(property, $this, propertyKey) .insertBefore($propertyList.find('li.' + insertBeforeClass)); }else if(property.insertAfter && property.insertAfter !== ''){ var insertAfterClass = getInsertAfterValue(property.insertAfter); var insertAfterClassArr = insertAfterClass.split(CONST_COMMA); for(var i=0; i 0){ break; } } if($propertyList.find('li.' + insertAfterClass).length > 0){ editor = $('
  • ') .addClass(propertyKey) .toggleClass('even', (i % 2) == 0) .propertyEditor(property, $this, propertyKey) .insertAfter($propertyList.find('li.' + insertAfterClass)); }else{ editor = $('
  • ') .addClass(propertyKey) .toggleClass('even', (i % 2) == 0) .propertyEditor(property, $this, propertyKey) .appendTo($propertyList); } }else if(property.insertAfterRadioClass){ var insertAfterClass = getInsertAfterValue(property.insertAfterRadioClass); if($propertyList.find('li.' + insertAfterClass).length > 0){ editor = $('') .addClass(propertyKey) .toggleClass('even', (i % 2) == 0) .propertyEditor(property, $this, propertyKey) .appendTo($(insertAfterClass)); }else{ editor = $('
  • ') .addClass(propertyKey) .toggleClass('even', (i % 2) == 0) .propertyEditor(property, $this, propertyKey) .appendTo($propertyList); } }else{ editor = $('
  • ') .addClass(propertyKey) .toggleClass('even', (i % 2) == 0) .propertyEditor(property, $this, propertyKey) .appendTo($propertyList); } } { //show property info icon if(isVersion(VERSION_NEW_TOOL_LAYOUT)){ var isIgnoreCheckShowHide = false; if(propertyKey == 'destinationdataconds'){ if(!properties.isRetrieve || properties.isRetrieve.value == false){ isIgnoreCheckShowHide = true; } } if(!isIgnoreCheckShowHide && !isShowProperty(property, propertyKey)){ switch(propertyKey){ case 'currency': editor.find('.currency_enumeration').addClass(CONST_CSS_CLASS_HIDE_SESSION); break; case 'phoneFormatKind': $('.propertyList div.phoneFormatKind').addClass(CONST_CSS_CLASS_HIDE_SESSION); break; case 'txtCustomFormatVal': $('.propertyList div.txtCustomFormatVal').addClass(CONST_CSS_CLASS_HIDE_SESSION); break; case 'isShowCustomFormat': $('.propertyList span.isShowCustomFormat').addClass(CONST_CSS_CLASS_HIDE_SESSION); break; case 'grayCaptionText': $('.propertyList div.grayCaptionText').addClass(CONST_CSS_CLASS_HIDE_SESSION); break; case 'printerSettingFile': $('li.printerSettingFile .uploadFile').addClass(CONST_CSS_CLASS_HIDE_SESSION); break; case 'paperWidth': $('li.paperWidth #editorPaperWidth').addClass(CONST_CSS_CLASS_HIDE_SESSION); break; case 'destinationdataconds': property.value = []; editor.addClass(CONST_CSS_CLASS_HIDE_SESSION); break; default: editor.addClass(CONST_CSS_CLASS_HIDE_SESSION); } } if(type == CONST_CTRL_TYPE_INPUTNEWPAYMENT && propertyKey == 'grayCaption'){ if('manual' == properties.paymentType.value){ editor.removeClass(CONST_CSS_CLASS_HIDE_SESSION); } else{ editor.addClass(CONST_CSS_CLASS_HIDE_SESSION); } } if(propertyKey == 'isCaptionOnTop'){ var gridTypeValue = $('#property_gridType input:radio:checked').val(); if(gridTypeValue !== '2'){ // check if not is caption column based editor.addClass(CONST_CSS_CLASS_HIDE_SESSION); } } if(propertyKey == 'grayCaptionText'){ $('.propertyList div.grayCaptionText').find('.propertyHeaderInfo').css(CONST_CSS_KEY_DISPLAY, CONST_VALUE_NONE); } if(property.boolFloatChild){ switch(property.type){ case 'bool': var boolFloatChild = $('
    '); if(property.boolFloatChildName){ boolFloatChild.addClass(property.boolFloatChildName); } editor.find('.bool').css('float', 'left'); if(editor.find('.bool').hasClass(CONST_CSS_CLASS_HIDE_SESSION)){ boolFloatChild.addClass(CONST_CSS_CLASS_HIDE_SESSION); } editor.append(boolFloatChild); break } } var isHideCaption = false; if(isVersion(property.hideCaptionVersion)){ isHideCaption = true; }else if(property.hideCaption){ isHideCaption = true; } if(!isHideCaption && property.info_icon){ var editorTmp; var hasParentGroup = false; var donotAddFloatLeft = false; if(property.parent_group_name && property.parent_group_name != ''){ editorTmp = $('ul.propertyList .' + property.parent_group_name + ' .' + propertyKey); hasParentGroup = true; }else if(property.parent_group && property.parent_group != ''){ editorTmp = $('ul.propertyList .' + property.parent_group + ' .' + propertyKey); editorTmp.append(' '); hasParentGroup = true; }else{ if(property.info_icon_chk_right){ editorTmp = editor.find('.bool .chkGroup'); donotAddFloatLeft = true; }else{ editorTmp = editor; } } switch(property.type){ case 'bool': var msgInfoIcon = $('
    '); if(property.icon_style){ $(msgInfoIcon[0]).attr('style', 'float:right;' + property.icon_style); } if(!hasParentGroup){ if(!donotAddFloatLeft){ editorTmp.find('.bool').css('float', 'left'); } if(editorTmp.find('.bool').hasClass(CONST_CSS_CLASS_HIDE_SESSION)){ msgInfoIcon.addClass(CONST_CSS_CLASS_HIDE_SESSION); } editorTmp.append(msgInfoIcon); }else{ if(!donotAddFloatLeft){ editorTmp.find('.chkGroup').css('float', 'left'); } if(editorTmp.find('.chkGroup').hasClass(CONST_CSS_CLASS_HIDE_SESSION)){ msgInfoIcon.addClass(CONST_CSS_CLASS_HIDE_SESSION); } msgInfoIcon.insertAfter(editorTmp.find('.chkGroup')); } break; case 'enumeration': var msgInfoIcon = $('
    '); if(property.icon_style){ $(msgInfoIcon[0]).attr('style', 'float:right;' + property.icon_style); } editorTmp.find('h4').css('float', 'left'); msgInfoIcon.insertAfter(editorTmp.find('h4')); break; case 'text': case 'uiText': case 'enumeration_radio': case 'textAutoComplete': if(propertyKey == 'stackedExpand'){ var msgInfoIcon = $('
    '); if(property.icon_style){ $(msgInfoIcon[0]).attr('style', 'float:right;padding-top:0.5em;' + property.icon_style); } msgInfoIcon.insertBefore(editorTmp.find('.item_stacked')); }else if(propertyKey == 'repeatTransitionText' || propertyKey == 'kind' || propertyKey == 'actionGeoTabVehicle'){ var msgInfoIcon = $('
    '); if(property.icon_style){ $(msgInfoIcon[0]).attr('style', 'float:right;padding-top:0.5em;' + property.icon_style); } editorTmp.find('legend').append(msgInfoIcon); }else{ var msgInfoIcon = $('
    '); if(property.icon_style){ $(msgInfoIcon[0]).attr('style', 'float:right;padding-top:0.5em;' + property.icon_style); } editorTmp.find('.propertyHeaderInfo').css('float', 'left'); msgInfoIcon.insertAfter(editorTmp.find('.propertyHeaderInfo')); } break; case 'enumeration_bool': case 'numericFieldRange': var msgInfoIcon = $('
    '); if(property.icon_style){ $(msgInfoIcon[0]).attr('style', 'float:right;padding-top:0.3em;' + property.icon_style); } editorTmp.find('.propertyHeaderInfo').css('float', 'left'); msgInfoIcon.insertAfter(editorTmp.find('.chkGroup')); break; case 'parse': var msgInfoIcon = $('
    '); if(property.icon_style){ $(msgInfoIcon[0]).attr('style', 'float:right;' + property.icon_style); } editorTmp.find('.propertyHeaderInfo').css('float', 'left'); msgInfoIcon.insertAfter(editorTmp.find('.propertyHeaderInfo')); break; case 'optionsEditor': case 'optionsEditorScoreOne': var msgInfoIcon = $('
    '); if(property.icon_style){ $(msgInfoIcon[0]).attr('style', 'float:right; padding-top:0.5em; padding-left: 20px;' + property.icon_style); } //editorTmp.find('.propertyHeaderInfo').css('float', 'left'); msgInfoIcon.insertAfter(editorTmp.find('.propertyHeaderInfo')); break; case 'lookupTable': case 'lookupField': var msgInfoIcon = $('
    '); if(property.icon_style){ $(msgInfoIcon[0]).attr('style', 'float:right; padding-top:0.5em; padding-left: 20px;' + property.icon_style); } //editorTmp.find('.propertyHeaderInfo').css('float', 'left'); //msgInfoIcon.insertAfter(editorTmp.find('.propertyHeaderInfo')); editorTmp.find('legend').append(msgInfoIcon); break; } if(property.info_msg && property.info_msg != ''){ /*editorTmp.find('.propertyInfo').qtip({ content: property.info_msg, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, position: { corner: { tooltip: 'bottomRight', // Use the corner... target: 'topMiddle' // ...and opposite corner } }, style: { width: 330, name: 'dark', background: '#000000', border: { radius: 3, width: 3 }, tip: true } });*/ editorTmp.find('.propertyInfo').click(function(){ if (property.info_msg instanceof Object) { if(property.ctrlType == CONST_CTRL_TYPE_CTRLGRID && properties.isButtonGrid && properties.isButtonGrid.value){ showRightPanelHelp(property.info_msg['ctrlButtonGrid']); }else{ showRightPanelHelp(property.info_msg[property.ctrlType]); } }else{ showRightPanelHelp(property.info_msg); } }); } if(property.add_class){ editorTmp.find('.iconInfo').addClass(property.add_class); } if(property.info_icon_style){ editorTmp.find('.iconInfo').attr('style', property.info_icon_style); } } } } i++; }); if(type == CONST_CTRL_TYPE_INPUTCALCULATE){ if(properties.kind.value == "Date"){ $('.propertiesPane:visible .currency').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .useCurrentcySymbol').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .isShowComma').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .usePercent').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .showAsHM').removeClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .showAsHMS').removeClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .showDateOnly').removeClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .decPlace').removeClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .addExpressionGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .showAsTextMobile').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .negativeGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION); }else if(properties.kind.value == "String"){ $('.propertiesPane:visible .currency').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .useCurrentcySymbol').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .isShowComma').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .usePercent').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .showAsHM').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .showAsHMS').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .showDateOnly').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .decPlace').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .addExpressionGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .showAsTextMobile').removeClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .negativeGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION); }else{ $('.propertiesPane:visible .currency').removeClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .useCurrentcySymbol').removeClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .isShowComma').removeClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .usePercent').removeClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .showAsHM').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .showAsHM').find('.editorCheckbox').prop('checked', false).trigger('editorCheckbox_Change'); $('.propertiesPane:visible .showAsHMS').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .showAsHMS').find('.editorCheckbox').prop('checked', false).trigger('editorCheckbox_Change'); $('.propertiesPane:visible .showDateOnly').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .showDateOnly').find('.editorCheckbox').prop('checked', false).trigger('editorCheckbox_Change'); $('.propertiesPane:visible .decPlace').removeClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .decimalPlace').trigger('show_hide_change'); $('.propertiesPane:visible .addExpressionGroup').removeClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .showAsTextMobile').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPane:visible .negativeGroup').removeClass(CONST_CSS_CLASS_HIDE_SESSION); } // Hide the Dispatch Required (in Calculation field) $('.propertiesPane:visible .dispatchRequired').addClass(CONST_CSS_CLASS_HIDE_SESSION); } // Fix bug 0022150: [Autonumber] User can input more than 10 characters into "Prefix - Android ONLY" property else if (type === CONST_CTRL_TYPE_INPUTNUMBERING) { // Limit character input in AutoNumber (10 characters) $('.propertiesPane:visible .prefix .editorTextfield').attr('maxlength', 10); } // now do advanced properties if(isVersion1_1()){ if(/*type !== CONST_CTRL_TYPE_GROUP && type !== CONST_CTRL_TYPE_CTRLTABLE && type !== CONST_CTRL_TYPE_CTRLSCHEDULE && type !== CONST_CTRL_TYPE_CTRLPOD && type !== CONST_CTRL_TYPE_CTRLINV && type !== CONST_CTRL_TYPE_CTRLSCORETABLE && type !== CONST_CTRL_TYPE_CTRLGRID && */ type !== 'inputPageBreak' /*&& type !== 'inputLabel' && type !== CONST_CTRL_TYPE_INPUTSCORESUMMARY && type !== CONST_CTRL_TYPE_INPUTACTION && type !== 'inputInstruction' && //type !== CONST_CTRL_TYPE_INPUTCALCULATE && type !== CONST_CTRL_TYPE_INPUTLOOKUP && type !== CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && type !== 'inputFacingTable' && type !== 'inputLookupMulti' && type !== CONST_CTRL_TYPE_INPUTEMAILREPORT && type !== CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT*/ && type !== CONST_CTRL_TYPE_INPUTAPPROVAL && type !== CONST_CTRL_TYPE_INPUTNUMBERING /* && type !== 'inputSaveAndSend'*//* && authNS.currentUser.ProductOrder != constantProductOrderFree*/){ //if(isVersion(VERSION_NEW_TOOL_LAYOUT) && type == CONST_CTRL_TYPE_INPUTSELECTONE){ if(isVersion(VERSION_NEW_TOOL_LAYOUT)){ }else{ $('
  • ' + lbl_advanced + '
    ' + '
  • ') .appendTo($propertyList); } } } else { if(type !== CONST_CTRL_TYPE_GROUP && type !== CONST_CTRL_TYPE_CTRLTABLE && type !== CONST_CTRL_TYPE_CTRLSCHEDULE && type !== CONST_CTRL_TYPE_CTRLPOD && type !== CONST_CTRL_TYPE_CTRLINV && type !== CONST_CTRL_TYPE_CTRLSCORETABLE && type !== CONST_CTRL_TYPE_CTRLGRID && type !== 'inputPageBreak' && type !== 'inputLabel' && type !== CONST_CTRL_TYPE_INPUTSCORESUMMARY && //type !== CONST_CTRL_TYPE_INPUTNUMBERING && type !== CONST_CTRL_TYPE_INPUTACTION && type !== CONST_CTRL_TYPE_INPUTPAYMENT && type !== 'inputInstruction' && //type !== CONST_CTRL_TYPE_INPUTCALCULATE && type !== CONST_CTRL_TYPE_INPUTLOOKUP && type !== CONST_CTRL_TYPE_INPUTLFBLUETOOTH && type !== CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && type !== 'inputFacingTable' && type !== 'inputLookupMulti' && type !== CONST_CTRL_TYPE_INPUTEMAILREPORT && type !== CONST_CTRL_TYPE_INPUTFAX && type !== CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT && type !== CONST_CTRL_TYPE_INPUTAPPROVAL && type !== 'inputSaveAndSend'){ $('
  • ' + lbl_advanced + '
    ' + '
  • ') .appendTo($propertyList); } } if (isVersion(VERSION_OPTION_SERABLE_FILED) & (isInsideTheInvoiceTable($this) || isInsideThePOD($this) || isInsideTheGroup($this) || isInsideTheBreakPointData($this))){ var isSearchCtrl = $('.propertyList:visible li.isSearchField'); if(isSearchCtrl.length > 0){ isSearchCtrl.attr('style', 'display:none'); var isSearchCtrlChk = isSearchCtrl.find('.editorCheckbox'); if(properties.isSearchField){ properties.isSearchField.value = false; } if(isSearchCtrlChk.length > 0 && isSearchCtrlChk[0].checked){ $('.propertiesPane:visible li.name .editorTextfield').trigger('searchDataNameChange', false); //$(isSearchCtrlChk[0]).click(); isSearchCtrlChk.prop('checked', false); } } } var isInTable = isInsideTheInvoiceTable($this); var isInPOD = isInsideThePOD($this); var isInGrid = isInsideTheGrid($this); var isInButtonGrid = isInsideTheButtonGrid($this); var isInBreakPointData = isInsideTheBreakPointData($this); if(isVersion(VERSION_ANSWER_BACKGROUND_COLOR)){ if(!isInTable){ $propertyList.find('.background-color').attr('style', 'display:none'); } } if(type == CONST_CTRL_TYPE_INPUTACTION){ $propertyList.find('.turnOffSelectionOutline').attr('style', 'display:none'); if(!isInButtonGrid){ $propertyList.find('.turnOffSelectionOutline input').prop('checked', false).trigger('editorCheckbox_Change'); } } if (isInTable || isInPOD || isInGrid || isInButtonGrid || isInBreakPointData){ if(type == CONST_CTRL_TYPE_INPUTSELECTONE){ var showAsDropdown = $propertyList.find('#property_showAsDropdown'); if(showAsDropdown.length > 0){ if(!showAsDropdown[0].checked){ //properties.showAsDropdown.value = true; $(showAsDropdown[0]).click(); if(properties.showAsDropdown){ properties.showAsDropdown.value = true; } } $(showAsDropdown[0]).prop('disabled', true); } } if($propertyList.find('.isOneTimeSignatureCapture').length > 0){ $propertyList.find('.isOneTimeSignatureCapture div.bool').css(CONST_CSS_KEY_DISPLAY, 'block'); } if($propertyList.find('.sizeOptions').length > 0){ $propertyList.find('.sizeOptions div.enumeration_radio').css(CONST_CSS_KEY_DISPLAY, 'block'); } if($propertyList.find('.advanced').length > 0){ $propertyList.find('.advanced').attr('style', 'display:none'); }else{ $propertyList.find('.relevanceConditionsEditor').attr('style', 'display:none'); } if(isInButtonGrid){ $propertyList.find('.imgJustify').attr('style', 'display:none'); if(type == CONST_CTRL_TYPE_INPUTACTION){ $propertyList.find('.turnOffSelectionOutline').attr('style', 'display:initial'); } }else{ if(type == CONST_CTRL_TYPE_INPUTACTION){ $propertyList.find('.turnOffSelectionOutline input').prop('checked', false).trigger('editorCheckbox_Change'); } } if(isVersion(VERSION_NEW_TOOL_LAYOUT)){ if(properties.iteConditions && isVersion(properties.iteConditions.version)){ }else{ $propertyList.find('li.actionGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION); } if(properties.skipIfConditions && isVersion(properties.skipIfConditions.version)){ }else{ $propertyList.find('li.actionGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION); } $propertyList.find('li.isShowRelevanceCondition').addClass(CONST_CSS_CLASS_HIDE_SESSION); $propertyList.find('li.relevanceconds').addClass(CONST_CSS_CLASS_HIDE_SESSION); if(isInGrid && isVersion(VERSION_SKIP_IN_GRID)){ }else{ $propertyList.find('li.isShowSkipCondition').addClass(CONST_CSS_CLASS_HIDE_SESSION); $propertyList.find('li.skipconds').addClass(CONST_CSS_CLASS_HIDE_SESSION); } if(properties.readOnlyIfConditions && isVersion(properties.readOnlyIfConditions.version)){ }else{ $propertyList.find('li.actionGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION); } } if(isInTable){ var idInt = 0; try{ idInt = parseInt(properties.id.value); }catch(e){ } if(idInt <= parseInt(SCHEDULE_WIDGET_START_TIME_ID)){ //$propertyList.find('li').attr('style', 'display:none'); //$propertyList.find('li.label').attr('style', 'display:list-item'); //$propertyList.find('li.useInterval ').attr('style', 'display:list-item;padding-top:5px;'); $propertyList.find('li.useInterval input, li.name #property_name').prop('disabled', true); //propertyList.find('li.expression').attr('style', 'display:list-item'); //$propertyList.find('li.expression li').attr('style', 'display:list-item'); } /* hqkhanh fix bug 0025998: [Suggestion] Table - Should hide 'Hint' property on widgtes inside Table */ $propertyList.find('li.hint').attr('style', 'display:none'); //in talbe if(properties.apperance && !isVersion(VERSION_ANSWER_BACKGROUND_COLOR)){ //$propertyList.find('.apperance .apperanceContent').attr('style', 'display:none'); if(isVersion(VERSION_SHOW_SECONDS_COLOR_ANSWER) && properties.answerColor){ }else{ $propertyList.find('.apperance').attr('style', 'display:none'); properties.apperance.value = "Default"; } } if(properties.removeAnswerBorder){ $propertyList.find('.removeAnswerBorder').attr('style', 'display:none'); properties.removeAnswerBorder.value = false; } if(!isVersion(VERSION_SHADED_HEADING_QUES_INTABLE)){ if($propertyList.find('.shadedHeadings').length > 0){ $propertyList.find('.shadedHeadings').attr('style', 'display:none'); } }else{ if($propertyList.find('.shadedHeadings').length > 0){ $propertyList.find('.shadedHeadings .opt_border_around_heading').attr('style', 'display:none'); } } //Fields in a table should not have Hint justification. if(properties.justificationHint){ $propertyList.find('.justificationHint').attr('style', 'display:none'); } /* co-1566, co1567 if(properties.turnOffSelectionOutline){ $propertyList.find('.turnOffSelectionOutline').attr('style', 'display:none'); }*/ }else if(isInPOD){ var idInt = 0; try{ idInt = parseInt(properties.id.value); }catch(e){ } if(idInt <= parseInt(POD_QTY_COL_ID)){ $propertyList.find('li').attr('style', 'display:none'); $propertyList.find('li.label').attr('style', 'list-item'); } $propertyList.find('li.hint').attr('style', 'display:none'); //in POD if(properties.apperance){ //$propertyList.find('.apperance .apperanceContent').attr('style', 'display:none'); $propertyList.find('.apperance').attr('style', 'display:none'); properties.apperance.value = "Default"; } if(properties.removeAnswerBorder){ $propertyList.find('.removeAnswerBorder').attr('style', 'display:none'); properties.removeAnswerBorder.value = false; } if($propertyList.find('.shadedHeadings').length > 0){ $propertyList.find('.shadedHeadings').attr('style', 'display:none'); } if($propertyList.find('.hintLink').length > 0){ $propertyList.find('.hintLink').attr('style', 'display:none'); } if($propertyList.find('.imgJustify').length > 0){ $propertyList.find('.imgJustify').attr('style', 'display:none'); } if($propertyList.find('.defaultValue').length > 0){ $propertyList.find('.defaultValue').attr('style', 'display:none'); } if($propertyList.find('.numberOfLine').length > 0){ $propertyList.find('.numberOfLine').attr('style', 'display:none'); } if($propertyList.find('.readOnlyGroup').length > 0){ $propertyList.find('.readOnlyGroup').attr('style', 'display:none'); } if($propertyList.find('.requiredGroup').length > 0){ $propertyList.find('.requiredGroup').attr('style', 'display:none'); } if($propertyList.find('.hideMobileWebGroup').length > 0){ $propertyList.find('.hideMobileWebGroup').attr('style', 'display:none'); } if($propertyList.find('li.length').length > 0){ $propertyList.find('li.length').attr('style', 'display:none'); } if($propertyList.find('li.range').length > 0){ $propertyList.find('li.range').attr('style', 'display:none'); } if($propertyList.find('li.validateValue').length > 0){ $propertyList.find('li.validateValue').attr('style', 'display:none'); } if($propertyList.find('li.tip').length > 0){ $propertyList.find('li.tip').attr('style', 'display:none'); } if(properties.readOnly){ var parentProperties = $this.parents('.ctrlPOD').data('odkControl-properties'); if(parentProperties && parentProperties.podDataSource && parentProperties.podDataSource.value == CONST_DS_NONE){ properties.readOnly.value = false; }else{ properties.readOnly.value = true; } } if(properties.readOnly){ properties.readOnlyDsp.value = true; } }else{ //in grid if(isInsideTheGridFreeForm($this)){ if(properties.id.ctrlType != 'inputLabel'){ /*if(properties.apperance){ $propertyList.find('.apperance .apperanceContent').attr('style', 'display:none'); properties.apperance.value = "Default"; }*/ if($propertyList.find('.shadedHeadings').length > 0){ $propertyList.find('.shadedHeadings').attr('style', 'display:none'); } if($propertyList.find('.shadedButton').length > 0){ $propertyList.find('.shadedButton').attr('style', 'display:none'); } } } } if(properties.removeSpaceGroup){ $propertyList.find('.removeSpaceGroup').attr('style', 'display:none'); }else{ if(properties.removeSpaceAbove){ $propertyList.find('.removeSpaceAbove').attr('style', 'display:none'); } if(properties.removeSpaceBelow){ $propertyList.find('.removeSpaceBelow').attr('style', 'display:none'); } } } if(isInsideTheGrid($this)){ if(!isVersion(VERSION_GRID_TYPE_FUNCTION) || isNormalGrid($this.parents('.ctrlGrid'))){ $propertyList.find('.label .required').attr('style', 'display:none'); } if(properties.id.ctrlType == CONST_CTRL_TYPE_INPUTNEWPAYMENT || properties.id.ctrlType == CONST_CTRL_TYPE_INPUTNFC || properties.id.ctrlType == CONST_CTRL_TYPE_INPUTBARCODE || properties.id.ctrlType == CONST_CTRL_TYPE_INPUTLABEL || (properties.id.ctrlType == CONST_CTRL_TYPE_INPUTLOOKUP && properties.isRetrieve && properties.isRetrieve.value)){ }else{ $propertyList.find('.hintLink').attr('style', 'display:none'); $propertyList.find('.imgJustify').attr('style', 'display:none'); if(properties.hintLink != undefined && properties.hintLink.ctrlType == 'inputLabel'){ properties.hintLink.value = ""; } } } if(isInsideTheButtonGrid($this)){ } if(isInsideTheScoreTable($this)){ if(properties.showAsDropdown){ $propertyList.find('li.showAsDropdown').attr('style', 'display:none'); properties.showAsDropdown.value = false; } if(properties.apperance){ //$propertyList.find('.apperance .apperanceContent').attr('style', 'display:none'); $propertyList.find('.apperance').attr('style', 'display:none'); properties.apperance.value = "Default"; } if(properties.removeAnswerBorder){ $propertyList.find('.removeAnswerBorder').attr('style', 'display:none'); properties.removeAnswerBorder.value = false; } if($propertyList.find('.shadedHeadings').length > 0){ $propertyList.find('.shadedHeadings').attr('style', 'display:none'); } if(properties.removeSpaceGroup){ $propertyList.find('.removeSpaceGroup').attr('style', 'display:none'); }else{ if(properties.removeSpaceAbove){ $propertyList.find('.removeSpaceAbove').attr('style', 'display:none'); } if(properties.removeSpaceBelow){ $propertyList.find('.removeSpaceBelow').attr('style', 'display:none'); } } if(properties.displayType){ $propertyList.find('.displayType, .isIgnoreAcross, .ignoreAcrossScreenSize').attr('style', 'display:none'); properties.isIgnoreAcross.value = false; } if(properties.justificationAnswer){ $propertyList.find('.justificationAnswer').attr('style', 'display:none'); } } var $advancedList = $propertyList.find('.advancedProperties'); if($advancedList && $advancedList.length > 0){ _.each(properties, function(property, propertyKey) { updateRuntimeVersion4ControlProperties(property); if (property.advanced !== true) return; if (property.moreadvanced === true) return; if (property.skip === true) return; if (property.relevance === true) return; if (property.skipcond === true) return; $('
  • ') .toggleClass('even', (i % 2) == 0) .propertyEditor(property, $this, propertyKey) .appendTo($advancedList); i++; }); } var $advancedSkipList = $propertyList.find('.advancedSkipProperties'); _.each(properties, function(property, propertyKey) { updateRuntimeVersion4ControlProperties(property); if (property.advanced !== true) return; if (property.moreadvanced === true) return; if (property.skip !== true) return; if (property.relevance === true) return; if (property.skipcond !== true) return; //if(isVersion(VERSION_NEW_TOOL_LAYOUT) && type == CONST_CTRL_TYPE_INPUTSELECTONE){ if(isVersion(VERSION_NEW_TOOL_LAYOUT)){ var $li = $('
  • '); $li.addClass(propertyKey) .toggleClass('even', (i % 2) == 0) .propertyEditor(property, $this, propertyKey) .insertAfter($('li.isShowSkipCondition')) .find('.skipConditionsInfo').addClass(CONST_CSS_CLASS_HIDE_SESSION); if(!isShowProperty(property, propertyKey)){ $li.addClass(CONST_CSS_CLASS_HIDE_SESSION); } }else{ if($advancedSkipList && $advancedSkipList.length > 0){ $('
  • ') .toggleClass('even', (i % 2) == 0) .propertyEditor(property, $this, propertyKey) .appendTo($advancedSkipList); } } i++; }); var $advancedRelevanceList = $propertyList.find('.advancedRelevanceProperties'); _.each(properties, function(property, propertyKey) { updateRuntimeVersion4ControlProperties(property); if (property.advanced !== true) return; if (property.moreadvanced === true) return; if (property.skip === true) return; if (property.relevance !== true) return; if (property.relevancecond !== true) return; //if(isVersion(VERSION_NEW_TOOL_LAYOUT) && type == CONST_CTRL_TYPE_INPUTSELECTONE){ if(isVersion(VERSION_NEW_TOOL_LAYOUT)){ var $li = $('
  • '); $li.addClass(propertyKey) .toggleClass('even', (i % 2) == 0) .propertyEditor(property, $this, propertyKey) .insertAfter($('li.isShowRelevanceCondition')) .find('.relevanceConditionsInfo').addClass(CONST_CSS_CLASS_HIDE_SESSION); if(!isShowProperty(property, propertyKey)){ $li.addClass(CONST_CSS_CLASS_HIDE_SESSION); } }else{ if($advancedRelevanceList && $advancedRelevanceList.length > 0){ $('
  • ') .toggleClass('even', (i % 2) == 0) .propertyEditor(property, $this, propertyKey) .appendTo($advancedRelevanceList); } } i++; }); if(isVersion(VERSION_IF_THEN_ELSE)){ var $iteConditionsList = $propertyList.find('.iteConditionsList'); var propertyKey = 'iteConditions'; var property = properties[propertyKey]; if(property != undefined){ var $li = $('
  • '); $li.addClass(propertyKey) .toggleClass('even', (i % 2) == 0) .propertyEditor(property, $this, propertyKey) .insertAfter($('li.isShowITE')) .find('.iteConditionsInfo').addClass(CONST_CSS_CLASS_HIDE_SESSION); if(!isShowProperty(property, propertyKey)){ $li.addClass(CONST_CSS_CLASS_HIDE_SESSION); } } } if(isVersion(VERSION_READ_ONLY_IF)){ var $readOnlyIfConditionsList = $propertyList.find('.readOnlyIfConditionsList'); var propertyKey = 'readOnlyIfConditions'; var property = properties[propertyKey]; if(property != undefined){ var $li = $('
  • '); $li.addClass(propertyKey) .toggleClass('even', (i % 2) == 0) .propertyEditor(property, $this, propertyKey) .insertAfter($('li.isShowReadOnlyIf')) .find('.readOnlyIfConditionsInfo').addClass(CONST_CSS_CLASS_HIDE_SESSION); if(!isShowProperty(property, propertyKey)){ $li.addClass(CONST_CSS_CLASS_HIDE_SESSION); } } } if(isVersion(VERSION_SKIP_IF)){ var $skipIfConditionsList = $propertyList.find('.skipIfConditionsList'); var propertyKey = 'skipIfConditions'; var property = properties[propertyKey]; if(property != undefined){ var $li = $('
  • '); $li.addClass(propertyKey) .toggleClass('even', (i % 2) == 0) .propertyEditor(property, $this, propertyKey) .insertAfter($('li.isShowSkipIf')) .find('.skipIfConditionsInfo').addClass(CONST_CSS_CLASS_HIDE_SESSION); if(!isShowProperty(property, propertyKey)){ $li.addClass(CONST_CSS_CLASS_HIDE_SESSION); } } } if(type == CONST_CTRL_TYPE_INPUTEMAILREPORT || type == CONST_CTRL_TYPE_INPUTFAX || type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){ } if(type == CONST_CTRL_TYPE_INPUTTRENDS) { trendsSourceStack = []; var findTrendsSourceCtrlToNode = function(controls, selectedCtrlId, isGetTrendsDate, isGrid, ignoreCtlID, isForLastEnteredValue){ var addNode = false; var tmp = []; var i = 0; _.each(controls, function(control) { if(ignoreCtlID && ignoreCtlID == control.id){ return true; } if(selectedCtrlId == control.id){ addNode = true; } if(addNode){ return false; } if(control.type == CONST_CTRL_TYPE_GROUP){ if(!isGetTrendsDate){ addNode = findTrendsSourceCtrlToNode(control.children, selectedCtrlId, isGetTrendsDate, ignoreCtlID, isForLastEnteredValue); } }else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){ if(!isGetTrendsDate){ addNode = findTrendsSourceCtrlToNode(control.children, selectedCtrlId, isGetTrendsDate, ignoreCtlID, isForLastEnteredValue); } }else if(control.type == CONST_CTRL_TYPE_CTRLPOD){ if(!isGetTrendsDate){ addNode = findTrendsSourceCtrlToNode(control.children, selectedCtrlId, isGetTrendsDate, ignoreCtlID, isForLastEnteredValue); } }else if(control.type == CONST_CTRL_TYPE_CTRLINV){ if(!isGetTrendsDate){ addNode = findTrendsSourceCtrlToNode(control.children, selectedCtrlId, isGetTrendsDate, ignoreCtlID, isForLastEnteredValue); } }else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){ if(!isGetTrendsDate){ addNode = findTrendsSourceCtrlToNode(control.children, selectedCtrlId, isGetTrendsDate, ignoreCtlID, isForLastEnteredValue); } }else if(control.type == CONST_CTRL_TYPE_CTRLGRID){ addNode = findTrendsSourceCtrlToNode(control.children, selectedCtrlId, isGetTrendsDate, true, ignoreCtlID, isForLastEnteredValue); }else { if(isGetTrendsDate){ if(control.type == CONST_CTRL_TYPE_INPUTDATE){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(isForLastEnteredValue){ switch(control.type){ case CONST_CTRL_TYPE_INPUT_NUMERIC: case CONST_CTRL_TYPE_INPUTCOUNTER: case CONST_CTRL_TYPE_INPUTTRENDS: tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; break; default: break; } }else{ switch(control.type){ case "inputPageBreak": case "inputLabel": case CONST_CTRL_TYPE_INPUTSCORESUMMARY: case CONST_CTRL_TYPE_INPUTMEDIA: case "inputDraw": case mdi_kind_inputImage: case mdi_kind_inputAudio: case mdi_kind_inputVideo: case mdi_kind_inputSketch: case mdi_kind_inputSignature: case CONST_CTRL_TYPE_CTRLTABLE: case CONST_CTRL_TYPE_CTRLSCHEDULE: case CONST_CTRL_TYPE_CTRLPOD: case CONST_CTRL_TYPE_CTRLINV: case CONST_CTRL_TYPE_CTRLSCORETABLE: case CONST_CTRL_TYPE_GROUP: case CONST_CTRL_TYPE_CTRLGRID: case CONST_CTRL_TYPE_INPUTAPPROVAL: case CONST_CTRL_TYPE_INPUTACTION: case CONST_CTRL_TYPE_INPUTPAYMENT: case CONST_CTRL_TYPE_INPUTLOCATION: case CONST_CTRL_TYPE_INPUTATTACHMENT: break; default : tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; break; } } } }); if(selectedCtrlId == CONST_JUMP_EOF_VAL){ addNode = true; } if(addNode || isGrid){ for(var j=i; j>0; j--){ trendsSourceStack[trendsSourceStack.length] = tmp[j-1]; } } return addNode; } var addQuestiontTrendingDate = function(controls, selectedCtrlId){ var cboTrendingDateQues = $('#editorTrendingDate .editorSelect'); var cboTrendingDateQuesVal = cboTrendingDateQues.val(); cboTrendingDateQues.empty(); cboTrendingDateQues.append(''); trendsSourceStack = []; var end = findTrendsSourceCtrlToNode(controls, selectedCtrlId, true, false, false, false); if(end){ for(var j=trendsSourceStack.length; j>0; j--){ cboTrendingDateQues.append(trendsSourceStack[j-1].clone()); } } cboTrendingDateQues.val(cboTrendingDateQuesVal); return end; }; var addQuestiontKeyFieldFilter = function(controls, selectedCtrlId){ var cboKeyFieldFilterQues = $('#editorKeyFieldFilter .editorSelect'); var cboKeyFieldFilterQuesVal = cboKeyFieldFilterQues.val(); cboKeyFieldFilterQues.empty(); cboKeyFieldFilterQues.append(''); trendsSourceStack = []; var end = findTrendsSourceCtrlToNode(controls, selectedCtrlId, false, false, false, false); if(end){ for(var j=trendsSourceStack.length; j>0; j--){ cboKeyFieldFilterQues.append(trendsSourceStack[j-1].clone()); } } cboKeyFieldFilterQues.val(cboKeyFieldFilterQuesVal); return end; }; var addQuestiontKeyFieldFilter = function(controls, selectedCtrlId){ var cboKeyFieldFilterQues = $('#editorKeyFieldFilter .editorSelect'); var cboKeyFieldFilterQuesVal = cboKeyFieldFilterQues.val(); cboKeyFieldFilterQues.empty(); cboKeyFieldFilterQues.append(''); trendsSourceStack = []; var end = findTrendsSourceCtrlToNode(controls, selectedCtrlId, false, false, false, false); if(end){ for(var j=trendsSourceStack.length; j>0; j--){ cboKeyFieldFilterQues.append(trendsSourceStack[j-1].clone()); } } cboKeyFieldFilterQues.val(cboKeyFieldFilterQuesVal); return end; }; var addQuestionToLastEnteredValue = function(controls, selectedCtrlId){ var cboLastEnteredValueQues = $('.lastEnteredValue .editorSelect'); var cboLastEnteredValueQuesVal = cboLastEnteredValueQues.val(); cboLastEnteredValueQues.empty(); cboLastEnteredValueQues.append(''); trendsSourceStack = []; var end = findTrendsSourceCtrlToNode(controls, CONST_JUMP_EOF_VAL, false, false, selectedCtrlId, true); if(end){ for(var j=trendsSourceStack.length; j>0; j--){ cboLastEnteredValueQues.append(trendsSourceStack[j-1].clone()); } } cboLastEnteredValueQues.val(cboLastEnteredValueQuesVal); return end; }; addQuestiontTrendingDate(controls, properties.id.value); addQuestiontKeyFieldFilter(controls, properties.id.value); addQuestionToLastEnteredValue(controls, properties.id.value); } if(type == CONST_CTRL_TYPE_INPUTDATE || type == CONST_CTRL_TYPE_INPUTLOCATION || type == CONST_CTRL_TYPE_INPUT_SHIPPING){ var addQuestionAutoStampTrigger = function(controls, selectedCtrlId){ var cboAutoStampTriggerQues = $('#editorAutoStampTrigger2Ques .editorSelect, li.autoRunQuestionTrigger #property_autoRunQuestionTrigger'); var cboAutoStampTriggerPage = $('#editorAutoStampTrigger4Ques .editorSelect'); var cboAutoStampTriggerQuesVals = []; var cboAutoStampTriggerPageVals = []; var i = 0; if(cboAutoStampTriggerQues.length > 1){ _.each(cboAutoStampTriggerQues, function(item){ cboAutoStampTriggerQuesVals[i] = $(item).val(); i ++; }); }else{ cboAutoStampTriggerQuesVals[0] = cboAutoStampTriggerQues.val(); } i = 0; if(cboAutoStampTriggerPage.length > 1){ _.each(cboAutoStampTriggerPage, function(item){ cboAutoStampTriggerPageVals[i] = $(item).val(); i ++; }); }else{ cboAutoStampTriggerPageVals[0] = cboAutoStampTriggerPage.val(); } cboAutoStampTriggerQues.empty(); cboAutoStampTriggerQues.append(''); cboAutoStampTriggerPage.empty(); cboAutoStampTriggerPage.append(''); stack = []; stackPage = []; stackCount = 0; stackPageCount = 0; //var end = findNode(controls, selectedCtrlId, true); var end = findNode(controls, selectedCtrlId, false, true); if(end){ for(var j=stackCount; j>0; j--){ cboAutoStampTriggerQues.append(stack[j-1].clone()); } for(var j=stackPageCount; j>0; j--){ cboAutoStampTriggerPage.append(stackPage[j-1].clone()); } } i = 0; if(cboAutoStampTriggerQues.length > 1){ _.each(cboAutoStampTriggerQues, function(item){ $(item).val(cboAutoStampTriggerQuesVals[i]); i ++; }); }else{ cboAutoStampTriggerQues.val(cboAutoStampTriggerQuesVals[0]); } i = 0; if(cboAutoStampTriggerPage.length > 1){ _.each(cboAutoStampTriggerPage, function(item){ $(item).val(cboAutoStampTriggerPageVals[i]); i ++; }); }else{ cboAutoStampTriggerPage.val(cboAutoStampTriggerPageVals[0]); } return end; }; addQuestionAutoStampTrigger(controls, properties.id.value); } if(type == CONST_CTRL_TYPE_INPUTNUMBERING){ var addQuestionAutoNumTrigger = function(controls, selectedCtrlId){ var cboAutoStampTriggerQues = $('#editorAutoNumTriggerQues .editorSelect'); var cboAutoStampTriggerPage = $('#editorAutoNumTriggerPages .editorSelect'); var cboAutoStampTriggerQuesVal = cboAutoStampTriggerQues.val(); var cboAutoStampTriggerPageVal = cboAutoStampTriggerPage.val(); cboAutoStampTriggerQues.empty(); cboAutoStampTriggerQues.append(''); cboAutoStampTriggerPage.empty(); cboAutoStampTriggerPage.append(''); stack = []; stackPage = []; stackCount = 0; stackPageCount = 0; //var end = findNode(controls, selectedCtrlId, true); var end = findNode(controls, selectedCtrlId, false, true); if(end){ for(var j=stackCount; j>0; j--){ cboAutoStampTriggerQues.append(stack[j-1].clone()); } for(var j=stackPageCount; j>0; j--){ cboAutoStampTriggerPage.append(stackPage[j-1].clone()); } } cboAutoStampTriggerQues.val(cboAutoStampTriggerQuesVal); cboAutoStampTriggerPage.val(cboAutoStampTriggerPageVal); return end; }; addQuestionAutoNumTrigger(controls, properties.id.value); } // function for lookup control var addCboLookupFillField = function(controls, isRetrieveField, level, isStart_forgrid, isStart_fortable, isStart_forgroup){ var cboLookupFillControl = $('.lookupFillEditorValueField .cboLookupFillField'); var forModifyOnly = false; // START CO-1739 Add options for modify fields if(isRetrieveField) { cboLookupFillControl = $('.lookupRetrieveModifyFieldEditorValueField .cboLookupRetrieveFillField'); if(properties.modifyFieldsAction && properties.modifyFieldsAction.value && properties.modifyFieldsAction.value == 'clear'){ $('.lookupRetrieveModifyFields').find('.clearactionselected').hide(); } if(cboLookupFillControl.parents('.isModifyOnly').length>0){ forModifyOnly = true; } } // END CO-1739 Add options for modify fields var cboLookupFillFieldVals = []; var i =0; if(level == 0){ if(cboLookupFillControl.length > 1){ _.each(cboLookupFillControl, function(item){ cboLookupFillFieldVals[i] = $(item).val(); i ++; }); }else{ cboLookupFillFieldVals[0] = cboLookupFillControl.val(); } } if(level == 0){ cboLookupFillControl.empty(); cboLookupFillControl.append($('') .attr(CONST_VALUE, CONS_RETRIVE_ACTION_CONSTANT_VALUE) .addClass('retrieveconstantfields') .text(CONS_RETRIVE_ACTION_CONSTANT_TEXT).hide(); if(properties.modifyFieldsAction && properties.modifyFieldsAction.value) { var modifyActionVal = properties.modifyFieldsAction.value; if(modifyActionVal != CONS_RETRIVE_ACTION_CLEAR_VALUE && modifyActionVal != CONS_RETRIVE_ACTION_REPLACE_VALUE && modifyActionVal != ''){ optionRow1.show(); } } cboLookupFillControl.append(optionRow1); /*cboLookupFillControl.parents('.lookupRetrieveModifyFields').find('.lookupRetrieveModifyFieldsAction').removeClass(CONST_CSS_CLASS_HIDE_SESSION_IMP);*/ } // CO-1379 When click on question - Add action control and add option constant } var start = false; if(isStart_forgrid || isStart_fortable || isStart_forgroup){ start = true; } if(isRetrieveField) { start = true; } var skip = false; var endOfForm = true; _.each(controls, function(control) { var parentCtrlType = control.parentCtrlType; if(skip){ return false; } if(!start){ if(control.type == CONST_CTRL_TYPE_GROUP){ if(addCboLookupFillField(control.children, isRetrieveField, level + 1)){ //skip = true; start = true; endOfForm = false; } } if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){ if(addCboLookupFillField(control.children, isRetrieveField, level + 1)){ //skip = true; start = true; endOfForm = false; } } if(control.type == CONST_CTRL_TYPE_CTRLPOD){ if(addCboLookupFillField(control.children, isRetrieveField, level + 1)){ //skip = true; start = true; endOfForm = false; } } if(control.type == CONST_CTRL_TYPE_CTRLINV){ if(addCboLookupFillField(control.children, isRetrieveField, level + 1)){ //skip = true; start = true; endOfForm = false; } } if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){ if(addCboLookupFillField(control.children, isRetrieveField, level + 1)){ //skip = true; start = true; endOfForm = false; } } }else{ if(control.type == CONST_CTRL_TYPE_GROUP){ if(addCboLookupFillField(control.children, isRetrieveField, level + 1, false, false, true)){ //skip = true; start = true; endOfForm = false; } }else if(control.type == CONST_CTRL_TYPE_CTRLTABLE){ if(addCboLookupFillField(control.children, isRetrieveField, level + 1, false, true, false)){ //skip = false; start = true; endOfForm = false; } } } if(control.type == CONST_CTRL_TYPE_CTRLGRID){ if(!skip){ _.each(control.children, function(itemControlGrid) { if(start == false && itemControlGrid.id == properties.id.value){ start = true; }else{ if (start && itemControlGrid.type != CONST_CTRL_TYPE_GROUP && itemControlGrid.type != CONST_CTRL_TYPE_CTRLTABLE && itemControlGrid.type != CONST_CTRL_TYPE_CTRLSCHEDULE && itemControlGrid.type != CONST_CTRL_TYPE_CTRLPOD && itemControlGrid.type != CONST_CTRL_TYPE_CTRLINV && itemControlGrid.type != CONST_CTRL_TYPE_CTRLSCORETABLE && itemControlGrid.type != CONST_CTRL_TYPE_CTRLGRID){ if (itemControlGrid.type == 'branch' || itemControlGrid.type == 'inputPageBreak' || itemControlGrid.type == 'inputLabel' || itemControlGrid.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY || itemControlGrid.type == 'inputInstruction' || itemControlGrid.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || itemControlGrid.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || itemControlGrid.type == 'inputFacingTable' || itemControlGrid.type == 'inputLookupMulti' || itemControlGrid.type == CONST_CTRL_TYPE_INPUTAPPROVAL || itemControlGrid.type == 'inputSaveAndSend' || itemControlGrid.type == mdi_kind_inputImage || itemControlGrid.type == mdi_kind_inputAudio || itemControlGrid.type == mdi_kind_inputVideo || itemControlGrid.type == CONST_CTRL_TYPE_INPUTMEDIA || itemControlGrid.type == mdi_kind_inputSketch || itemControlGrid.type == mdi_kind_inputSignature || itemControlGrid.type == 'inputDraw' || itemControlGrid.isRetrieve || itemControlGrid.type == CONST_CTRL_TYPE_INPUTATTACHMENT){ }else{ var addOpt = true; if(itemControlGrid.type == CONST_CTRL_TYPE_INPUTACTION && itemControlGrid.imgAction != CONST_ACTION_LAUNCH_GOOGLE_MAP && itemControlGrid.imgAction != CONST_ACTION_LAUNCH_GARMIN_DIRECTIONS){ addOpt = false; } if(itemControlGrid.type == CONST_CTRL_TYPE_INPUTPAYMENT){ addOpt = false; } if(addOpt){ var optName; if(parentCtrlType == CONST_CTRL_TYPE_GROUP){ optName = '(Repeatable) ' + itemControlGrid.name; }else if(parentCtrlType == CONST_CTRL_TYPE_CTRLTABLE){ optName = '(Table) ' + itemControlGrid.name; }else{ optName = itemControlGrid.name; } var optionRow = $('') .attr(CONST_VALUE, itemControlGrid.id) .text(optName); if(isStart_fortable){ optionRow.attr('data', 'table'); }else if(isStart_forgroup){ optionRow.attr('data', 'repeatable'); } if(isRetrieveField) { var actionType = properties.modifyFieldsAction ? properties.modifyFieldsAction.value : ''; if(itemControlGrid.type == CONST_CTRL_TYPE_INPUT_NUMERIC || itemControlGrid.type == CONST_CTRL_TYPE_INPUTCOUNTER || itemControlGrid.type == CONST_CTRL_TYPE_INPUTNUMBERING || itemControlGrid.type == CONST_CTRL_TYPE_INPUTCALCULATE) { // Add modifyaction_numeric class for numeric options use for "Add/Subtract" action and hide it optionRow.addClass('modifyaction_numeric').hide(); } else if(itemControlGrid.type == CONST_CTRL_TYPE_INPUTDATE) { // Add modifyaction_date class for datetime options use for "Change Date" action and hide it optionRow.addClass('modifyaction_date').hide(); } else { // Add modifyaction_none class for options and hide it optionRow.addClass('modifyaction_none').hide(); } switch(actionType) { case CONS_RETRIVE_ACTION_ADD_VALUE: case CONS_RETRIVE_ACTION_SUBTRACT_VALUE: case CONS_RETRIVE_ACTION_ADDDAYS_VALUE: case CONS_RETRIVE_ACTION_SUBTRACTDAYS_VALUE: if(optionRow[0].className == 'modifyaction_numeric'){ optionRow.show(); } break; case CONS_RETRIVE_ACTION_CHANGEDATE_VALUE: if(optionRow[0].className == 'modifyaction_date'){ optionRow.show(); } break; default: optionRow.show(); break; } // CO-2359 Allow calculation in modify field of retrieve widget if(itemControlGrid.type == CONST_CTRL_TYPE_INPUTCALCULATE) { cboLookupFillControl.append(optionRow); } } // CO-2359 Allow calculation in modify field of retrieve widget if(itemControlGrid.type != CONST_CTRL_TYPE_INPUTCALCULATE) { cboLookupFillControl.append(optionRow); } } } } } }); } } if(!skip){ if(start == false && control.id == properties.id.value){ start = true; }else{ if (start && control.type != CONST_CTRL_TYPE_GROUP && control.type != CONST_CTRL_TYPE_CTRLTABLE && control.type != CONST_CTRL_TYPE_CTRLSCHEDULE && control.type != CONST_CTRL_TYPE_CTRLPOD && control.type != CONST_CTRL_TYPE_CTRLINV && control.type != CONST_CTRL_TYPE_CTRLSCORETABLE && control.type != CONST_CTRL_TYPE_CTRLGRID){ if (control.type == 'branch' || control.type == 'inputPageBreak' || control.type == 'inputLabel' || control.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY //|| control.type == CONST_CTRL_TYPE_INPUTNUMBERING //|| control.type == CONST_CTRL_TYPE_INPUTACTION || control.type == 'inputInstruction' // || control.type == CONST_CTRL_TYPE_INPUTCALCULATE // CO-2359 Allow calculation in modify field of retrieve widget // || control.type == CONST_CTRL_TYPE_INPUTLOOKUP // CO-3487 Add ability to use lookup control as destination field || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || control.type == 'inputFacingTable' || control.type == 'inputLookupMulti' || control.type == CONST_CTRL_TYPE_INPUTAPPROVAL || control.type == 'inputSaveAndSend' || control.type == mdi_kind_inputImage || control.type == mdi_kind_inputAudio || control.type == mdi_kind_inputVideo || control.type == CONST_CTRL_TYPE_INPUTMEDIA || control.type == mdi_kind_inputSketch || control.type == mdi_kind_inputSignature || control.type == 'inputDraw' || control.isRetrieve || control.type == CONST_CTRL_TYPE_INPUTATTACHMENT){ }else{ var addOpt = true; if(control.type == CONST_CTRL_TYPE_INPUTACTION && control.imgAction != CONST_ACTION_LAUNCH_GOOGLE_MAP && control.imgAction != CONST_ACTION_LAUNCH_GARMIN_DIRECTIONS){ addOpt = false; } if(control.type == CONST_CTRL_TYPE_INPUTPAYMENT){ addOpt = false; } if(addOpt){ var optName; if(parentCtrlType == CONST_CTRL_TYPE_GROUP){ optName = '(Repeatable) ' + control.name; }else if(parentCtrlType == CONST_CTRL_TYPE_CTRLTABLE){ optName = '(Table) ' + control.name; }else{ optName = control.name; } var optionRow = $('') .attr(CONST_VALUE, control.id) .text(optName); if(isStart_fortable){ optionRow.attr('data', 'table'); }else if(isStart_forgroup){ optionRow.attr('data', 'repeatable'); } // CO-1379 - Filter question for Fields controls // Add: numeric fields // Subtract: numeric fields // Add days / Subtract days / Change date: date fields /* var CONS_RETRIVE_ACTION_CONSTANT_VALUE = 'constant'; var CONS_RETRIVE_ACTION_CONSTANT_TEXT = 'Constant'; var CONS_RETRIVE_ACTION_CLEAR_VALUE = 'clear'; var CONS_RETRIVE_ACTION_CLEAR_TEXT = 'Clear'; var CONS_RETRIVE_ACTION_REPLACE_VALUE = 'replace'; var CONS_RETRIVE_ACTION_REPLACE_TEXT = 'Replace'; var CONS_RETRIVE_ACTION_ADD_VALUE = 'add'; var CONS_RETRIVE_ACTION_ADD_TEXT = 'Add'; var CONS_RETRIVE_ACTION_SUBTRACT_VALUE = 'subtract'; var CONS_RETRIVE_ACTION_SUBTRACT_TEXT = 'Subtract'; var CONS_RETRIVE_ACTION_ADDDAYS_VALUE = 'adddays'; var CONS_RETRIVE_ACTION_ADDDAYS_TEXT = 'Add days'; var CONS_RETRIVE_ACTION_SUBTRACTDAYS_VALUE = 'subtractdays'; var CONS_RETRIVE_ACTION_SUBTRACTDAYS_TEXT = 'Subtract days'; var CONS_RETRIVE_ACTION_CHANGEDATE_VALUE = 'changedate'; var CONS_RETRIVE_ACTION_CHANGEDATE_TEXT = 'Change date'; */ if(isRetrieveField) { var actionType = properties.modifyFieldsAction ? properties.modifyFieldsAction.value : ''; if(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTCOUNTER || control.type == CONST_CTRL_TYPE_INPUTNUMBERING || control.type == CONST_CTRL_TYPE_INPUTCALCULATE) { // Add modifyaction_numeric class for numeric options use for "Add/Subtract" action and hide it optionRow.addClass('modifyaction_numeric').hide(); } else if(control.type == CONST_CTRL_TYPE_INPUTDATE) { // Add modifyaction_date class for datetime options use for "Change Date" action and hide it optionRow.addClass('modifyaction_date').hide(); } else { // Add modifyaction_none class for options and hide it optionRow.addClass('modifyaction_none').hide(); } switch(actionType) { case CONS_RETRIVE_ACTION_ADD_VALUE: case CONS_RETRIVE_ACTION_SUBTRACT_VALUE: case CONS_RETRIVE_ACTION_ADDDAYS_VALUE: case CONS_RETRIVE_ACTION_SUBTRACTDAYS_VALUE: if(optionRow[0].className == 'modifyaction_numeric'){ optionRow.show(); } break; case CONS_RETRIVE_ACTION_CHANGEDATE_VALUE: if(optionRow[0].className == 'modifyaction_date'){ optionRow.show(); } break; default: optionRow.show(); break; } // CO-2359 Allow calculation in modify field of retrieve widget if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE) { //if(!(forModifyOnly && parentCtrlType == CONST_CTRL_TYPE_CTRLTABLE)){ cboLookupFillControl.append(optionRow); //} } } // CO-2359 Allow calculation in modify field of retrieve widget if(control.type != CONST_CTRL_TYPE_INPUTCALCULATE) { //if(!(forModifyOnly && parentCtrlType == CONST_CTRL_TYPE_CTRLTABLE)){ cboLookupFillControl.append(optionRow); //} } } } } } } }); /*if(isRetrieveField && forModifyOnly) { conditionStack = []; conditionStackCount = 0; var end = findTableFieldForRetrieveModiFy(controls, properties); if(end){ for(var j=conditionStackCount; j>0; j--){ cboLookupFillControl.append(conditionStack[j-1].clone()); } } }*/ // CO-4086 Add user variables as destination field targets start if(isVersion(VERSION_ADD_USER_VARIABLE_4_DES)){ appendUserVariableWithClass(cboLookupFillControl, CONST_VARIABLE_KIND_EDIT); } // CO-4086 Add user variables as destination field targets end if(level == 0){ if(cboLookupFillControl.length > 1){ i = 0; _.each(cboLookupFillControl, function(item){ $(item).val(cboLookupFillFieldVals[i]); i ++; }); }else{ cboLookupFillControl.val(cboLookupFillFieldVals[0]); } cboLookupFillControl.trigger('destination_field_style_change'); if(isRetrieveField) { var table_id = $($('.propertiesPane .propertyList .cboLookupValue')[0].selectedOptions).attr('data'); if(table_id != undefined){ //cboLookupFillControl.find('option.for_retrieve_modify_only[data="' + table_id + '"]').removeClass('hide_in_modify'); //cboLookupFillControl.find('option.for_retrieve_modify_only[data!="' + table_id + '"]').addClass('hide_in_modify'); }; } } // CO-1739 Filter combobox of tablefields if(isRetrieveField) { var cboTableFieldsContainer = cboLookupFillControl.parents('.lookupRetrieveModifyFields').find('.cboLookupRetrieveTableField'); cboTableFieldsContainer.find('.tableFieldsOptions').hide(); var actionType = properties.modifyFieldsAction ? properties.modifyFieldsAction.value : 'replace'; switch(actionType) { case CONS_RETRIVE_ACTION_ADD_VALUE: case CONS_RETRIVE_ACTION_SUBTRACT_VALUE: cboTableFieldsContainer.find('.' + CONST_KB_TYPE_NO.toLowerCase()).show(); // Only numeric fields break; case CONS_RETRIVE_ACTION_ADDDAYS_VALUE: case CONS_RETRIVE_ACTION_SUBTRACTDAYS_VALUE: // Date:Time fields cboTableFieldsContainer.find('.' + CONST_VALUE_DATE_LOWERCASE.toLowerCase()).show(); cboTableFieldsContainer.find('.' + CONST_VALUE_DATE_TIME_NO_SPACE_LOWERCASE.toLowerCase()).show(); break; case CONS_RETRIVE_ACTION_CHANGEDATE_VALUE: // Only Date fields cboTableFieldsContainer.find('.' + CONST_VALUE_DATE_LOWERCASE.toLowerCase()).show(); break; break; default: cboTableFieldsContainer.find('.tableFieldsOptions').show(); break; } } // CO-1739 Filter combobox of tablefields return start; }; // function for action destination field var addCboActionDestinationFillField = function(controls, ctrlId){ var cboActionDestinationFillControl = $('.actionDestinationFillEditorValueField .cboActionDestinationFillField'); var cboActionDestinationFillFieldVals = []; var i =0; if(cboActionDestinationFillControl.length > 1){ _.each(cboActionDestinationFillControl, function(item){ cboActionDestinationFillFieldVals[i] = $(item).val(); i ++; }); }else{ cboActionDestinationFillFieldVals[0] = cboActionDestinationFillControl.val(); } cboActionDestinationFillControl.empty(); cboActionDestinationFillControl.append($('') .attr(CONST_VALUE, control.id) .text(control.name); cboParseDestinationFiledControl.append(optionRow); } } } } } }); if(level == 0){ if(cboParseDestinationFiledControl.length > 1){ i = 0; _.each(cboParseDestinationFiledControl, function(item){ $(item).val(cboParseDestinationFiledVals[i]); i ++; }); }else{ cboParseDestinationFiledControl.val(cboParseDestinationFiledVals[0]); } } return start; }; // function for text control var addCboTextParseDestinationFiled = function(controls, level, isStart_forgrid){ var cboParseDestinationFiledControl = $('.textParseDestinationField .cboTextParseDestinationField'); var cboParseDestinationFiledVals = []; var i =0; if(level == 0){ if(cboParseDestinationFiledControl.length > 1){ _.each(cboParseDestinationFiledControl, function(item){ cboParseDestinationFiledVals[i] = $(item).val(); i ++; }); }else{ cboParseDestinationFiledVals[0] = cboParseDestinationFiledControl.val(); } } if(level == 0){ cboParseDestinationFiledControl.empty(); cboParseDestinationFiledControl.append($('') .attr(CONST_VALUE, control.id) .text(control.name) .data('data-table', isTable); cboParseDestinationFiledControl.append(optionRow); } } } } } }); if(level == 0){ if(cboParseDestinationFiledControl.length > 1){ i = 0; _.each(cboParseDestinationFiledControl, function(item){ $(item).val(cboParseDestinationFiledVals[i]); i ++; }); }else{ cboParseDestinationFiledControl.val(cboParseDestinationFiledVals[0]); } cboParseDestinationFiledControl.trigger('show_hide_table_field'); } return start; }; // function for lookup control var addCboParseDestinationFiled4POD = function(controls, ctrlPODId){ var cboParseDestinationFiledControl = $('.parseDestinationField .cboParseDestinationFiled'); var cboParseDestinationFiledVals = []; if(cboParseDestinationFiledControl.length > 1){ var i =0; _.each(cboParseDestinationFiledControl, function(item){ cboParseDestinationFiledVals[i] = $(item).val(); i ++; }); }else{ cboParseDestinationFiledVals[0] = cboParseDestinationFiledControl.val(); } cboParseDestinationFiledControl.empty(); cboParseDestinationFiledControl.append($('') .attr(CONST_VALUE, controlPOD.id) .text(controlPOD.name); cboParseDestinationFiledControl.append(optionRow); }); } }); if(cboParseDestinationFiledControl.length > 1){ i = 0; _.each(cboParseDestinationFiledControl, function(item){ $(item).val(cboParseDestinationFiledVals[i]); i ++; }); }else{ cboParseDestinationFiledControl.val(cboParseDestinationFiledVals[0]); } }; if(type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || type == 'inputLookupMulti' || type == 'inputFacingTable'){ $this.off('Update-CboLookupFillField').on('Update-CboLookupFillField', function(event){ if(properties.isRetrieve && properties.isRetrieve.value){ addCboLookupFillField(controls, true, 0); addCboLookupFillField(controls, false, 0); } else { addCboLookupFillField(controls, false, 0); } }).trigger('Update-CboLookupFillField'); }else if(type == CONST_CTRL_TYPE_CTRLPOD){ addCboPODFillField(controls, properties.id.value); } // Fix bug 0022156: Barcode-NFC Parsing : Pls hiding Parse checkbox of NFC // Fix bug 0022213: Form always waiting when user Open / Open special form // if(isVersion(VERSION_NFC_BAR_PARSE) && (type == CONST_CTRL_TYPE_INPUTBARCODE || type == CONST_CTRL_TYPE_INPUTNFC)){ if( (isVersion(VERSION_NFC_BAR_PARSE) && type == CONST_CTRL_TYPE_INPUTBARCODE) || ( isVersion(VERSION_NFC_PARSE_ONLY) && type == CONST_CTRL_TYPE_INPUTNFC) || ( type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH)){ addCboParseDestinationFiled(controls, 0); } if( (isVersion(VERSION_TEXT_PARSE) && type == CONST_CTRL_TYPE_INPUT_TEXT) || (isVersion(VERSION_BC_LENGTH_PARSE) && type == CONST_CTRL_TYPE_INPUTBARCODE) || (isVersion(VERSION_NFC_LENGTH_PARSE) && type == CONST_CTRL_TYPE_INPUTNFC)){ addCboTextParseDestinationFiled(controls, 0); } if(isVersion(VERSION_NFC_BAR_PARSE_POD) && type == CONST_CTRL_TYPE_CTRLPOD){ addCboParseDestinationFiled4POD(controls, properties.id.value); } // function for lookup control var addCboLookupSearchField = function(controls, level){ var cboLookupSearchControl = $('.lookupEditorValueField .cboLookupSearchField'); var cboLookupSearchFieldVals = []; var i =0; if(level == 0){ if(cboLookupSearchControl.length > 1){ _.each(cboLookupSearchControl, function(item){ cboLookupSearchFieldVals[i] = $(item).val(); i ++; }); }else{ cboLookupSearchFieldVals[0] = cboLookupSearchControl.val(); } } if(level == 0){ cboLookupSearchControl.empty(); cboLookupSearchControl.append($('') .attr(CONST_VALUE, control.id) .text(control.name); cboLookupSearchControl.append(optionRow); } } } } }); if(level == 0){ if(cboLookupSearchControl.length > 1){ i = 0; _.each(cboLookupSearchControl, function(item){ $(item).val(cboLookupSearchFieldVals[i]); i ++; }); }else{ cboLookupSearchControl.val(cboLookupSearchFieldVals[0]); } } return start; }; if(type == 'inputLookupMulti'){ addCboLookupSearchField(controls, 0); } if(type == CONST_CTRL_TYPE_CTRLREPEATABLESUMMARY){ var repeatableID = $('li.repeatable .editorSelect').val(); addCboRepeatableColumnField(controls, repeatableID, 0, false); } /////////////////////////////////////////////////////////////// // function for lookup control var findConditionFieldToNode = function(controls, endId, level){ var addNode = false; var tmp = []; var i = 0; var sameLevel = false; _.each(controls, function(control) { var parentCtrlType = control.parentCtrlType; var optName; if(parentCtrlType == CONST_CTRL_TYPE_CTRLTABLE){ optName = '(Table) ' + control.name; }else{ optName = control.name; } if(endId == control.id){ addNode = true; sameLevel = true; } if(addNode){ return false; } if(control.type == CONST_CTRL_TYPE_GROUP){ addNode = findConditionFieldToNode(control.children, endId, level + 1); }else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){ addNode = findConditionFieldToNode(control.children, endId, level + 1); }else if(control.type == CONST_CTRL_TYPE_CTRLPOD){ addNode = findConditionFieldToNode(control.children, endId, level + 1); }else if(control.type == CONST_CTRL_TYPE_CTRLINV){ addNode = findConditionFieldToNode(control.children, endId, level + 1); }else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){ addNode = findConditionFieldToNode(control.children, endId, level + 1); }else if(control.type == CONST_CTRL_TYPE_CTRLGRID){ _.each(control.children, function(itemControlGrid) { var optName; if(parentCtrlType == CONST_CTRL_TYPE_CTRLTABLE){ optName = '(Table) ' + itemControlGrid.name; }else{ optName = itemControlGrid.name; } if(endId == itemControlGrid.id){ addNode = true; sameLevel = true; } if(addNode){ return false; } if(itemControlGrid.type == CONST_CTRL_TYPE_INPUTLOOKUP || itemControlGrid.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || itemControlGrid.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){ if(!itemControlGrid.isRetrieve){ tmp[i] = $('') .attr(CONST_VALUE, itemControlGrid.id) .addClass('optionType_string answerQuestionOptions')// CO-1868 .addClass(parentCtrlType) .text(optName); i++; } }else if((itemControlGrid.type == 'inputFacingTable' || itemControlGrid.type == CONST_CTRL_TYPE_INPUT_TEXT || itemControlGrid.type == CONST_CTRL_TYPE_INPUT_NUMERIC || itemControlGrid.type == CONST_CTRL_TYPE_INPUTNUMBERING || itemControlGrid.type == CONST_CTRL_TYPE_INPUTTRENDS || itemControlGrid.type == CONST_CTRL_TYPE_INPUTSELECTONE || itemControlGrid.type == CONST_CTRL_TYPE_INPUTCOUNTER || itemControlGrid.type == CONST_CTRL_TYPE_INPUTCALCULATE || itemControlGrid.type == CONST_CTRL_TYPE_INPUTDATE) && isVersion2_12()){ // CO-1868 var optionType = 'string'; switch(itemControlGrid.type.toLowerCase()) { case CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase(): case CONST_CTRL_TYPE_INPUTCOUNTER.toLowerCase(): case CONST_CTRL_KIND_INTEGER.toLowerCase(): case CONST_CTRL_KIND_DECIMAL.toLowerCase(): case CONST_CTRL_KIND_PERCENT.toLowerCase(): case CONST_CTRL_TYPE_INPUT_NUMERIC.toLowerCase(): optionType = 'number'; break; default: optionType = 'string'; break; } // START CO-2704: Fix problem with calculation number/string if(itemControlGrid.type.toLowerCase() == CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase() && itemControlGrid.kind == 'String') { optionType = 'string'; } // END CO-2704: Fix problem with calculation number/string if(itemControlGrid.type == CONST_CTRL_TYPE_INPUTDATE) { switch(itemControlGrid.kind.toLowerCase()) { case CONST_VALUE_DATE.toLowerCase(): optionType = 'date'; break; case CONST_VALUE_DATE_SPACE_TIME.toLowerCase(): optionType = 'datetime'; break; case CONST_VALUE_TIME.toLowerCase(): optionType = 'time'; break; } } // CO-1868 tmp[i] = $('') .attr(CONST_VALUE, itemControlGrid.id) .addClass('optionType_' + optionType + ' answerQuestionOptions') .addClass(parentCtrlType) .text(optName); i++; } }); //addNode = findConditionFieldToNode(control.children, endId, level + 1, true); }else if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){ if(!control.isRetrieve){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .addClass('optionType_string answerQuestionOptions')// CO-1868 .addClass(parentCtrlType) .text(optName); i++; } }else if((control.type == 'inputFacingTable' || control.type == CONST_CTRL_TYPE_INPUT_TEXT || control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTNUMBERING || control.type == CONST_CTRL_TYPE_INPUTTRENDS || control.type == CONST_CTRL_TYPE_INPUTSELECTONE || control.type == CONST_CTRL_TYPE_INPUTCOUNTER || control.type == CONST_CTRL_TYPE_INPUTCALCULATE || control.type == CONST_CTRL_TYPE_INPUTDATE) && isVersion2_12()){ // CO-1868 var optionType = 'string'; switch(control.type.toLowerCase()) { case CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase(): case CONST_CTRL_TYPE_INPUTCOUNTER.toLowerCase(): case CONST_CTRL_KIND_INTEGER.toLowerCase(): case CONST_CTRL_KIND_DECIMAL.toLowerCase(): case CONST_CTRL_KIND_PERCENT.toLowerCase(): case CONST_CTRL_TYPE_INPUT_NUMERIC.toLowerCase(): optionType = 'number'; break; default: optionType = 'string'; break; } // START CO-2704: Fix problem with calculation number/string if(control.type.toLowerCase() == CONST_CTRL_TYPE_INPUTCALCULATE.toLowerCase() && control.kind == 'String') { optionType = 'string'; } // END CO-2704: Fix problem with calculation number/string if(control.type == CONST_CTRL_TYPE_INPUTDATE) { switch(control.kind.toLowerCase()) { case CONST_VALUE_DATE.toLowerCase(): optionType = 'date'; break; case CONST_VALUE_DATE_SPACE_TIME.toLowerCase(): optionType = 'datetime'; break; case CONST_VALUE_TIME.toLowerCase(): optionType = 'time'; break; } } // CO-1868 tmp[i] = $('') .attr(CONST_VALUE, control.id) .addClass('optionType_' + optionType + ' answerQuestionOptions') .addClass(parentCtrlType) .text(optName); i++; } }); /*if(isGridCtrl){ sameLevel = true; } if(addNode || isGridCtrl){*/ if(addNode){ if(level == 0 || sameLevel){ for(var j=i; j>0; j--){ conditionStack[conditionStackCount] = tmp[j-1]; conditionStackCount++; } } return addNode; }else{ return false; } } var addCboLookupConditionField_2_11 = function(controls, level, endId){ var cboLookupConditionField = $('.lookupConditionFieldEditorValueField_2_11 .cboLookupConditionField'); var cboLookupConditionFieldVals = []; var i =0; if(level == 0){ if(cboLookupConditionField.length > 1){ _.each(cboLookupConditionField, function(item){ cboLookupConditionFieldVals[i] = $(item).val(); i ++; }); }else{ cboLookupConditionFieldVals[0] = cboLookupConditionField.val(); } } if(level == 0){ cboLookupConditionField.empty(); cboLookupConditionField.append($('') .attr(CONST_VALUE, control.id) .text(control.name); cboGpsDestinationField.append(optionRow); } } } } } }); if(level == 0){ cboGpsDestinationField.val(cboGpsDestinationFieldVal); } return start; }; var addCboGpsDestinationField4GetAddress = function(controls, level, isStart_forgrid){ var cboGpsDestinationField = $('.gpsDestinationField4GetAddress .cboGpsDestinationField4GetAddress'); var cboGpsDestinationFieldVal = ''; var i =0; if(level == 0){ cboGpsDestinationFieldVal = cboGpsDestinationField.val(); cboGpsDestinationField.empty(); cboGpsDestinationField.append($('') .attr(CONST_VALUE, control.id) .text(control.name); cboGpsDestinationField.append(optionRow); } } } } } }); if(level == 0){ cboGpsDestinationField.val(cboGpsDestinationFieldVal); } return start; }; if(type == CONST_CTRL_TYPE_INPUTLOCATION){ addCboGpsCompareField(controls, 0); addCboGpsDestinationField(controls, 0); addCboGpsDestinationField4GetAddress(controls, 0); } var addCboTimeCompareField = function(controls, level, endId){ var cboTimeCompareField = $('.timeCompareField .cboTimeCompareField'); var cboTimeCompareFieldVal = ''; var i =0; if(level == 0){ cboTimeCompareFieldVal = cboTimeCompareField.val(); cboTimeCompareField.empty(); cboTimeCompareField.append($('') .attr(CONST_VALUE, control.id) .text(control.name); cboTimeDestinationField.append(optionRow); } } } } } }); if(level == 0){ cboTimeDestinationField.val(cboTimeDestinationFieldVal); } return start; }; if(type == CONST_CTRL_TYPE_INPUTDATE){ addCboTimeCompareField(controls, 0); addCboTimeDestinationField(controls, 0); } var addCboLookupValue = function(controls, level, endId){ var cboLookupValue = $('li.lookupValue .cboLookupValue'); var cboLookupValueVal = cboLookupValue.val(); var forModifyOnly = false; if(cboLookupValue.parents('.isModifyOnly').length>0){ forModifyOnly = true; } if(level == 0){ cboLookupValue.empty(); cboLookupValue.append($('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; }else if(controlGrd.type == CONST_CTRL_TYPE_INPUTCALCULATE && controlGrd.kind == 'String'){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; } }); }else { if(control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; }else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'String'){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } } }); if(selectedCtrlId == undefined){ addNode = true; } if(addNode){ for(var j=i; j>0; j--){ ctrlStack[ctrlStackCount] = tmp[j-1]; ctrlStackCount++; } } return addNode; } var addCboEmailReportToField = function(controls, level, endId){ var cboEmailToCtrl = $('.emailReportDefault .cboEmailToCtrl'); var cboEmailToCtrlVal = ''; var i =0; if(level == 0){ cboEmailToCtrlVal = cboEmailToCtrl.val(); } if(level == 0){ cboEmailToCtrl.empty(); if(isVersion(VERSION_CONSISTENCE_DROPDOWN)){ cboEmailToCtrl.append(''); } } ctrlStack = []; ctrlStackCount = 0; var end = findRootTextFieldToNode(controls, properties.id.value); if(end){ for(var j=ctrlStackCount; j>0; j--){ cboEmailToCtrl.append(ctrlStack[j-1].clone()); } } if(!isVersion(VERSION_CONSISTENCE_DROPDOWN)){ cboEmailToCtrl.append($('')); } if(level == 0){ cboEmailToCtrl.val(cboEmailToCtrlVal); if(cboEmailToCtrl.val() != cboEmailToCtrlVal){ cboEmailToCtrl.val('').change(); } } }; if(type == CONST_CTRL_TYPE_INPUTEMAILREPORT || type == CONST_CTRL_TYPE_INPUTFAX || type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){ addCboEmailReportToField(controls, 0); } var addCboForFaxCtrl = function(controls, level){ var cboFaxFromName = $('.propertiesPane .propertyList .from-name'); var cboFaxToName = $('.propertiesPane .propertyList .fax-to-name'); var cboFaxToCompany = $('.propertiesPane .propertyList .fax-to-company'); var cboOptionalMessage = $('.propertiesPane .propertyList .cboOptionalMessage'); var cboFaxFromNameVal = cboFaxFromName.val(); var cboFaxToNameVal = cboFaxToName.val(); var cboFaxToCompanyVal = cboFaxToCompany.val(); var cboOptionalMessageVal = cboOptionalMessage.val(); cboFaxFromName.empty(); cboFaxFromName.append(''); cboFaxToName.empty(); cboFaxToName.append(''); cboFaxToCompany.empty(); cboFaxToCompany.append(''); cboOptionalMessage.empty(); cboOptionalMessage.append(''); ctrlStack = []; ctrlStackCount = 0; var end = findRootTextFieldToNode(controls, undefined); if(end){ for(var j=ctrlStackCount; j>0; j--){ cboFaxFromName.append(ctrlStack[j-1].clone()); cboFaxToName.append(ctrlStack[j-1].clone()); cboFaxToCompany.append(ctrlStack[j-1].clone()); cboOptionalMessage.append(ctrlStack[j-1].clone()); } } /*if(!isVersion(VERSION_CONSISTENCE_DROPDOWN)){ cboFaxFromName.append($('')); }*/ cboFaxFromName.val(cboFaxFromNameVal); if(cboFaxFromName.val() != cboFaxFromNameVal){ cboFaxFromName.val('').change(); } cboFaxToName.val(cboFaxToNameVal); if(cboFaxToName.val() != cboFaxToNameVal){ cboFaxToName.val('').change(); } cboFaxToCompany.val(cboFaxToCompanyVal); if(cboFaxToCompany.val() != cboFaxToCompanyVal){ cboFaxToCompany.val('').change(); } cboOptionalMessage.val(cboOptionalMessageVal); if(cboOptionalMessage.val() != cboOptionalMessageVal){ cboOptionalMessage.val('').change(); } }; if((type == CONST_CTRL_TYPE_INPUTEMAILREPORT && properties && properties.isFaxWidget && properties.isFaxWidget.value == true) || type == CONST_CTRL_TYPE_INPUTFAX){ addCboForFaxCtrl(controls, 0); } var addCboDuplicateCheckField = function(controls, level, endId){ var cboDuplicateCheckField = $('.propertiesPane .propertyList .duplicateCheckField .cboDuplicateCheckField'); var cboDuplicateCheckFieldVal; var i =0; if(level == 0){ cboDuplicateCheckFieldVal = cboDuplicateCheckField.val(); } if(level == 0){ cboDuplicateCheckField.empty(); cboDuplicateCheckField.append($('').addClass(addClass) .attr(CONST_VALUE, controlInGrid.id) .text(controlInGrid.name); i++; tmp4Date[k] = $('').addClass(addClass) .attr(CONST_VALUE, controlInGrid.id) .text(controlInGrid.name); k++; } if(controlInGrid.type == CONST_CTRL_TYPE_INPUTCOUNTER){ tmp[i] = $('').addClass(addClass) .attr(CONST_VALUE, controlInGrid.id) .text(controlInGrid.name); i++; tmp4Date[k] = $('').addClass(addClass) .attr(CONST_VALUE, controlInGrid.id) .text(controlInGrid.name); k++; } if(controlInGrid.type == CONST_CTRL_TYPE_INPUTCALCULATE && controlInGrid.kind != 'String'){ // not use String Cal for Num Cal expression if(controlInGrid.kind != CONST_VALUE_DATE){ tmp[i] = $('').addClass(addClass) .attr(CONST_VALUE, controlInGrid.id) .text(controlInGrid.name); i++; }else{ tmp[i] = $('').addClass(addClass) .attr(CONST_VALUE, controlInGrid.id) .text(controlInGrid.name); i++; } } if(controlInGrid.type == CONST_CTRL_TYPE_INPUTDATE){// && controlInGrid.kind != CONST_VALUE_TIME){ if(controlInGrid.kind == CONST_VALUE_TIME && !isVersion3_2()){ }else{ var className = ''; if(controlInGrid.kind == CONST_VALUE_TIME){ className = 'ctrlTime'; }else if(controlInGrid.kind == CONST_VALUE_DATE){ className = 'ctrlDate'; }else{ className = 'ctrlDateTime'; } tmp4Date[k] = $('').addClass(addClass) .attr(CONST_VALUE, controlInGrid.id) .addClass(className) .text(controlInGrid.name); k++; tmpFields4Date[l] = $('').addClass(addClass) .attr(CONST_VALUE, controlInGrid.id) .addClass(className) .text(controlInGrid.name); l++; } } }else if(controlType == 'String'){ if(controlInGrid.type == CONST_CTRL_TYPE_INPUT_TEXT || controlInGrid.type == CONST_CTRL_TYPE_INPUT_NUMERIC || controlInGrid.type == CONST_CTRL_TYPE_INPUTCOUNTER || controlInGrid.type == CONST_CTRL_TYPE_INPUTLOOKUP || controlInGrid.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || controlInGrid.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || controlInGrid.type == CONST_CTRL_TYPE_INPUTNUMBERING || controlInGrid.type == CONST_CTRL_TYPE_INPUTSELECTONE){ tmp[i] = $('').addClass(addClass) .attr(CONST_VALUE, controlInGrid.id) .text(controlInGrid.name); i++; tmp4Date[k] = $('').addClass(addClass) .attr(CONST_VALUE, controlInGrid.id) .text(controlInGrid.name); k++; } else if(controlInGrid.type == CONST_CTRL_TYPE_INPUTCALCULATE){ if(controlInGrid.kind != CONST_VALUE_DATE){ tmp[i] = $('').addClass(addClass) .attr(CONST_VALUE, controlInGrid.id) .text(controlInGrid.name); i++; }else{ tmp[i] = $('').addClass(addClass) .attr(CONST_VALUE, controlInGrid.id) .text(controlInGrid.name); i++; } } else if(controlInGrid.type == CONST_CTRL_TYPE_INPUTDATE){// && controlInGrid.kind != CONST_VALUE_TIME){ if(controlInGrid.kind == CONST_VALUE_TIME && !isVersion3_2()){ }else{ var className = ''; if(controlInGrid.kind == CONST_VALUE_TIME){ className = 'ctrlTime'; }else if(controlInGrid.kind == CONST_VALUE_DATE){ className = 'ctrlDate'; }else{ className = 'ctrlDateTime'; } tmp4Date[k] = $('').addClass(addClass) .attr(CONST_VALUE, controlInGrid.id) .addClass(className) .text(controlInGrid.name); k++; tmpFields4Date[l] = $('').addClass(addClass) .attr(CONST_VALUE, controlInGrid.id) .addClass(className) .text(controlInGrid.name); l++; } } } }); }else if((controlType == 'Number' || controlType == CONST_VALUE_DATE)){ if(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTTRENDS){ tmp[i] = $('').addClass(addClass) .attr(CONST_VALUE, control.id) .text(control.name); i++; tmp4Date[k] = $('').addClass(addClass) .attr(CONST_VALUE, control.id) .text(control.name); k++; } if(control.type == CONST_CTRL_TYPE_INPUTCOUNTER){ tmp[i] = $('').addClass(addClass) .attr(CONST_VALUE, control.id) .text(control.name); i++; tmp4Date[k] = $('').addClass(addClass) .attr(CONST_VALUE, control.id) .text(control.name); k++; } if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind != 'String'){ // not use String Cal for Num Cal expression if(control.kind == CONST_CTRL_KIND_NUMBER){ tmp4Date[k] = $('').addClass(addClass) .attr(CONST_VALUE, control.id) .text(control.name); k++; } if(control.kind != CONST_VALUE_DATE){ tmp[i] = $('').addClass(addClass) .attr(CONST_VALUE, control.id) .text(control.name); i++; }else{ tmp[i] = $('').addClass(addClass) .attr(CONST_VALUE, control.id) .text(control.name); i++; } } if(control.type == CONST_CTRL_TYPE_INPUTDATE){// && control.kind != CONST_VALUE_TIME){ if(control.kind == CONST_VALUE_TIME && !isVersion3_2()){ }else{ var className = ''; if(control.kind == CONST_VALUE_TIME){ className = 'ctrlTime'; }else if(control.kind == CONST_VALUE_DATE){ className = 'ctrlDate'; }else{ className = 'ctrlDateTime'; } tmp4Date[k] = $('').addClass(addClass) .attr(CONST_VALUE, control.id) .addClass(className) .text(control.name); k++; tmpFields4Date[l] = $('').addClass(addClass) .attr(CONST_VALUE, control.id) .addClass(className) .text(control.name); l++; } } }else if(controlType == 'String'){ if(control.type == CONST_CTRL_TYPE_INPUT_TEXT || control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTCOUNTER || control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || control.type == CONST_CTRL_TYPE_INPUTNUMBERING || control.type == CONST_CTRL_TYPE_INPUTSELECTONE){ tmp[i] = $('').addClass(addClass) .attr(CONST_VALUE, control.id) .text(control.name); i++; tmp4Date[k] = $('').addClass(addClass) .attr(CONST_VALUE, control.id) .text(control.name); k++; } else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE){ if(control.kind != CONST_VALUE_DATE){ tmp[i] = $('').addClass(addClass) .attr(CONST_VALUE, control.id) .text(control.name); i++; }else{ tmp[i] = $('').addClass(addClass) .attr(CONST_VALUE, control.id) .text(control.name); i++; } } else if(control.type == CONST_CTRL_TYPE_INPUTDATE){// && control.kind != CONST_VALUE_TIME){ if(control.kind == CONST_VALUE_TIME && !isVersion3_2()){ }else{ var className = ''; if(control.kind == CONST_VALUE_TIME){ className = 'ctrlTime'; }else if(control.kind == CONST_VALUE_DATE){ className = 'ctrlDate'; }else{ className = 'ctrlDateTime'; } tmp4Date[k] = $('').addClass(addClass) .attr(CONST_VALUE, control.id) .addClass(className) .text(control.name); k++; tmpFields4Date[l] = $('').addClass(addClass) .attr(CONST_VALUE, control.id) .addClass(className) .text(control.name); l++; } } } }); if(addNodeToEndOfGroup){ addNode = true; } if(addNode || isGrid){ for(var j=i; j>0; j--){ calStack[calStackCount] = tmp[j-1]; calStackCount++; } for(var j=l; j>0; j--){ calStackFields4Date[calStackFields4DateCount] = tmpFields4Date[j-1]; calStackFields4DateCount++; } for(var j=k; j>0; j--){ calStack4Date[calStackCount4Date] = tmp4Date[j-1]; calStackCount4Date++; } return addNode; }else{ return false; } } var findCalculateSumToNode = function(controls, controlType, endId, canAddNode){ var addNode = false; var tmp = []; var i = 0; var canAddNodeThisLevel = false; if(!canAddNode){ _.each(controls, function(control) { if(endId == control.id){ canAddNodeThisLevel = true; }else if(control.type == CONST_CTRL_TYPE_CTRLGRID){ if(isVersion8_1()){ _.each(control.children, function(controlGrd) { if(endId == controlGrd.id){ canAddNodeThisLevel = true; } if(canAddNodeThisLevel){ return false; } }); } } if(canAddNodeThisLevel){ return false; } }); }else{ canAddNodeThisLevel = true; } _.each(controls, function(control) { if(endId == control.id){ addNode = true; } if(addNode){ return false; } if(control.type == CONST_CTRL_TYPE_GROUP){ addNode = findCalculateSumToNode(control.children, controlType, endId, canAddNodeThisLevel); }else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){ addNode = findCalculateSumToNode(control.children, controlType, endId, canAddNodeThisLevel); }else if(control.type == CONST_CTRL_TYPE_CTRLPOD){ addNode = findCalculateSumToNode(control.children, controlType, endId, canAddNodeThisLevel); }else if(control.type == CONST_CTRL_TYPE_CTRLINV){ addNode = findCalculateSumToNode(control.children, controlType, endId, canAddNodeThisLevel); }else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){ addNode = findCalculateSumToNode(control.children, controlType, endId, canAddNodeThisLevel); }else if(control.type == CONST_CTRL_TYPE_CTRLGRID){ //addNode = findCalculateSumToNode(control.children, controlType, endId, canAddNodeThisLevel); if(isVersion8_1()){ _.each(control.children, function(controlGrd) { if(endId == controlGrd.id){ addNode = true; } if(addNode){ return false; } if(controlType == 'Number' && (controlGrd.type == CONST_CTRL_TYPE_INPUT_NUMERIC || controlGrd.type == CONST_CTRL_TYPE_INPUTTRENDS || controlGrd.type == CONST_CTRL_TYPE_INPUTCALCULATE || controlGrd.type == CONST_CTRL_TYPE_INPUTCOUNTER)){ if(controlGrd.type == CONST_CTRL_TYPE_INPUTCALCULATE && controlGrd.kind == CONST_VALUE_DATE){ if(canAddNode){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; } }else{ if(canAddNode){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; } } }else if(controlType == CONST_VALUE_DATE && controlGrd.type == CONST_CTRL_TYPE_INPUTDATE){ if(canAddNode){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; } } }); } }else if(controlType == 'Number' && (control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTTRENDS || control.type == CONST_CTRL_TYPE_INPUTCALCULATE || control.type == CONST_CTRL_TYPE_INPUTCOUNTER)){ if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == CONST_VALUE_DATE){ if(canAddNode){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else{ if(canAddNode){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } } }else if(controlType == CONST_VALUE_DATE && control.type == CONST_CTRL_TYPE_INPUTDATE){ if(canAddNode){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } } }); //if(addNode){ for(var j=i; j>0; j--){ calStack[calStackCount] = tmp[j-1]; calStackCount++; } if(addNode){ return true; }else{ return false; } } var findCalculate4UseCheckList = function(controls, ctrlId, isTable){ var tmp = []; var i = 0; if(isTable == true){ tmp = []; var ctrlInThisTable = false; _.each(controls, function(control) { if(ctrlId == control.id){ ctrlInThisTable = true; }else{ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text('(Table) ' + control.name); i++; } }); if(ctrlInThisTable == true){ for(var j=i; j>0; j--){ calStack[calStackCount] = tmp[j-1]; calStackCount++; } } return; } _.each(controls, function(control) { if(ctrlId == control.id){ return false } if(calStackCount > 0){ return false; } if(control.type == CONST_CTRL_TYPE_GROUP){ findCalculate4UseCheckList(control.children, ctrlId, false); }else if(control.type == CONST_CTRL_TYPE_CTRLTABLE){ findCalculate4UseCheckList(control.children, ctrlId, true); } }); } var getUseChecklistLookupTable = function(controls, ctrlId, isTable){ var lookupTable = ''; if(isTable == true){ var ctrlInThisTable = false; lookupTable = controls[0].datasource; _.each(controls, function(control) { if(ctrlId == control.id){ ctrlInThisTable = true; } }); if(ctrlInThisTable == true){ return lookupTable; } return ''; } _.each(controls, function(control) { if(ctrlId == control.id){ return false } if(lookupTable != ''){ return false; } if(control.type == CONST_CTRL_TYPE_GROUP){ lookupTable = getUseChecklistLookupTable(control.children, ctrlId, false); }else if(control.type == CONST_CTRL_TYPE_CTRLTABLE){ lookupTable = getUseChecklistLookupTable(control.children, ctrlId, true); } }); return lookupTable; } var findCalculateCountToNode = function(controls, controlType, endId, canAddNode){ var addNode = false; var tmp = []; var i = 0; var canAddNodeThisLevel = false; if(!canAddNode){ _.each(controls, function(control) { if(endId == control.id){ canAddNodeThisLevel = true; }else if(control.type == CONST_CTRL_TYPE_CTRLGRID){ if(isVersion8_1()){ _.each(control.children, function(controlGrd) { if(endId == controlGrd.id){ canAddNodeThisLevel = true; } if(canAddNodeThisLevel){ return false; } }); } } if(canAddNodeThisLevel){ return false; } }); }else{ canAddNodeThisLevel = true; } _.each(controls, function(control) { if(endId == control.id){ addNode = true; } if(addNode){ return false; } if(control.type == CONST_CTRL_TYPE_GROUP){ addNode = findCalculateCountToNode(control.children, controlType, endId, canAddNodeThisLevel); }else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){ addNode = findCalculateCountToNode(control.children, controlType, endId, canAddNodeThisLevel); }else if(control.type == CONST_CTRL_TYPE_CTRLPOD){ addNode = findCalculateCountToNode(control.children, controlType, endId, canAddNodeThisLevel); }else if(control.type == CONST_CTRL_TYPE_CTRLINV){ addNode = findCalculateCountToNode(control.children, controlType, endId, canAddNodeThisLevel); }else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){ addNode = findCalculateCountToNode(control.children, controlType, endId, canAddNodeThisLevel); }else if(control.type == CONST_CTRL_TYPE_CTRLGRID){ //addNode = findCalculateCountToNode(control.children, controlType, endId, canAddNodeThisLevel); if(isVersion8_1()){ _.each(control.children, function(controlGrd) { if(endId == controlGrd.id){ addNode = true; } if(addNode){ return false; } if(canAddNode){ tmp[i] = $('') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; } }); } }else if(control.type == 'inputLabel' || control.type == CONST_CTRL_TYPE_INPUTACTION || control.type == CONST_CTRL_TYPE_INPUTPAYMENT){ }else if(control.type == CONST_CTRL_TYPE_INPUTNUMBERING){ }else if(control.type == CONST_CTRL_TYPE_INPUTNEWPAYMENT){ }else if(control.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){ }else{ if(canAddNode){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } } }); //if(addNode){ for(var j=i; j>0; j--){ calStack[calStackCount] = tmp[j-1]; calStackCount++; } if(addNode){ return true; }else{ return false; } } var addCboOperationField = function(controls, level){ var cboOperationFields = $('.expressionValueField .cboOperationField'); var cboOperationFields4Str = $('.expressionValueField4String .cboOperationField'); var cboOperationFields4Date = $('.expressionValueField4Date .cboOperationField'); var cboOperationField1 = $('.cboOperationField1'); var cboOperationFields4DateStr = $('.expressionValueField4String .cboOperationPartDateStrValue'); var cboOperationFieldVals = []; var cboOperationFields4StrVal = []; /*var cboOperationFields4DateStrVal = [];*/ var cboOperationField1Val = []; var cboOperationFields4DateVal = []; var i =0; if(level == 0){ // number kind if(cboOperationFields.length > 1){ _.each(cboOperationFields, function(item){ cboOperationFieldVals[i] = $(item).val(); i ++; }); }else{ cboOperationFieldVals[0] = cboOperationFields.val(); } // string kind i = 0; if(cboOperationFields4Str.length > 1){ _.each(cboOperationFields4Str, function(item){ cboOperationFields4StrVal[i] = $(item).val(); i ++; }); }else{ cboOperationFields4StrVal[0] = cboOperationFields.val(); } /*i = 0; if(cboOperationFields4DateStr.length > 1){ _.each(cboOperationFields4DateStr, function(item){ cboOperationFields4DateStrVal[i] = $(item).val(); i ++; }); }else{ cboOperationFields4DateStrVal[0] = cboOperationFields.val(); }*/ //cboOperationField1Val = cboOperationField1.val(); i = 0; if(cboOperationField1.length > 1){ _.each(cboOperationField1, function(item){ cboOperationField1Val[i] = $(item).val(); i ++; }); }else{ cboOperationField1Val[0] = cboOperationField1.val(); } i = 0; if(cboOperationFields4Date.length > 1){ _.each(cboOperationFields4Date, function(item){ cboOperationFields4DateVal[i] = $(item).val(); i ++; }); }else{ cboOperationFields4DateVal[0] = cboOperationFields4Date.val(); } //cboOperationFields4DateVal = cboOperationFields4Date.val(); } if(level == 0){ cboOperationFields.empty(); cboOperationFields.append($('')); cboOperationFields4Str.append($('')); if(isVersion(VERSION_NEW_FUNCTION_FOR_TEXT_CALCULATE)){ cboOperationFields4Str.append($('')); cboOperationFields4Str.append($('')); // CO-2252 - Add device id option for drop down list cboOperationFields4Str.append($('')); cboOperationFields4Str.append($('')); cboOperationFields4Str.append($('')); } if(properties.showUserVariable == undefined || properties.showUserVariable.value == true){ appendUserVariable(cboOperationFields, cboOperationFields4Str, [cboOperationFields4Date, cboOperationField1]); } if(properties.showAccountVariable == undefined || properties.showAccountVariable.value == true){ appendAccountVariable(cboOperationFields, cboOperationFields4Str); } if(isVersion(VERSION_TOOL_NEW_JUSTIFICATION)){ cboOperationFields.append($('')); cboOperationFields.append($('')); cboOperationFields.append($('')); cboOperationFields.append($('')); cboOperationFields4Str.append($('')); cboOperationFields4Str.append($('')); cboOperationFields4Str.append($('')); cboOperationFields4Str.append($('')); } if(isVersion(VERSION_START_DURATION_OPTION)){ var isShowSchedulerVariable = true; if(isVersion(VERSION_START_DURATION_OPTION) && !(properties.showSchedulerVariable == undefined || properties.showSchedulerVariable.value == true)){ isShowSchedulerVariable = false; }else{ if(!authNS.currentUser.DispatchPlus){ isShowSchedulerVariable = false; } } if(isShowSchedulerVariable){ cboOperationFields.append($('')); cboOperationFields.append($('')); cboOperationFields.append($('')); cboOperationFields.append($('')); cboOperationFields4Date.append($('')); cboOperationFields4Date.append($('')); cboOperationFields4Date.append($('')); cboOperationField1.append($('')); cboOperationField1.append($('')); cboOperationField1.append($('')); } } if(isVersion(VERSION_ADD_TRIP_VAIABLES)){ cboOperationFields.append($('')); cboOperationFields.append($('')); cboOperationFields4Str.append($('')); cboOperationFields4Str.append($('')); cboOperationFields4Str.append($('')); cboOperationFields4Str.append($('')); cboOperationFields4Date.append($('')); cboOperationFields4Date.append($('')); cboOperationField1.append($('')); cboOperationField1.append($('')); cboOperationField1.append($('')); cboOperationField1.append($('')); } } calStack = []; calStackCount = 0; calStackFields4Date = []; calStackFields4DateCount = 0; calStack4Date = []; calStackCount4Date = 0; var end = findCalculateToNode(controls, properties.kind.value, properties.id.value, false); if(end){ for(var j=calStackCount; j>0; j--){ cboOperationFields.append(calStack[j-1].clone()); cboOperationFields4Str.append(calStack[j-1].clone()); } //if(properties.kind.value == 'String'){ for(var j=calStackFields4DateCount; j>0; j--){ cboOperationFields4Str.append(calStackFields4Date[j-1].clone()); } //} for(var j=calStackFields4DateCount; j>0; j--){ cboOperationFields4Date.append(calStackFields4Date[j-1].clone()); cboOperationFields4DateStr.append(calStackFields4Date[j-1].clone()); } for(var j=calStackCount4Date; j>0; j--){ cboOperationField1.append(calStack4Date[j-1].clone()); } } if(level == 0){ cboOperationFields.append($('')); cboOperationFields.append($('')); cboOperationFields.append($('')); cboOperationFields4Str.append($('')); cboOperationField1.append($('')); cboOperationFields4Date.append($('')); // number kind if(cboOperationFields.length > 1){ i = 0; _.each(cboOperationFields, function(item){ $(item).val(cboOperationFieldVals[i]).trigger('change'); i ++; }); }else{ cboOperationFields.val(cboOperationFieldVals[0]).trigger('change'); } // string kind if(cboOperationFields4Str.length > 1){ i = 0; _.each(cboOperationFields4Str, function(item){ $(item).val(cboOperationFields4StrVal[i]).trigger('change'); i ++; }); }else{ cboOperationFields4Str.val(cboOperationFields4StrVal[0]).trigger('change'); } /*if(cboOperationFields4DateStr.length > 1){ i = 0; _.each(cboOperationFields4DateStr, function(item){ $(item).val(cboOperationFields4DateStrVal[i]).trigger('change'); i ++; }); }else{ cboOperationFields4DateStr.val(cboOperationFields4DateStrVal[0]).trigger('change'); }*/ //cboOperationField1.val(cboOperationField1Val).trigger('change'); if(cboOperationField1.length > 1){ i = 0; _.each(cboOperationField1, function(item){ $(item).val(cboOperationField1Val[i]).trigger('change'); i ++; }); }else{ cboOperationField1.val(cboOperationField1Val[0]).trigger('change'); } //cboOperationFields4Date.val(cboOperationFields4DateVal).trigger('change'); if(cboOperationFields4Date.length > 1){ i = 0; _.each(cboOperationFields4Date, function(item){ $(item).val(cboOperationFields4DateVal[i]).trigger('change'); i ++; }); }else{ cboOperationFields4Date.val(cboOperationFields4DateVal[0]).trigger('change'); } } }; var addCboActionDestinationFillValue = function(controls, ctrlId){ var cboActionDestinationFillValue = $('.actionDestinationFillEditorValueField .cboActionDestinationFillValue'); var cboActionDestinationFillOtherValue = $('.actionDestinationFillEditorValueField .cboActionDestinationFillOtherValue'); var cboActionDestinationFillValueVals = []; var cboActionDestinationFillOtherValueVals = []; var i =0; if(cboActionDestinationFillValue.length > 1){ i = 0; _.each(cboActionDestinationFillValue, function(item){ cboActionDestinationFillValueVals[i] = $(item).val(); i ++; }); }else{ cboActionDestinationFillValueVals[0] = cboActionDestinationFillValue.val(); } if(cboActionDestinationFillOtherValue.length > 1){ i = 0; _.each(cboActionDestinationFillOtherValue, function(item){ cboActionDestinationFillOtherValueVals[i] = $(item).val(); i ++; }); }else{ cboActionDestinationFillOtherValueVals[0] = cboActionDestinationFillOtherValue.val(); } cboActionDestinationFillValue.empty(); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); appendUserVariableWithClass(cboActionDestinationFillValue); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); cboActionDestinationFillValue.append($('')); destinationFieldStack = []; destinationFieldStackCount = 0; findDestinationField(controls, ctrlId, 0, true); for(var j=destinationFieldStackCount; j>0; j--){ cboActionDestinationFillValue.append(destinationFieldStack[j-1].clone()); cboActionDestinationFillOtherValue.append(destinationFieldStack[j-1].clone()); } cboActionDestinationFillValue.append($('')); appendDistinationValue4SendRoute(); if(cboActionDestinationFillValue.length > 1){ i = 0; _.each(cboActionDestinationFillValue, function(item){ $(item).val(cboActionDestinationFillValueVals[i]).trigger('change'); i ++; }); }else{ cboActionDestinationFillValue.val(cboActionDestinationFillValueVals[0]).trigger('change'); } if(cboActionDestinationFillOtherValue.length > 1){ i = 0; _.each(cboActionDestinationFillOtherValue, function(item){ $(item).val(cboActionDestinationFillOtherValueVals[i]).trigger('change'); i ++; }); }else{ cboActionDestinationFillOtherValue.val(cboActionDestinationFillOtherValueVals[0]).trigger('change'); } }; var addCboOperationSumField = function(controls, level){ var cboOperationFields = $('.expressionValueField .cboOperationValue'); var cboOperationFields4Date = $('.expressionValueField4Date .cboOperationValue'); var cboOperationFieldVals = []; var cboOperationFieldVals4Date = []; var i =0; if(level == 0){ if(cboOperationFields.length > 1){ _.each(cboOperationFields, function(item){ cboOperationFieldVals[i] = $(item).val(); i ++; }); }else{ cboOperationFieldVals[0] = cboOperationFields.val(); } if(cboOperationFields4Date.length > 1){ _.each(cboOperationFields4Date, function(item){ cboOperationFieldVals4Date[i] = $(item).val(); i ++; }); }else{ cboOperationFieldVals4Date[0] = cboOperationFields4Date.val(); } cboOperationFields.empty(); cboOperationFields.append($('')); } calStack = []; calStackCount = 0; calStackFields4Date = []; calStackFields4DateCount = 0; calStack4Date = []; calStackCount4Date = 0; var end = findCalculateToNode(controls, properties.kind.value, properties.id.value, false); if(end){ for(var j=calStackFields4DateCount; j>0; j--){ cboOperationFields.append(calStackFields4Date[j-1].clone()); } } if(level == 0){ if(cboOperationFields.length > 1){ i = 0; _.each(cboOperationFields, function(item){ $(item).val(cboOperationFieldVals[i]).trigger('change'); i ++; }); }else{ cboOperationFields.val(cboOperationFieldVals[0]); } } }; if(type == CONST_CTRL_TYPE_INPUTCALCULATE){ $this.off('inputCalculate_kind_change_update').on('inputCalculate_kind_change_update', function(event){ var controlsTmp = extractRecurse($('.workspace:visible'), ''); addCboOperationField(controlsTmp, 0); addCboOperationSumField(controlsTmp, 0); addCboOperationCountField(controlsTmp, 0); addCboOperationPartDateField(controlsTmp, 0); }).trigger('inputCalculate_kind_change_update'); $this.off('inputCalculate_variable_change_update').on('inputCalculate_variable_change_update', function(event){ var controlsTmp = extractRecurse($('.workspace:visible'), ''); addCboOperationField(controlsTmp, 0); }); } if((isVersion(VERSION_ACTION_SET_DESTINATION_FIELD) && type == CONST_CTRL_TYPE_INPUTACTION) || (isVersion(VERSION_RETRIEVE_MODIFY_SET_DESTINATION_FIELD) && type == CONST_CTRL_TYPE_INPUTLOOKUP && properties.isRetrieve && properties.isRetrieve.value == true)){ addCboActionDestinationFillField(controls, properties.id.value); addCboActionDestinationFillValue(controls, properties.id.value); var $actionDestinationFillValue = $('.propertyList:visible').find('.actionDestinationFillEditorValueField'); $actionDestinationFillValue.find('.cboActionDestinationFillField').trigger('change'); } // CO-4087 Add Get address option to GPS location start loadLocationDestinationData(controls, properties); loadAddressData(controls, properties); // CO-4087 Add Get address option to GPS location end // CO-4485: Shippo Integration start loadShippingCombo(controls, properties); loadShippingDestinationCombo(controls, properties); // CO-4485: Shippo Integration end // CO-4561 Add Audit action to Action button start loadAuditInputQuestion(controls, properties); loadAuditDataLookup(controls, properties); loadAuditDestinationQuestion(controls, properties); // CO-4561 Add Audit action to Action button end // CO-4896: Add auto stamp image fields start loadImageAutoStampQuestion(controls, properties); // CO-4896: Add auto stamp image fields end // CO-4789:Add Retrieve form actions to action button start loadActionCloseNRetrieveCbo(controls, properties); // CO-4789:Add Retrieve form actions to action button end // CO-4022: Hide if start var addCboHideIfField = function(controls, ctrlId){ var cboControl = $('.hideIfField .cboHideIfField'); var cboVals = []; var i =0; if(cboControl.length > 1){ _.each(cboControl, function(item){ cboVals[i] = $(item).val(); i ++; }); }else{ cboVals[0] = cboControl.val(); } cboControl.empty(); cboControl.append($('')); appendUserVariable(undefined, cboControl, undefined); stack = []; stackPage = []; stackCount = 0; stackPageCount = 0; var acceptCtrlList = {}; acceptCtrlList[CONST_CTRL_TYPE_INPUT_TEXT] = true; acceptCtrlList[CONST_CTRL_TYPE_INPUTCALCULATE] = {kind: CONST_CTRL_KIND_STRING}; acceptCtrlList[CONST_CTRL_TYPE_INPUTLOOKUP] = true; acceptCtrlList[CONST_CTRL_TYPE_INPUTLOCATION] = true; var end = findNode(controls, ctrlId, false, true, acceptCtrlList); if(end){ for(var j=stackCount; j>0; j--){ cboControl.append(stack[j-1].clone()); } } if(cboControl.length > 1){ i = 0; _.each(cboControl, function(item){ $(item).val(cboVals[i]); i ++; }); }else{ cboControl.val(cboVals[0]); } }; var addCboRouteDistanceField = function(controls, ctrlId){ var cboControl = $('.routeDistance .routeDistanceField .editorSelect'); var cboVals = []; var i =0; if(cboControl.length > 1){ _.each(cboControl, function(item){ cboVals[i] = $(item).val(); i ++; }); }else{ cboVals[0] = cboControl.val(); } cboControl.empty(); cboControl.append($(''); repeatSourceStack = []; var end = findRepeatSourceCtrlToNode(controls, selectedCtrlId); if(end){ for(var j=repeatSourceStack.length; j>0; j--){ cboRepeatSource.append(repeatSourceStack[j-1].clone()); } } cboRepeatSource.val(cboRepeatSourceVal); return end; }; repeatSourceStack = []; var findRepeatSourceCtrlToNode = function(controls, selectedCtrlId, isGrid){ var addNode = false; var tmp = []; var i = 0; _.each(controls, function(control) { if(selectedCtrlId == control.id){ addNode = true; } if(addNode){ return false; } if(control.type == CONST_CTRL_TYPE_GROUP){ addNode = findRepeatSourceCtrlToNode(control.children, selectedCtrlId); }else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){ addNode = findRepeatSourceCtrlToNode(control.children, selectedCtrlId); }else if(control.type == CONST_CTRL_TYPE_CTRLPOD){ addNode = findRepeatSourceCtrlToNode(control.children, selectedCtrlId); }else if(control.type == CONST_CTRL_TYPE_CTRLINV){ addNode = findRepeatSourceCtrlToNode(control.children, selectedCtrlId); }else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){ addNode = findRepeatSourceCtrlToNode(control.children, selectedCtrlId); }else if(control.type == CONST_CTRL_TYPE_CTRLGRID){ addNode = findRepeatSourceCtrlToNode(control.children, selectedCtrlId, true); }else { if(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTTRENDS || control.type == CONST_CTRL_TYPE_INPUTCOUNTER){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; }else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE){ if(control.kind != undefined && control.kind == 'Number'){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } } } }); if(addNode || isGrid){ for(var j=i; j>0; j--){ repeatSourceStack[repeatSourceStack.length] = tmp[j-1]; } } return addNode; } $('.repValSourceEditor') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToRepeatSourceCbo(controls, properties.id.value); }) .trigger('InputSourceChange'); }; if(type == CONST_CTRL_TYPE_CTRLTABLE || type == CONST_CTRL_TYPE_CTRLSCHEDULE || type == CONST_CTRL_TYPE_CTRLPOD || type == CONST_CTRL_TYPE_CTRLINV){ var addQuestionToRowSourceCbo = function(controls, selectedCtrlId){ var cboRowSource = $('.rowValSourceEditor .editorSelect'); var cboRowSourceVal = cboRowSource.val(); cboRowSource.empty(); cboRowSource.append(''); rowSourceStack = []; var end = findRowSourceCtrlToNode(controls, selectedCtrlId); if(end){ for(var j=rowSourceStack.length; j>0; j--){ cboRowSource.append(rowSourceStack[j-1].clone()); } } cboRowSource.val(cboRowSourceVal); return end; }; rowSourceStack = []; var findRowSourceCtrlToNode = function(controls, selectedCtrlId, isGrid){ var addNode = false; var tmp = []; var i = 0; _.each(controls, function(control) { if(selectedCtrlId == control.id){ addNode = true; } if(addNode){ return false; } if(control.type == CONST_CTRL_TYPE_GROUP){ addNode = findRowSourceCtrlToNode(control.children, selectedCtrlId); }else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){ addNode = findRowSourceCtrlToNode(control.children, selectedCtrlId); }else if(control.type == CONST_CTRL_TYPE_CTRLPOD){ addNode = findRowSourceCtrlToNode(control.children, selectedCtrlId); }else if(control.type == CONST_CTRL_TYPE_CTRLINV){ addNode = findRowSourceCtrlToNode(control.children, selectedCtrlId); }else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){ addNode = findRowSourceCtrlToNode(control.children, selectedCtrlId); }else if(control.type == CONST_CTRL_TYPE_CTRLGRID){ addNode = findRowSourceCtrlToNode(control.children, selectedCtrlId, true); }else { if(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTTRENDS || control.type == CONST_CTRL_TYPE_INPUTCOUNTER){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; }else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE){ if(control.kind != undefined && control.kind == 'Number'){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } } } }); if(addNode || isGrid){ for(var j=i; j>0; j--){ rowSourceStack[rowSourceStack.length] = tmp[j-1]; } } return addNode; } $('.rowValSourceEditor') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToRowSourceCbo(controls, properties.id.value); }) .trigger('InputSourceChange'); }; transStack = []; var findTransCtrlToNode = function(controls, selectedCtrlId, type, isGrid){ var isSchedule = false; if(type && type.myIncludes('_schedule')){ isSchedule = true; type = type.replace('_schedule', ''); } var addNode = false; var tmp = []; var i = 0; _.each(controls, function(control) { if(selectedCtrlId == control.id){ if(isSchedule){ findTransCtrlToNode(control.children, selectedCtrlId, type + '_schedule', true); } addNode = true; } if(addNode){ return false; } if(control.type == CONST_CTRL_TYPE_GROUP){ if(type == CONST_CONTAINER_TYPE_REPEAT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } addNode = findTransCtrlToNode(control.children, selectedCtrlId, type); }else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){ if(control.type == CONST_CTRL_TYPE_CTRLTABLE && type == CONST_CONTAINER_TYPE_REPEAT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } addNode = findTransCtrlToNode(control.children, selectedCtrlId, type); }else if(control.type == CONST_CTRL_TYPE_CTRLPOD){ addNode = findTransCtrlToNode(control.children, selectedCtrlId, type); }else if(control.type == CONST_CTRL_TYPE_CTRLINV){ addNode = findTransCtrlToNode(control.children, selectedCtrlId, type); }else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){ addNode = findTransCtrlToNode(control.children, selectedCtrlId, type); }else if(control.type == CONST_CTRL_TYPE_CTRLGRID){ addNode = findTransCtrlToNode(control.children, selectedCtrlId, type, true); }else { if(type == 'Amount_INT'){ if(/*(control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind == 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind != 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind == 'Number') ||*/ (control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind != 'String' && control.kind != CONST_VALUE_DATE) || (control.type == CONST_CTRL_TYPE_INPUT_NUMERIC && control.kind != CONST_CTRL_KIND_DECIMAL && control.kind != CONST_CTRL_KIND_PERCENT) || control.type == CONST_CTRL_TYPE_INPUTTRENDS || control.type == CONST_CTRL_TYPE_INPUTCOUNTER){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Amount'){ if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind == 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind != 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind == 'Number') || (control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind != 'String' && control.kind != CONST_VALUE_DATE) || control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTTRENDS || control.type == CONST_CTRL_TYPE_INPUTCOUNTER){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Subtotal'){ if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind == 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind != 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind == 'Number') || control.type == CONST_CTRL_TYPE_INPUTCALCULATE || control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTTRENDS || control.type == CONST_CTRL_TYPE_INPUTCOUNTER){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Tax'){ if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind == 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind != 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind == 'Number') || control.type == CONST_CTRL_TYPE_INPUTCALCULATE || control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTTRENDS || control.type == CONST_CTRL_TYPE_INPUTCOUNTER){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Description'){ if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || (control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind == 'String') || control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Memo'){ if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Name'){ if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Phone'){ if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || control.type == CONST_CTRL_TYPE_INPUT_TEXT || (control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind != CONST_CTRL_KIND_DATE) || (control.type == CONST_CTRL_TYPE_INPUT_NUMERIC && control.kind != 'Decimal')){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'ReceiptEmail'){ if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind != 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind != 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind != 'Number') || control.type == CONST_CTRL_TYPE_INPUT_TEXT || control.type == CONST_CTRL_TYPE_INPUTEMAILREPORT || control.type == CONST_CTRL_TYPE_INPUTFAX || control.type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Email'){ if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind != 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind != 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind != 'Number') || control.type == CONST_CTRL_TYPE_INPUT_TEXT || control.type == CONST_CTRL_TYPE_INPUTEMAILREPORT || control.type == CONST_CTRL_TYPE_INPUTFAX || control.type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Invoice'){ if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || control.type == CONST_CTRL_TYPE_INPUT_TEXT || control.type == CONST_CTRL_TYPE_INPUTCALCULATE || control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTNUMBERING){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == CONST_DISPATCHSTATUS){ if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || control.type == CONST_CTRL_TYPE_INPUT_TEXT || control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTDATE || (control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind !== CONST_VALUE_DATE) || control.type == CONST_CTRL_TYPE_INPUTSELECTONE){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Date'){ if(isSchedule){ if(control.type == CONST_CTRL_TYPE_INPUTDATE && control.kind != CONST_VALUE_TIME){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else{ if(control.type == CONST_CTRL_TYPE_INPUTDATE){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } } }else if(type == 'Date Time'){ if(control.type == CONST_CTRL_TYPE_INPUTDATE && control.kind == CONST_VALUE_DATE_SPACE_TIME){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == CONST_TYPE_STATUS_TEXT){ if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUT_TEXT || control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || (control.type == CONST_CTRL_TYPE_INPUTCALCULATE && (control.kind == CONST_CTRL_KIND_STRING || control.kind == CONST_CTRL_KIND_NUMBER))){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == CONST_TYPE_TEXT){ if(control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == CONST_CONTAINER_TYPE_REPEAT){ //ignore question /*tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++;*/ }else if(type == CONST_TYPE_TEXT_WIDGET){ if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUT_TEXT || (control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind === 'String')){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } } } }); if(addNode || isGrid){ for(var j=i; j>0; j--){ transStack[transStack.length] = tmp[j-1]; } } return addNode; } transResultStack = []; var findResultCtrlFromNode = function(controls, selectedCtrlId, type, isStart_forgrid){ var addNode = false; var tmp = []; var i = 0; var start = false; if(isStart_forgrid){ start = true; } var skip = false; var endOfForm = true; _.each(controls, function(control) { if(skip){ return false; } if(!start){ if(control.type == CONST_CTRL_TYPE_GROUP){ if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){ skip = true; start = true; endOfForm = false; } }else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){ if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){ skip = true; start = true; endOfForm = false; } }else if(control.type == CONST_CTRL_TYPE_CTRLPOD){ if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){ skip = true; start = true; endOfForm = false; } }else if(control.type == CONST_CTRL_TYPE_CTRLINV){ if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){ skip = true; start = true; endOfForm = false; } }else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){ if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){ skip = true; start = true; endOfForm = false; } }else if(control.type == CONST_CTRL_TYPE_CTRLGRID){ if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){ skip = false; start = true; endOfForm = false; } } }else{ if(control.type == CONST_CTRL_TYPE_CTRLGRID){ if(findResultCtrlFromNode(control.children, selectedCtrlId, type, true)){ skip = false; start = true; endOfForm = false; } } } if(!skip){ if(start == false && selectedCtrlId == control.id){ start = true; }else{ if(start){ if(type == 'Amount'){ if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind == 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind == 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind == 'Number') || //control.type == CONST_CTRL_TYPE_INPUTCALCULATE || control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTTRENDS || control.type == CONST_CTRL_TYPE_INPUTCOUNTER){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Result'){ if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Trxid'){ if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'AmountCharged'){ if((control.type == CONST_CTRL_TYPE_INPUT_NUMERIC && control.kind == 'Decimal') || control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'TotalAmountPaid'){ if(control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || /*control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE ||*/ control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'TransactionClientId'){ if(/*control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE ||*/ control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } } } } } }); if(start){ for(var j=i; j>0; j--){ transResultStack[transResultStack.length] = tmp[j-1]; } } return start; } /* *Action button property name: “ProPay Amount” */ var addQuestionToPP_AmountCbo = function(controls, selectedCtrlId, properties){ var cboPP_Amount = $('#editor_imgActionParamPP_Amount .editorSelect'); var cboPP_AmountVal = cboPP_Amount.val(); cboPP_Amount.empty(); cboPP_Amount.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'Amount'); for(var j=transStack.length; j>0; j--){ cboPP_Amount.append(transStack[j-1].clone()); } cboPP_Amount.val(cboPP_AmountVal); cboPP_Amount.trigger('change'); }; /* *Action button property name: “ProPay Invoice” */ var addQuestionToPP_InvoiceCbo = function(controls, selectedCtrlId){ var cboPP_Invoice = $('#editor_imgActionParamPP_Invoice .editorSelect'); var cboPP_InvoiceVal = cboPP_Invoice.val(); cboPP_Invoice.empty(); cboPP_Invoice.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'Invoice'); for(var j=transStack.length; j>0; j--){ cboPP_Invoice.append(transStack[j-1].clone()); } cboPP_Invoice.val(cboPP_InvoiceVal); cboPP_Invoice.trigger('change'); }; /* *Action button property name: “ProPay amount charged” */ var addQuestionToPP_AmountChargedCbo = function(controls, selectedCtrlId){ var cboPP_AmountCharged = $('#property_amountCharged'); var cboPP_AmountChargedVal = cboPP_AmountCharged.val(); cboPP_AmountCharged.empty(); cboPP_AmountCharged.append(''); transResultStack = []; findResultCtrlFromNode(controls, selectedCtrlId, 'AmountCharged'); for(var j=transResultStack.length; j>0; j--){ cboPP_AmountCharged.append(transResultStack[j-1].clone()); } cboPP_AmountCharged.val(cboPP_AmountChargedVal); cboPP_AmountCharged.trigger('change'); }; /* *Action button property name: “MiPos tax” */ var addQuestionToMP_TaxCbo = function(controls, selectedCtrlId, properties){ var cboMP_Tax = $('#property_imgActionParamMP_Tax'); var cboMP_TaxVal = cboMP_Tax.val(); cboMP_Tax.empty(); cboMP_Tax.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'Tax'); for(var j=transStack.length; j>0; j--){ cboMP_Tax.append(transStack[j-1].clone()); } cboMP_Tax.val(cboMP_TaxVal); cboMP_Tax.trigger('change'); }; /* *Action button property name: “MiPos Description” */ var addQuestionToMP_DescriptionCbo = function(controls, selectedCtrlId, properties){ var cboMP_Description = $('#property_imgActionParamMP_Description'); var cboMP_DescriptionVal = cboMP_Description.val(); cboMP_Description.empty(); cboMP_Description.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'Description'); for(var j=transStack.length; j>0; j--){ cboMP_Description.append(transStack[j-1].clone()); } cboMP_Description.val(cboMP_DescriptionVal); cboMP_Description.trigger('change'); }; /* *Action button property name: “Square Total amount paid” */ var addQuestionToSquare_TotalAmountPaidCbo = function(controls, selectedCtrlId){ var cboSquare_TotalAmountPaid = $('#property_totalAmountPaid'); var cboSquare_TotalAmountPaidVal = cboSquare_TotalAmountPaid.val(); cboSquare_TotalAmountPaid.empty(); cboSquare_TotalAmountPaid.append(''); transResultStack = []; findResultCtrlFromNode(controls, selectedCtrlId, 'TotalAmountPaid'); for(var j=transResultStack.length; j>0; j--){ cboSquare_TotalAmountPaid.append(transResultStack[j-1].clone()); } cboSquare_TotalAmountPaid.val(cboSquare_TotalAmountPaidVal); cboSquare_TotalAmountPaid.trigger('change'); }; /* *Action button property name: “Transaction client id” */ var addQuestionToSquare_TransactionClientIdCbo = function(controls, selectedCtrlId){ var cboSquare_TransactionClientId = $('#property_transactionClientId'); var cboSquare_TransactionClientIdVal = cboSquare_TransactionClientId.val(); cboSquare_TransactionClientId.empty(); cboSquare_TransactionClientId.append(''); transResultStack = []; findResultCtrlFromNode(controls, selectedCtrlId, 'TransactionClientId'); for(var j=transResultStack.length; j>0; j--){ cboSquare_TransactionClientId.append(transResultStack[j-1].clone()); } cboSquare_TransactionClientId.val(cboSquare_TransactionClientIdVal); cboSquare_TransactionClientId.trigger('change'); }; /* *Action button property name: “ProPay Email” */ var addQuestionToPP_EmailCbo = function(controls, selectedCtrlId){ var cboPP_Email = $('#editor_imgActionParamPP_Email .editorSelect'); var cboPP_EmailVal = cboPP_Email.val(); cboPP_Email.empty(); cboPP_Email.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'Email'); for(var j=transStack.length; j>0; j--){ cboPP_Email.append(transStack[j-1].clone()); } cboPP_Email.val(cboPP_EmailVal); cboPP_Email.trigger('change'); }; /* *Action button property name: “MiPOS result combo” */ var addTextQuestionToDestinationCbo = function(cbo, controls, selectedCtrlId){ var cboVal = cbo.val(); cbo.empty(); cbo.append(''); transResultStack = []; findResultCtrlFromNode(controls, selectedCtrlId, 'Result'); for(var j=transResultStack.length; j>0; j--){ cbo.append(transResultStack[j-1].clone()); } cbo.val(cboVal); cbo.trigger('change'); }; if(type == CONST_CTRL_TYPE_INPUTGEOFENCE){ var addQuestionToGeoFenceCbo = function(controls, selectedCtrlId){ var cboDescriptionQuestion = $('li.descriptionQuestion .editorSelect'); var cboAddressQuestion = $('li.addressQuestion .editorSelect'); if(cboDescriptionQuestion.length > 0 || cboAddressQuestion.length > 0){ var cboDescriptionQuestionVal = cboDescriptionQuestion.val(); var cboAddressQuestionVal = cboAddressQuestion.val(); cboDescriptionQuestion.empty(); cboDescriptionQuestion.append(''); cboAddressQuestion.empty(); cboAddressQuestion.append(''); inputSourceStack = []; inputSourceStackCount = 0; inputSource = 'Text widget'; findInputSourceCtrlToNode(controls, selectedCtrlId, inputSource); for(var j=inputSourceStackCount; j>0; j--){ cboDescriptionQuestion.append(inputSourceStack[j-1].clone()); cboAddressQuestion.append(inputSourceStack[j-1].clone()); } cboDescriptionQuestion.val(cboDescriptionQuestionVal); cboDescriptionQuestion.trigger('change'); cboAddressQuestion.val(cboAddressQuestionVal); cboAddressQuestion.trigger('change'); } var cboLatQuestion = $('li.latQuestion .editorSelect'); var cboLonQuestion = $('li.lonQuestion .editorSelect'); var cboDurationMinQuestion = $('li.durationMinutesDes .editorSelect'); if(cboLatQuestion.length > 0 || cboLonQuestion.length > 0 || cboDurationMinQuestion.length > 0){ var cboLatQuestionVal = cboLatQuestion.val(); var cboLonQuestionVal = cboLonQuestion.val(); var cboDurationMinVal = cboDurationMinQuestion.val(); cboLatQuestion.empty(); cboLatQuestion.append(''); cboLonQuestion.empty(); cboLonQuestion.append(''); cboDurationMinQuestion.empty(); cboDurationMinQuestion.append(''); inputSourceStack = []; inputSourceStackCount = 0; inputSource = 'Numeric widget'; findInputSourceCtrlToNode(controls, selectedCtrlId, inputSource); for(var j=inputSourceStackCount; j>0; j--){ cboLatQuestion.append(inputSourceStack[j-1].clone()); cboLonQuestion.append(inputSourceStack[j-1].clone()); cboDurationMinQuestion.append(inputSourceStack[j-1].clone()); } cboLatQuestion.val(cboLatQuestionVal); cboLatQuestion.trigger('change'); cboLonQuestion.val(cboLonQuestionVal); cboLonQuestion.trigger('change'); cboDurationMinQuestion.val(cboDurationMinVal); cboDurationMinQuestion.trigger('change'); } var cboArrivedTimeDes = $('li.arrivedTimeDes .editorSelect'); var cboDepartedTimeDes = $('li.departedTimeDes .editorSelect'); if(cboArrivedTimeDes.length > 0 || cboDepartedTimeDes.length > 0){ var cboArrivedTimeDesVal = cboArrivedTimeDes.val(); var cboDepartedTimeDesVal = cboDepartedTimeDes.val(); cboArrivedTimeDes.empty(); cboArrivedTimeDes.append(''); cboDepartedTimeDes.empty(); cboDepartedTimeDes.append(''); inputSourceStack = []; inputSourceStackCount = 0; inputSource = 'DateTime widget'; findInputSourceCtrlToNode(controls, selectedCtrlId, inputSource); for(var j=inputSourceStackCount; j>0; j--){ cboArrivedTimeDes.append(inputSourceStack[j-1].clone()); cboDepartedTimeDes.append(inputSourceStack[j-1].clone()); } cboArrivedTimeDes.val(cboArrivedTimeDesVal); cboArrivedTimeDes.trigger('change'); cboDepartedTimeDes.val(cboDepartedTimeDesVal); cboDepartedTimeDes.trigger('change'); } }; $('ul.propertyList.inputGeofence').off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToGeoFenceCbo(controls, properties.id.value); }).trigger('InputSourceChange'); } if(type == CONST_CTRL_TYPE_INPUTACTION){ var addQuestionToJumpCbo = function(controls, selectedCtrlId, autoActionStampTrigger4Retrieve){ var cboAutoActionStampTrigger = $('#editorAutoActionStampTrigger .editorSelect'); // CO-2254 - Add question into dropdownlist var cboActionParamQues = $('#editorActionParamQues .editorSelect'); var cboPrintFields = $('.cboPrintField'); var cboPrintFiles = $('.cboPrintFile'); var cboActionParamPage = $('#editorActionParamPage .editorSelect'); var cboActionParamPrintPage = $('#editorActionParamPrintPage .editorSelect'); var cboAutoActionStampTriggerVal = cboAutoActionStampTrigger.val(); // CO-2254 - Add question into dropdownlist var cboActionParamQuesVal = cboActionParamQues.val(); var cboPrintFieldVals = []; var cboPrintFileVals = []; for(var i = 0; i' + lbl_sel_question + ''); // CO-2254 - Add question into dropdownlist cboActionParamQues.empty(); cboActionParamQues.append(''); cboPrintFields.empty(); cboPrintFields.append(''); cboPrintFiles.empty(); cboPrintFiles.append(''); cboActionParamPage.empty(); cboActionParamPage.append(''); cboActionParamPrintPage.empty(); cboActionParamPrintPage.append(''); if(isVersion(VERSION_ADD_OPTION_JTP)){ cboActionParamPage.append(''); cboActionParamPage.append(''); cboActionParamPage.append(''); cboActionParamPage.append(''); cboActionParamPage.append(''); cboActionParamPage.append(''); } stack = []; stackPage = []; stackTable = []; stackCount = 0; stackPageCount = 0; stackTableCount = 0; var end = findNode(controls, selectedCtrlId); if(end){ for(var j=stackCount; j>0; j--){ cboActionParamQues.append(stack[j-1].clone()); cboPrintFields.append(stack[j-1].clone()); cboPrintFiles.append(stack[j-1].clone()); if(!autoActionStampTrigger4Retrieve || autoActionStampTrigger4Retrieve == false){ cboAutoActionStampTrigger.append(stack[j-1].clone()); // CO-2254 - Add question into dropdownlist } } for(var j=stackTableCount; j>0; j--){ cboPrintFields.append(stackTable[j-1].clone()); } cboPrintFields.append(''); for(var j=stackPageCount; j>0; j--){ cboActionParamPage.append(stackPage[j-1].clone()); cboActionParamPrintPage.append(stackPage[j-1].clone()); } } if(autoActionStampTrigger4Retrieve == true){ stack = []; stackPage = []; stackCount = 0; stackPageCount = 0; var acceptCtrlList = {}; acceptCtrlList[CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE] = true; acceptCtrlList[CONST_CTRL_TYPE_INPUTLOOKUP] = {isRetrieve: true}; var end = findNode(controls, selectedCtrlId, true, true, acceptCtrlList); if(end){ for(var j=stackCount; j>0; j--){ cboAutoActionStampTrigger.append(stack[j-1].clone()); } } } cboAutoActionStampTrigger.val(cboAutoActionStampTriggerVal); // CO-2254 - Add question into dropdownlist cboActionParamQues.val(cboActionParamQuesVal); for(var i = 0; i') .attr(CONST_VALUE, controlGrd.id) .text(controlGrd.name); i++; } }); }else{ if(acceptCtrlList && !acceptCtrlList[control.type]){ }else{ if(parentPath == path){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } } } }); for(var j=i; j>0; j--){ stack[stackCount] = tmp[j-1]; stackCount++; } return true; } var addQuestionToJumpCboForOnClick = function(controls, actionProperties){ var cboActionParamQues = $('#editorActionParamQues .editorSelect'); var cboActionParamQuesVal = cboActionParamQues.val(); cboActionParamQues.empty(); cboActionParamQues.append(''); var selectedCtrlId = actionProperties.id.value; stack = []; stackCount = 0; var path = '/data'; var itemPath = getControlXPath(controls, "/data/", selectedCtrlId); var parentPath = ''; if(actionProperties.id.isInsideTheButtonGrid || actionProperties.id.isInsideTheGrid){ parentPath = '/data'; }else{ parentPath = itemPath.substr(0, itemPath.lastIndexOf("/")); } var end = findNodeForOnclick(controls, selectedCtrlId, path, parentPath, {inputText:true}); if(end){ for(var j=stackCount; j>0; j--){ cboActionParamQues.append(stack[j-1].clone()); } } cboActionParamQues.val(cboActionParamQuesVal); return end; }; var addQuestionToLocationCbo = function(controls, selectedCtrlId, inputSource){ var cboActionParamMapLatLongParam = $('#editorActionParamMapLatLongParam .editorSelect'); var cboActionParamMapLatLongParamVal = cboActionParamMapLatLongParam.val(); cboActionParamMapLatLongParam.empty(); cboActionParamMapLatLongParam.append(''); inputSourceStack = []; inputSourceStackCount = 0; findInputSourceCtrlToNode(controls, selectedCtrlId, inputSource); for(var j=inputSourceStackCount; j>0; j--){ cboActionParamMapLatLongParam.append(inputSourceStack[j-1].clone()); } cboActionParamMapLatLongParam.val(cboActionParamMapLatLongParamVal); cboActionParamMapLatLongParam.trigger('change'); }; var addQuestionToOpenWebPageCbo = function(controls, selectedCtrlId){ var cboOpenWebPage = $('#editorImgOpenWebPageQues .editorSelect'); var cboOpenWebPageVal = cboOpenWebPage.val(); cboOpenWebPage.empty(); if(isVersion(VERSION_CONSISTENCE_DROPDOWN)){ cboOpenWebPage.append(''); } inputSourceStack = []; inputSourceStackCount = 0; findInputSourceCtrlToNode(controls, selectedCtrlId, 'Text widget'); for(var j=inputSourceStackCount; j>0; j--){ cboOpenWebPage.append(inputSourceStack[j-1].clone()); } if(!isVersion(VERSION_CONSISTENCE_DROPDOWN)){ cboOpenWebPage.append(''); } cboOpenWebPage.val(cboOpenWebPageVal); cboOpenWebPage.trigger('change'); }; /* *Action button property name: “Transaction Amount” *Type: Numeric Decimal *Will be passed from a doForms Numeric, Calculation or Lookup (including ones in a Grid). */ var addQuestionToCCP_TransAmountCbo = function(controls, selectedCtrlId){ var cboCCP_TransAmount = $('#editorActionParamCCP_TransAmount .editorSelect'); var cboCCP_TransAmountVal = cboCCP_TransAmount.val(); cboCCP_TransAmount.empty(); cboCCP_TransAmount.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'Amount'); for(var j=transStack.length; j>0; j--){ cboCCP_TransAmount.append(transStack[j-1].clone()); } cboCCP_TransAmount.val(cboCCP_TransAmountVal); cboCCP_TransAmount.trigger('change'); }; /* *Action button property name: “Receipt Email Address(s)” *Type: Text String *Will be passed from a doForms Text or Lookup (including ones in a Grid) or an Email Widget “To Address”. */ var addQuestionToCCP_ReceiptEmailCbo = function(controls, selectedCtrlId){ var cboCCP_ReceiptEmail = $('#editorActionParamCCP_ReceiptEmail .editorSelect'); var cboCCP_ReceiptEmailVal = cboCCP_ReceiptEmail.val(); cboCCP_ReceiptEmail.empty(); cboCCP_ReceiptEmail.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'ReceiptEmail'); for(var j=transStack.length; j>0; j--){ cboCCP_ReceiptEmail.append(transStack[j-1].clone()); } cboCCP_ReceiptEmail.val(cboCCP_ReceiptEmailVal); cboCCP_ReceiptEmail.trigger('change'); }; /* *Action button property name: “Transaction Description” *Type: Text String *Will be passed from a doForms Text or Lookup (including ones in a Grid). */ var addQuestionToCCP_TransDescCbo = function(controls, selectedCtrlId){ var cboCCP_TransDesc = $('#editorActionParamCCP_TransDesc .editorSelect'); var cboCCP_TransDescVal = cboCCP_TransDesc.val(); cboCCP_TransDesc.empty(); cboCCP_TransDesc.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'Description'); for(var j=transStack.length; j>0; j--){ cboCCP_TransDesc.append(transStack[j-1].clone()); } cboCCP_TransDesc.val(cboCCP_TransDescVal); cboCCP_TransDesc.trigger('change'); }; /* *Action button property name: “Transaction Subtotal” *Type: Numeric Decimal *Will be passed from a doForms Numeric, Calculation or Lookup (including ones in a Grid). */ var addQuestionToFA_TransSubtotalCbo = function(controls, selectedCtrlId){ var cboFA_TransSubtotal = $('#editorPayment_TransSubtotal .editorSelect'); var cboFA_TransSubtotalVal = cboFA_TransSubtotal.val(); cboFA_TransSubtotal.empty(); cboFA_TransSubtotal.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'Subtotal'); for(var j=transStack.length; j>0; j--){ cboFA_TransSubtotal.append(transStack[j-1].clone()); } cboFA_TransSubtotal.val(cboFA_TransSubtotalVal); cboFA_TransSubtotal.trigger('change'); }; /* *Action button property name: “Receipt Email Address(s)” *Type: Text String *Will be passed from a doForms Text or Lookup (including ones in a Grid) or an Email Widget “To Address”. */ var addQuestionToFA_ReceiptEmailCbo = function(controls, selectedCtrlId){ var cboFA_ReceiptEmail = $('#editorPayment_ReceiptEmail .editorSelect'); var cboFA_ReceiptEmailVal = cboFA_ReceiptEmail.val(); cboFA_ReceiptEmail.empty(); cboFA_ReceiptEmail.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'ReceiptEmail'); for(var j=transStack.length; j>0; j--){ cboFA_ReceiptEmail.append(transStack[j-1].clone()); } cboFA_ReceiptEmail.val(cboFA_ReceiptEmailVal); cboFA_ReceiptEmail.trigger('change'); }; /* *Action button property name: “Transaction Memo” *Type: Text String *Will be passed from a doForms Text or Lookup (including ones in a Grid). */ var addQuestionToFA_TransMemoCbo = function(controls, selectedCtrlId){ var cboFA_TransMemo = $('#editorPayment_TransMemo .editorSelect'); var cboFA_TransMemoVal = cboFA_TransMemo.val(); cboFA_TransMemo.empty(); cboFA_TransMemo.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'Memo'); for(var j=transStack.length; j>0; j--){ cboFA_TransMemo.append(transStack[j-1].clone()); } cboFA_TransMemo.val(cboFA_TransMemoVal); cboFA_TransMemo.trigger('change'); }; /* *Action button property name: “Transaction Name” *Type: Text String *Will be passed from a doForms Text or Lookup (including ones in a Grid). */ var addQuestionToFA_NameCbo = function(controls, selectedCtrlId){ var cboFA_Name = $('#editorPayment_Name .editorSelect'); var cboFA_NameVal = cboFA_Name.val(); cboFA_Name.empty(); cboFA_Name.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'Name'); for(var j=transStack.length; j>0; j--){ cboFA_Name.append(transStack[j-1].clone()); } cboFA_Name.val(cboFA_NameVal); cboFA_Name.trigger('change'); }; /* *Action button property name: “Transaction Phone” *Type: Text String *Will be passed from a doForms Text or Lookup (including ones in a Grid). */ var addQuestionToFA_PhoneCbo = function(controls, selectedCtrlId){ var cboFA_Phone = $('#editorPayment_Phone .editorSelect'); var cboFA_PhoneVal = cboFA_Phone.val(); cboFA_Phone.empty(); cboFA_Phone.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'Phone'); for(var j=transStack.length; j>0; j--){ cboFA_Phone.append(transStack[j-1].clone()); } cboFA_Phone.val(cboFA_PhoneVal); cboFA_Phone.trigger('change'); }; /* *Action button property name: “Tax” *Type: Text String *Will be passed from a doForms Numeric, Calculation or Lookup (including ones in a Grid). */ var addQuestionToFA_TaxCbo = function(controls, selectedCtrlId){ var cboFA_Tax = $('#editorPayment_Tax .editorSelect'); var cboFA_TaxVal = cboFA_Tax.val(); cboFA_Tax.empty(); cboFA_Tax.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'Tax'); for(var j=transStack.length; j>0; j--){ cboFA_Tax.append(transStack[j-1].clone()); } cboFA_Tax.val(cboFA_TaxVal); cboFA_Tax.trigger('change'); }; /* *Action button property name: “Result trxid” *Type: Text String *Will be passed from a doForms Text (including ones in a Grid). */ var addQuestionToFA_TrxidCbo = function(controls, selectedCtrlId){ var cboFA_Trxid = $('#editorPayment_Trxid .editorSelect'); var cboFA_TrxidVal = cboFA_Trxid.val(); cboFA_Trxid.empty(); cboFA_Trxid.append(''); transResultStack = []; findResultCtrlFromNode(controls, selectedCtrlId, 'Trxid'); for(var j=transResultStack.length; j>0; j--){ cboFA_Trxid.append(transResultStack[j-1].clone()); } cboFA_Trxid.val(cboFA_TrxidVal); cboFA_Trxid.trigger('change'); }; /* *Action button property name: “Result amount *Type: Text String *Will be passed from a doForms Text (including ones in a Grid). */ var addQuestionToFA_Result_AmountCbo = function(controls, selectedCtrlId){ var cboFA_Result_Amount = $('#editorPayment_Result_Amount .editorSelect'); var cboFA_Result_AmountVal = cboFA_Result_Amount.val(); cboFA_Result_Amount.empty(); cboFA_Result_Amount.append(''); transResultStack = []; findResultCtrlFromNode(controls, selectedCtrlId, 'Amount'); for(var j=transResultStack.length; j>0; j--){ cboFA_Result_Amount.append(transResultStack[j-1].clone()); } cboFA_Result_Amount.val(cboFA_Result_AmountVal); cboFA_Result_Amount.trigger('change'); }; $('#property_imgActionParamDesQues').off('InputSourceChange') .on('InputSourceChange', function(event){ var actCtrlVal = $('#property_imgAction').val(); switch(actCtrlVal){ case CONST_ACTION_ONCLICK: addQuestionToJumpCboForOnClick(controls, properties); break; case CONST_ACTION_JUMP_TO_QUES: case CONST_ACTION_JUMP_TO_PAGE: case CONST_ACTION_PRINT_MOBILE: case CONST_ACTION_ZEBRA_PRINT: addQuestionToJumpCbo(controls, properties.id.value); loadPTouchCbo(controls, properties); break; } }).trigger('InputSourceChange'); // CO-2254 $('#property_autoActionStampQuestionTrigger').off('InputSourceChange') .on('InputSourceChange', function(event){ var actCtrlVal = $('#property_autoActionStampTrigger').val(); switch(actCtrlVal){ case '2': // CO-2254 addQuestionToJumpCbo(controls, properties.id.value); loadPTouchCbo(controls, properties); break; case CONST_AUTO_RUN_WHEN_RETRIEVE_HAS_DATA: case CONST_AUTO_RUN_WHEN_RETRIEVE_HAS_NO_DATA: addQuestionToJumpCbo(controls, properties.id.value, true); loadPTouchCbo(controls, properties); break; } }).trigger('InputSourceChange'); var inputSourceValue = $('#property_imgActionParamMapInputSourceParam').val(); if(!isVersion(VERSION_GMAP_REMOVE_INPUT_SRC)){ $('#property_imgActionParamMapInputSourceParam') .off('InputSourceChange') .on('InputSourceChange', function(event, inputSource){ addQuestionToLocationCbo(controls, properties.id.value, inputSource); }) .trigger('InputSourceChange', inputSourceValue); }else{ var actCtrlMapVal = $('#property_imgActionParamMap').val(); $('#property_imgActionParamMapLatLongParam') .off('DataSourceChange') .on('DataSourceChange', function(event, actCtrlMapVal){ //addQuestionToLocationCbo(controls, properties.id.value, actCtrlMapVal); addQuestionToLocationCbo(controls, properties.id.value, 'Lat/Lon'); }) .trigger('DataSourceChange', actCtrlMapVal); } if(isVersion(VERSION_OPEN_WEB_PAGE_NEW)){ $('#property_imgActionParamDesQues') .off('DataSourceChange') .on('DataSourceChange', function(event){ addQuestionToOpenWebPageCbo(controls, properties.id.value); }) .trigger('DataSourceChange'); } $('#property_imgActionParamCCP_TransAmount') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToCCP_TransAmountCbo(controls, properties.id.value); }) .trigger('InputSourceChange'); $('#property_imgActionParamCCP_TransDesc') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToCCP_TransDescCbo(controls, properties.id.value); }) .trigger('InputSourceChange'); $('#property_imgActionParamCCP_ReceiptEmail') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToCCP_ReceiptEmailCbo(controls, properties.id.value); }) .trigger('InputSourceChange'); $('#property_imgActionParamFA_TransSubtotal') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToFA_TransSubtotalCbo(controls, properties.id.value); if(properties.imgActionParamFA_Phone && properties.imgActionParamFA_Phone.value != ''){ $(".imgActionParamFA_TransSubtotal select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false); $(".imgActionParamFA_TransSubtotal select option[value*='" + properties.imgActionParamFA_Phone.value + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true); } }) .change(function(){ $(".imgActionParamFA_Phone select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false); if($(this).val() != ""){ $(".imgActionParamFA_Phone select option[value*='" + $(this).val() + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true); } }) .trigger('InputSourceChange'); $('#property_imgActionParamFA_TransMemo') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToFA_TransMemoCbo(controls, properties.id.value); }) .trigger('InputSourceChange'); $('#property_imgActionParamFA_ReceiptEmail') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToFA_ReceiptEmailCbo(controls, properties.id.value); }) .trigger('InputSourceChange'); $('#property_imgActionParamFA_Name') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToFA_NameCbo(controls, properties.id.value); }) .trigger('InputSourceChange'); $('#property_imgActionParamFA_Phone') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToFA_PhoneCbo(controls, properties.id.value); if(properties.imgActionParamFA_Phone && properties.imgActionParamFA_TransSubtotal && properties.imgActionParamFA_Phone.value == properties.imgActionParamFA_TransSubtotal.value){ $(this).val('').change(); } if(properties.imgActionParamFA_TransSubtotal && properties.imgActionParamFA_TransSubtotal.value != ''){ $(".imgActionParamFA_Phone select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false); $(".imgActionParamFA_Phone select option[value*='" + properties.imgActionParamFA_TransSubtotal.value + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true); } }) .change(function(){ $(".imgActionParamFA_TransSubtotal select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false); if($(this).val() != ""){ $(".imgActionParamFA_TransSubtotal select option[value*='" + $(this).val() + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true); } }) .trigger('InputSourceChange'); $('#property_imgActionParamFA_Tax') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToFA_TaxCbo(controls, properties.id.value); }) .trigger('InputSourceChange'); /*$('#property_imgActionParamFA_Result') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToFA_ResultCbo(controls, properties.id.value); }) .trigger('InputSourceChange');*/ $('#property_imgActionParamFA_Trxid') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToFA_TrxidCbo(controls, properties.id.value); if(properties.imgActionParamFA_Result_Amount && properties.imgActionParamFA_Result_Amount.value != ''){ $(".imgActionParamFA_Trxid select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false); $(".imgActionParamFA_Trxid select option[value*='" + properties.imgActionParamFA_Result_Amount.value + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true); } }) .change(function(){ $(".imgActionParamFA_Result_Amount select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false); if($(this).val() != ""){ $(".imgActionParamFA_Result_Amount select option[value*='" + $(this).val() + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true); } }) .trigger('InputSourceChange'); $('#property_imgActionParamFA_Result_Amount') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToFA_Result_AmountCbo(controls, properties.id.value); if(properties.imgActionParamFA_Result_Amount && properties.imgActionParamFA_Trxid && properties.imgActionParamFA_Result_Amount.value == properties.imgActionParamFA_Trxid.value){ $(this).val('').change(); } if(properties.imgActionParamFA_Trxid && properties.imgActionParamFA_Trxid.value != ''){ $(".imgActionParamFA_Result_Amount select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false); $(".imgActionParamFA_Result_Amount select option[value*='" + properties.imgActionParamFA_Trxid.value + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true); } }) .change(function(){ $(".imgActionParamFA_Trxid select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false); if($(this).val() != ""){ $(".imgActionParamFA_Trxid select option[value*='" + $(this).val() + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true); } }) .trigger('InputSourceChange'); var addQuestionToMobileNumberCtrlCbo = function(controls, selectedCtrlId){ var cboMobileNumberCtrl = $('#editor_imgActionMobileNumberCtrl .editorSelect'); var cboMobileNumberCtrlVal = cboMobileNumberCtrl.val(); cboMobileNumberCtrl.empty(); cboMobileNumberCtrl.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'Phone'); for(var j=transStack.length; j>0; j--){ cboMobileNumberCtrl.append(transStack[j-1].clone()); } cboMobileNumberCtrl.val(cboMobileNumberCtrlVal); cboMobileNumberCtrl.trigger('change'); }; var addQuestionToMessageCtrlCbo = function(controls, selectedCtrlId){ var cboMobileNumberCtrl = $('#editor_imgActionMessageCtrl .editorSelect'); var cboMobileNumberCtrlVal = cboMobileNumberCtrl.val(); cboMobileNumberCtrl.empty(); cboMobileNumberCtrl.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'Phone'); for(var j=transStack.length; j>0; j--){ cboMobileNumberCtrl.append(transStack[j-1].clone()); } cboMobileNumberCtrl.val(cboMobileNumberCtrlVal); cboMobileNumberCtrl.trigger('change'); }; $('#property_imgActionMobileNumberCtrl') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToMobileNumberCtrlCbo(controls, properties.id.value); if(!isVersion(VERSION_CONSISTENCE_DROPDOWN)){ if(properties.imgActionMobileNumberCtrl && properties.imgActionMobileNumberCtrl.value != ''){ $('#editor_imgActionMobileNumber').addClass(CONST_CSS_CLASS_HIDE_SESSION); }else{ if($(this).parents('.hideSession').length > 0){ $('#editor_imgActionMobileNumber').addClass(CONST_CSS_CLASS_HIDE_SESSION); }else{ $('#editor_imgActionMobileNumber').removeClass(CONST_CSS_CLASS_HIDE_SESSION); } } } }) .change(function(){ if(!isVersion(VERSION_CONSISTENCE_DROPDOWN)){ if($(this).val() != ""){ $('#editor_imgActionMobileNumber').addClass(CONST_CSS_CLASS_HIDE_SESSION); }else{ if($(this).parents('.hideSession').length > 0){ $('#editor_imgActionMobileNumber').addClass(CONST_CSS_CLASS_HIDE_SESSION); }else{ $('#editor_imgActionMobileNumber').removeClass(CONST_CSS_CLASS_HIDE_SESSION); } } } }) .trigger('InputSourceChange'); $('#property_imgActionMessageCtrl') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToMessageCtrlCbo(controls, properties.id.value); }) .trigger('InputSourceChange'); var addQuestionToStausCtrlCbo = function(controls, selectedCtrlId){ var cboStatusCtrl = $('#editor_imgActionStatusCtrl .editorSelect'); var cboStatusCtrlVal = cboStatusCtrl.val(); cboStatusCtrl.empty(); cboStatusCtrl.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, CONST_DISPATCHSTATUS); for(var j=transStack.length; j>0; j--){ cboStatusCtrl.append(transStack[j-1].clone()); } cboStatusCtrl.val(cboStatusCtrlVal); cboStatusCtrl.trigger('change'); }; $('#property_imgActionStatusCtrl') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToStausCtrlCbo(controls, properties.id.value); if(isVersion(VERSION_CONSISTENCE_DROPDOWN)){ }else{ var actCtrlVal = $('#property_imgAction').val(); if(actCtrlVal == CONST_ACTION_SEND_STATUS){ if(properties.imgActionStatusCtrl && properties.imgActionStatusCtrl.value != ''){ $('#editorActionParam').addClass(CONST_CSS_CLASS_HIDE_SESSION); }else{ if($(this).parents('.hideSession').length > 0){ $('#editorActionParam').addClass(CONST_CSS_CLASS_HIDE_SESSION); }else{ $('#editorActionParam').removeClass(CONST_CSS_CLASS_HIDE_SESSION); } } } } }) .change(function(){ if(isVersion(VERSION_CONSISTENCE_DROPDOWN)){ }else{ var actCtrlVal = $('#property_imgAction').val(); if(actCtrlVal == CONST_ACTION_SEND_STATUS){ if($(this).val() != ""){ $('#editorActionParam').addClass(CONST_CSS_CLASS_HIDE_SESSION); }else{ if($(this).parents('.hideSession').length > 0){ $('#editorActionParam').addClass(CONST_CSS_CLASS_HIDE_SESSION); }else{ $('#editorActionParam').removeClass(CONST_CSS_CLASS_HIDE_SESSION); } } } } }) .trigger('InputSourceChange'); var addQuestionToCtrlCbo = function(cboCtrl, controls, selectedCtrlId, type, isAppendConstant){ var cboCtrlVal = cboCtrl.val(); cboCtrl.empty(); cboCtrl.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, type); for(var j=transStack.length; j>0; j--){ cboCtrl.append(transStack[j-1].clone()); } if(isAppendConstant){ cboCtrl.append(''); } cboCtrl.val(cboCtrlVal); cboCtrl.trigger('change'); }; if(isVersion(VERSION_SET_STATUS_TO_GPS)){ addQuestionToCtrlCbo($('li.statusTextQuestion .editorSelect'), controls, properties.id.value, CONST_TYPE_STATUS_TEXT); } if(isVersion(VERSION_IOS_APP_SELECT_OPTION)){ addQuestionToCtrlCbo($('li.iOSApp .editorSelect'), controls, properties.id.value, CONST_TYPE_TEXT_WIDGET, true); } addNumberOfCopyField(controls, properties); } var addCboWeekEndingDateField = function(controls, ctrlId, level){ var cboWeekEndingDateField = $('li.weekEndingDateType #property_weekEndingDateField'); var cboWeekEndingDateFieldVal = ''; var i =0; if(level == 0){ cboWeekEndingDateFieldVal = cboWeekEndingDateField.val(); } if(level == 0){ cboWeekEndingDateField.empty(); cboWeekEndingDateField.append($(''); stack = []; stackPage = []; stackCount = 0; stackPageCount = 0; var end = findNode(controls, selectedCtrlId); if(end){ for(var j=stackCount; j>0; j--){ cboAutoActionStampTrigger.append(stack[j-1].clone()); } } cboAutoActionStampTrigger.val(cboAutoActionStampTriggerVal); return end; }; $('#property_autoActionStampQuestionTriggerRetrieve').off('InputSourceChange') .on('InputSourceChange', function(event){ var actCtrlVal = $('#property_autoActionStampTriggerRetrieve').val(); switch(actCtrlVal){ case lbl_action_select_a_trigger: //$('.propertiesPaneContent .hideRetrieveButtonAuto').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertiesPaneContent li.hideRetrieveButton').css('padding-top','5px'); break; case '2': addQuestionToJumpCbo(controls, properties.id.value); loadPTouchCbo(controls, properties); break; } }); if(properties.isRetrieve && properties.isRetrieve.value){ $('#property_autoActionStampQuestionTriggerRetrieve').trigger('InputSourceChange'); }else{ $('.propertiesPaneContent .autoRunGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION); } var addQuestionToModifyTrigger = function(controls, selectedCtrlId){ var cboAutoActionStampTrigger = $('#editorAutoActionStampTriggerModify .editorSelect'); var cboAutoActionStampTriggerVal = cboAutoActionStampTrigger.val(); cboAutoActionStampTrigger.empty(); cboAutoActionStampTrigger.append(''); stack = []; stackPage = []; stackCount = 0; stackPageCount = 0; var end = findNode(controls, selectedCtrlId); if(end){ for(var j=stackCount; j>0; j--){ cboAutoActionStampTrigger.append(stack[j-1].clone()); } } cboAutoActionStampTrigger.val(cboAutoActionStampTriggerVal); return end; }; $('#property_autoActionStampQuestionTriggerModify').off('InputSourceChange') .on('InputSourceChange', function(event){ var actCtrlVal = $('#property_autoActionStampTriggerModify').val(); switch(actCtrlVal){ case '2': addQuestionToModifyTrigger(controls, properties.id.value); break; } }); if(properties.isModifyOnly && properties.isModifyOnly.value){ $('#property_autoActionStampQuestionTriggerModify').trigger('InputSourceChange'); } } if(type == CONST_CTRL_TYPE_INPUTACTION || type == CONST_CTRL_TYPE_INPUTNEWPAYMENT){ $('#property_imgActionParamPP_Amount') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToPP_AmountCbo(controls, properties.id.value, properties); }) .trigger('InputSourceChange'); $('#property_imgActionParamPP_Invoice') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToPP_InvoiceCbo(controls, properties.id.value); }) .trigger('InputSourceChange'); $('#property_imgActionParamPP_Email') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToPP_EmailCbo(controls, properties.id.value); }) .trigger('InputSourceChange'); $('#property_imgActionParamMP_Tax') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToMP_TaxCbo(controls, properties.id.value, properties); }) .trigger('InputSourceChange'); $('#property_imgActionParamMP_Description') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToMP_DescriptionCbo(controls, properties.id.value, properties); }) .trigger('InputSourceChange'); $('#property_cardholderName') .off('InputSourceChange') .on('InputSourceChange', function(event){ addTextQuestionToDestinationCbo($(this), controls, properties.id.value, properties); }) .trigger('InputSourceChange'); $('#property_cardNumber') .off('InputSourceChange') .on('InputSourceChange', function(event){ addTextQuestionToDestinationCbo($(this), controls, properties.id.value, properties); }) .trigger('InputSourceChange'); $('#property_authorizatioCode') .off('InputSourceChange') .on('InputSourceChange', function(event){ addTextQuestionToDestinationCbo($(this), controls, properties.id.value, properties); }) .trigger('InputSourceChange'); $('#property_paymentMethod') .off('InputSourceChange') .on('InputSourceChange', function(event){ addTextQuestionToDestinationCbo($(this), controls, properties.id.value, properties); }) .trigger('InputSourceChange'); $('#property_referenceNumber') .off('InputSourceChange') .on('InputSourceChange', function(event){ addTextQuestionToDestinationCbo($(this), controls, properties.id.value, properties); }) .trigger('InputSourceChange'); } if(type == CONST_CTRL_TYPE_INPUTNEWPAYMENT){ $('#property_amountCharged') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToPP_AmountChargedCbo(controls, properties.id.value); }) .trigger('InputSourceChange'); $('#property_totalAmountPaid') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToSquare_TotalAmountPaidCbo(controls, properties.id.value); }) .trigger('InputSourceChange'); $('#property_transactionClientId') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToSquare_TransactionClientIdCbo(controls, properties.id.value); }) .trigger('InputSourceChange'); } if(type == CONST_CTRL_TYPE_INPUTPAYMENT){ /* *Action button property name: “Transaction Subtotal” *Type: Numeric Decimal *Will be passed from a doForms Numeric, Calculation or Lookup (including ones in a Grid). */ var addQuestionToPayment_TransSubtotalCbo = function(controls, selectedCtrlId){ var cboFA_TransSubtotal = $('#editorPayment_TransSubtotal .editorSelect'); var cboFA_TransSubtotalVal = cboFA_TransSubtotal.val(); cboFA_TransSubtotal.empty(); cboFA_TransSubtotal.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'Subtotal'); for(var j=transStack.length; j>0; j--){ cboFA_TransSubtotal.append(transStack[j-1].clone()); } cboFA_TransSubtotal.val(cboFA_TransSubtotalVal); cboFA_TransSubtotal.trigger('change'); }; /* *Action button property name: “Receipt Email Address(s)” *Type: Text String *Will be passed from a doForms Text or Lookup (including ones in a Grid) or an Email Widget “To Address”. */ var addQuestionToFA_ReceiptEmailCbo = function(controls, selectedCtrlId){ var cboFA_ReceiptEmail = $('#editorPayment_ReceiptEmail .editorSelect'); var cboFA_ReceiptEmailVal = cboFA_ReceiptEmail.val(); cboFA_ReceiptEmail.empty(); cboFA_ReceiptEmail.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'ReceiptEmail'); for(var j=transStack.length; j>0; j--){ cboFA_ReceiptEmail.append(transStack[j-1].clone()); } cboFA_ReceiptEmail.val(cboFA_ReceiptEmailVal); cboFA_ReceiptEmail.trigger('change'); }; /* *Action button property name: “Transaction Memo” *Type: Text String *Will be passed from a doForms Text or Lookup (including ones in a Grid). */ var addQuestionToFA_TransMemoCbo = function(controls, selectedCtrlId){ var cboFA_TransMemo = $('#editorPayment_TransMemo .editorSelect'); var cboFA_TransMemoVal = cboFA_TransMemo.val(); cboFA_TransMemo.empty(); cboFA_TransMemo.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'Memo'); for(var j=transStack.length; j>0; j--){ cboFA_TransMemo.append(transStack[j-1].clone()); } cboFA_TransMemo.val(cboFA_TransMemoVal); cboFA_TransMemo.trigger('change'); }; /* *Action button property name: “Transaction Name” *Type: Text String *Will be passed from a doForms Text or Lookup (including ones in a Grid). */ var addQuestionToFA_NameCbo = function(controls, selectedCtrlId){ var cboFA_Name = $('#editorPayment_Name .editorSelect'); var cboFA_NameVal = cboFA_Name.val(); cboFA_Name.empty(); cboFA_Name.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'Name'); for(var j=transStack.length; j>0; j--){ cboFA_Name.append(transStack[j-1].clone()); } cboFA_Name.val(cboFA_NameVal); cboFA_Name.trigger('change'); }; /* *Action button property name: “Transaction Phone” *Type: Text String *Will be passed from a doForms Text or Lookup (including ones in a Grid). */ var addQuestionToPayment_PhoneCbo = function(controls, selectedCtrlId){ var cboFA_Phone = $('#editorPayment_Phone .editorSelect'); var cboFA_PhoneVal = cboFA_Phone.val(); cboFA_Phone.empty(); cboFA_Phone.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'Phone'); for(var j=transStack.length; j>0; j--){ cboFA_Phone.append(transStack[j-1].clone()); } cboFA_Phone.val(cboFA_PhoneVal); cboFA_Phone.trigger('change'); }; /* *Action button property name: “Tax” *Type: Text String *Will be passed from a doForms Numeric, Calculation or Lookup (including ones in a Grid). */ var addQuestionToFA_TaxCbo = function(controls, selectedCtrlId){ var cboFA_Tax = $('#editorPayment_Tax .editorSelect'); var cboFA_TaxVal = cboFA_Tax.val(); cboFA_Tax.empty(); cboFA_Tax.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, 'Tax'); for(var j=transStack.length; j>0; j--){ cboFA_Tax.append(transStack[j-1].clone()); } cboFA_Tax.val(cboFA_TaxVal); cboFA_Tax.trigger('change'); }; /* *Action button property name: “Result trxid” *Type: Text String *Will be passed from a doForms Text (including ones in a Grid). */ var addQuestionToPayment_TrxidCbo = function(controls, selectedCtrlId){ var cboFA_Trxid = $('#editorPayment_Trxid .editorSelect'); var cboFA_TrxidVal = cboFA_Trxid.val(); cboFA_Trxid.empty(); cboFA_Trxid.append(''); transResultStack = []; findResultCtrlFromNode(controls, selectedCtrlId, 'Trxid'); for(var j=transResultStack.length; j>0; j--){ cboFA_Trxid.append(transResultStack[j-1].clone()); } cboFA_Trxid.val(cboFA_TrxidVal); cboFA_Trxid.trigger('change'); }; /* *Action button property name: “Result amount *Type: Text String *Will be passed from a doForms Text (including ones in a Grid). */ var addQuestionToPayment_Result_AmountCbo = function(controls, selectedCtrlId){ var cboFA_Result_Amount = $('#editorPayment_Result_Amount .editorSelect'); var cboFA_Result_AmountVal = cboFA_Result_Amount.val(); cboFA_Result_Amount.empty(); cboFA_Result_Amount.append(''); transResultStack = []; findResultCtrlFromNode(controls, selectedCtrlId, 'Amount'); for(var j=transResultStack.length; j>0; j--){ cboFA_Result_Amount.append(transResultStack[j-1].clone()); } cboFA_Result_Amount.val(cboFA_Result_AmountVal); cboFA_Result_Amount.trigger('change'); }; transStack = []; var findTransCtrlToNode = function(controls, selectedCtrlId, type, isGrid){ var addNode = false; var tmp = []; var i = 0; _.each(controls, function(control) { if(selectedCtrlId == control.id){ addNode = true; } if(addNode){ return false; } if(control.type == CONST_CTRL_TYPE_GROUP){ if(type == CONST_CONTAINER_TYPE_REPEAT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } addNode = findTransCtrlToNode(control.children, selectedCtrlId, type); }else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){ if(control.type == CONST_CTRL_TYPE_CTRLTABLE && type == CONST_CONTAINER_TYPE_REPEAT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } addNode = findTransCtrlToNode(control.children, selectedCtrlId, type); }else if(control.type == CONST_CTRL_TYPE_CTRLPOD){ addNode = findTransCtrlToNode(control.children, selectedCtrlId, type); }else if(control.type == CONST_CTRL_TYPE_CTRLINV){ addNode = findTransCtrlToNode(control.children, selectedCtrlId, type); }else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){ addNode = findTransCtrlToNode(control.children, selectedCtrlId, type); }else if(control.type == CONST_CTRL_TYPE_CTRLGRID){ addNode = findTransCtrlToNode(control.children, selectedCtrlId, type, true); }else { if(type == 'Amount'){ if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind == 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind == 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind == 'Number') || (control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind != 'String' && control.kind != CONST_VALUE_DATE) || control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTTRENDS || control.type == CONST_CTRL_TYPE_INPUTCOUNTER){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Subtotal'){ if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind == 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind == 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind == 'Number') || control.type == CONST_CTRL_TYPE_INPUTCALCULATE || control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTTRENDS || control.type == CONST_CTRL_TYPE_INPUTCOUNTER){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Tax'){ if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind == 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind == 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind == 'Number') || control.type == CONST_CTRL_TYPE_INPUTCALCULATE || control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTTRENDS || control.type == CONST_CTRL_TYPE_INPUTCOUNTER){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Description'){ if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Memo'){ if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Name'){ if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Phone'){ if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || control.type == CONST_CTRL_TYPE_INPUT_TEXT || (control.type == CONST_CTRL_TYPE_INPUTCALCULATE && control.kind != CONST_CTRL_KIND_DATE) || (control.type == CONST_CTRL_TYPE_INPUT_NUMERIC && control.kind != 'Decimal')){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'ReceiptEmail'){ if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind != 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind != 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind != 'Number') || control.type == CONST_CTRL_TYPE_INPUT_TEXT || control.type == CONST_CTRL_TYPE_INPUTEMAILREPORT || control.type == CONST_CTRL_TYPE_INPUTFAX || control.type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Date'){ if(control.type == CONST_CTRL_TYPE_INPUTDATE){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == CONST_CONTAINER_TYPE_REPEAT){ //ignore question /*tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++;*/ } } }); if(addNode || isGrid){ for(var j=i; j>0; j--){ transStack[transStack.length] = tmp[j-1]; } } return addNode; } transResultStack = []; var findResultCtrlFromNode = function(controls, selectedCtrlId, type, isStart_forgrid){ var addNode = false; var tmp = []; var i = 0; var start = false; if(isStart_forgrid){ start = true; } var skip = false; var endOfForm = true; _.each(controls, function(control) { if(skip){ return false; } if(!start){ if(control.type == CONST_CTRL_TYPE_GROUP){ if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){ skip = true; start = true; endOfForm = false; } }else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){ if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){ skip = true; start = true; endOfForm = false; } }else if(control.type == CONST_CTRL_TYPE_CTRLPOD){ if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){ skip = true; start = true; endOfForm = false; } }else if(control.type == CONST_CTRL_TYPE_CTRLINV){ if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){ skip = true; start = true; endOfForm = false; } }else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){ if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){ skip = true; start = true; endOfForm = false; } }else if(control.type == CONST_CTRL_TYPE_CTRLGRID){ if(findResultCtrlFromNode(control.children, selectedCtrlId, type)){ skip = false; start = true; endOfForm = false; } } }else{ if(control.type == CONST_CTRL_TYPE_CTRLGRID){ if(findResultCtrlFromNode(control.children, selectedCtrlId, type, true)){ skip = false; start = true; endOfForm = false; } } } if(!skip){ if(start == false && selectedCtrlId == control.id){ start = true; }else{ if(start){ if(type == 'Amount'){ if((control.type == CONST_CTRL_TYPE_INPUTLOOKUP && control.kind == 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH && control.kind == 'Number') || (control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE && control.kind == 'Number') || //control.type == CONST_CTRL_TYPE_INPUTCALCULATE || control.type == CONST_CTRL_TYPE_INPUT_NUMERIC || control.type == CONST_CTRL_TYPE_INPUTTRENDS || control.type == CONST_CTRL_TYPE_INPUTCOUNTER){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Result'){ if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(type == 'Trxid'){ if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || control.type == CONST_CTRL_TYPE_INPUT_TEXT){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } } } } } }); if(start){ for(var j=i; j>0; j--){ transResultStack[transResultStack.length] = tmp[j-1]; } } return start; } $('#property_payment_TransSubtotal') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToPayment_TransSubtotalCbo(controls, properties.id.value); if(properties.payment_Phone && properties.payment_Phone.value != ''){ $(".payment_TransSubtotal select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false); $(".payment_TransSubtotal select option[value*='" + properties.payment_Phone.value + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true); } }) .change(function(){ $(".payment_Phone select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false); if($(this).val() != ""){ $(".payment_Phone select option[value*='" + $(this).val() + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true); } }) .trigger('InputSourceChange'); $('#property_payment_TransMemo') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToFA_TransMemoCbo(controls, properties.id.value); }) .trigger('InputSourceChange'); $('#property_payment_ReceiptEmail') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToFA_ReceiptEmailCbo(controls, properties.id.value); }) .trigger('InputSourceChange'); $('#property_payment_Name') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToFA_NameCbo(controls, properties.id.value); }) .trigger('InputSourceChange'); $('#property_payment_Phone') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToPayment_PhoneCbo(controls, properties.id.value); if(properties.payment_Phone && properties.payment_TransSubtotal && properties.payment_Phone.value == properties.payment_TransSubtotal.value){ $(this).val('').change(); } if(properties.payment_TransSubtotal && properties.payment_TransSubtotal.value != ''){ $(".payment_Phone select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false); $(".payment_Phone select option[value*='" + properties.payment_TransSubtotal.value + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true); } }) .change(function(){ $(".payment_TransSubtotal select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false); if($(this).val() != ""){ $(".payment_TransSubtotal select option[value*='" + $(this).val() + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true); } }) .trigger('InputSourceChange'); $('#property_payment_Tax') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToFA_TaxCbo(controls, properties.id.value); }) .trigger('InputSourceChange'); $('#property_payment_Trxid') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToPayment_TrxidCbo(controls, properties.id.value); if(properties.payment_Result_Amount && properties.payment_Result_Amount.value != ''){ $(".payment_Trxid select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false); $(".payment_Trxid select option[value*='" + properties.payment_Result_Amount.value + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true); } }) .change(function(){ $(".payment_Result_Amount select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false); if($(this).val() != ""){ $(".payment_Result_Amount select option[value*='" + $(this).val() + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true); } }) .trigger('InputSourceChange'); $('#property_payment_Result_Amount') .off('InputSourceChange') .on('InputSourceChange', function(event){ addQuestionToPayment_Result_AmountCbo(controls, properties.id.value); if(properties.payment_Result_Amount && properties.payment_Trxid && properties.payment_Result_Amount.value == properties.payment_Trxid.value){ $(this).val('').change(); } if(properties.payment_Trxid && properties.payment_Trxid.value != ''){ $(".payment_Result_Amount select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false); $(".payment_Result_Amount select option[value*='" + properties.payment_Trxid.value + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true); } }) .change(function(){ $(".payment_Trxid select option.hideSession").removeClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',false); if($(this).val() != ""){ $(".payment_Trxid select option[value*='" + $(this).val() + "']").addClass(CONST_CSS_CLASS_HIDE_SESSION).prop('disabled',true); } }) .trigger('InputSourceChange'); } if(type == CONST_CTRL_TYPE_CTRLREPEATABLESUMMARY){ var addRepeatQuestionToRepeatableCbo = function(controls, selectedCtrlId){ var cboRepeatable = $('li.repeatable .editorSelect'); var cboRepeatableVal = cboRepeatable.val(); cboRepeatable.empty(); cboRepeatable.append(''); transStack = []; findTransCtrlToNode(controls, selectedCtrlId, CONST_CONTAINER_TYPE_REPEAT); for(var j=transStack.length; j>0; j--){ cboRepeatable.append(transStack[j-1].clone()); } cboRepeatable.val(cboRepeatableVal); cboRepeatable.trigger('change'); } addRepeatQuestionToRepeatableCbo(controls, properties.id.value); } //function for skip ligic var cboSkipControl = $('.uiCombo-translation-row .cboSkipAnswerCondition'); addCboSkipAnswer(cboSkipControl, controls, 0, properties); var addCboSkipAnswerCondition = function(type){ var cboSkipAnswerConditionVal = []; var cboSkipAnswers = $('.skipConditionsEditorValueField .cboSkipAnswer'); var i = 0; if(cboSkipAnswers.length == 1){ cboSkipAnswerConditionVal[i] = cboSkipAnswers.val(); }else{ _.each(cboSkipAnswers, function(cboSkipAnswer) { cboSkipAnswerConditionVal[i] = $(cboSkipAnswer).val(); i ++; }); } updateCboCompareType(cboSkipAnswers, type); if(cboSkipAnswers.length == 1){ cboSkipAnswers.val(cboSkipAnswerConditionVal[0]); }else{ i = 0; _.each(cboSkipAnswers, function(cboSkipAnswer) { $(cboSkipAnswer).val(cboSkipAnswerConditionVal[i]); i ++; }); } }; //addCboSkipAnswerCondition(type); stack = []; stackCount = 0; var findToNode = function(controls, endId, isITE){ if(!isVersion(VERSION_ITE_ACTION_FILED)){ isITE = undefined; } var addNode = false; var tmp = []; var i = 0; _.each(controls, function(control) { if(endId == control.id){ addNode = true; } if(addNode){ return false; } if(control.type == CONST_CTRL_TYPE_GROUP){ addNode = findToNode(control.children, endId, isITE); }else if(control.type == CONST_CTRL_TYPE_CTRLTABLE || control.type == CONST_CTRL_TYPE_CTRLSCHEDULE){ addNode = findToNode(control.children, endId, isITE); }else if(control.type == CONST_CTRL_TYPE_CTRLPOD){ addNode = findToNode(control.children, endId, isITE); }else if(control.type == CONST_CTRL_TYPE_CTRLINV){ addNode = findToNode(control.children, endId, isITE); }else if(control.type == CONST_CTRL_TYPE_CTRLSCORETABLE){ if(!isVersion3_3()){ addNode = findToNode(control.children, endId, isITE); }else{ _.each(control.children, function(control1) { if(endId == control1.id){ addNode = true; } if(addNode){ return false; } if(control1.type == CONST_CTRL_TYPE_GROUP){ }else if(control1.type == CONST_CTRL_TYPE_CTRLTABLE){ }else if(control1.type == CONST_CTRL_TYPE_CTRLSCHEDULE){ }else if(control1.type == CONST_CTRL_TYPE_CTRLPOD){ }else if(control1.type == CONST_CTRL_TYPE_CTRLINV){ }else if(control1.type == CONST_CTRL_TYPE_CTRLSCORETABLE){ }else if(control1.type == CONST_CTRL_TYPE_CTRLGRID){ }else if(control1.type == 'inputPageBreak'){ }else if(control1.type == 'inputLabel' || control1.type == 'inputInstruction' || (control1.type == CONST_CTRL_TYPE_INPUTACTION && !isITE) || control1.type == CONST_CTRL_TYPE_INPUTPAYMENT){ }else if(control1.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){ if(valueOrEmpty(control1.summaryCategory) != ''){ tmp[i] = $('') .attr(CONST_VALUE, control1.id) .text(control1.name); i++; } }else if(control1.type == CONST_CTRL_TYPE_INPUTNUMBERING){ }else if(control1.type == CONST_CTRL_TYPE_INPUTNEWPAYMENT){ }else if(control1.type == CONST_CTRL_TYPE_INPUTEMAILREPORT){ }else if(control1.type == CONST_CTRL_TYPE_INPUTFAX){ }else if(control1.type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){ }else if(control1.type == CONST_CTRL_TYPE_INPUTAPPROVAL){ /*}else if(control1.type == CONST_CTRL_TYPE_INPUTCALCULATE){ }else if(control1.type == CONST_CTRL_TYPE_INPUTLOOKUP || control1.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){ }else if(control1.type == 'inputFacingTable'){*/ }else if(control1.type == 'inputLookupMulti'){ }else if(control1.type == 'inputSaveAndSend'){ }else{ tmp[i] = $('') .attr(CONST_VALUE, control1.id) .text(control1.name); i++; } }); } }else if(control.type == CONST_CTRL_TYPE_CTRLGRID){ _.each(control.children, function(control1) { if(endId == control1.id){ addNode = true; } if(addNode){ return false; } if(control1.type == CONST_CTRL_TYPE_GROUP){ }else if(control1.type == CONST_CTRL_TYPE_CTRLTABLE){ }else if(control1.type == CONST_CTRL_TYPE_CTRLSCHEDULE){ }else if(control1.type == CONST_CTRL_TYPE_CTRLPOD){ }else if(control1.type == CONST_CTRL_TYPE_CTRLINV){ }else if(control1.type == CONST_CTRL_TYPE_CTRLSCORETABLE){ }else if(control1.type == CONST_CTRL_TYPE_CTRLGRID){ }else if(control1.type == 'inputPageBreak'){ }else if(control1.type == 'inputLabel' || control1.type == 'inputInstruction' || (control1.type == CONST_CTRL_TYPE_INPUTACTION && !isITE) || control1.type == CONST_CTRL_TYPE_INPUTPAYMENT){ }else if(control1.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){ if(valueOrEmpty(control1.summaryCategory) != ''){ tmp[i] = $('') .attr(CONST_VALUE, control1.id) .text(control1.name); i++; } }else if(control1.type == CONST_CTRL_TYPE_INPUTNUMBERING){ }else if(control1.type == CONST_CTRL_TYPE_INPUTNEWPAYMENT){ }else if(control1.type == CONST_CTRL_TYPE_INPUTEMAILREPORT){ }else if(control1.type == CONST_CTRL_TYPE_INPUTFAX){ }else if(control1.type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){ }else if(control1.type == CONST_CTRL_TYPE_INPUTAPPROVAL){ /*}else if(control1.type == CONST_CTRL_TYPE_INPUTCALCULATE){ }else if(control1.type == CONST_CTRL_TYPE_INPUTLOOKUP || control1.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){ }else if(control1.type == 'inputFacingTable'){*/ }else if(control1.type == 'inputLookupMulti'){ }else if(control1.type == 'inputSaveAndSend'){ }else{ tmp[i] = $('') .attr(CONST_VALUE, control1.id) .text(control1.name); i++; } }); }else if(control.type == 'inputPageBreak'){ }else if(control.type == 'inputLabel' || control.type == 'inputInstruction' || (control.type == CONST_CTRL_TYPE_INPUTACTION && !isITE) || control.type == CONST_CTRL_TYPE_INPUTPAYMENT){ }else if(control.type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){ if(valueOrEmpty(control.summaryCategory) != ''){ tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }else if(control.type == CONST_CTRL_TYPE_INPUTNUMBERING){ }else if(control.type == CONST_CTRL_TYPE_INPUTNEWPAYMENT){ }else if(control.type == CONST_CTRL_TYPE_INPUTEMAILREPORT){ }else if(control.type == CONST_CTRL_TYPE_INPUTFAX){ }else if(control.type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){ }else if(control.type == CONST_CTRL_TYPE_INPUTAPPROVAL){ /*}else if(control.type == CONST_CTRL_TYPE_INPUTCALCULATE){ }else if(control.type == CONST_CTRL_TYPE_INPUTLOOKUP || control.type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){ }else if(control.type == 'inputFacingTable'){*/ }else if(control.type == 'inputLookupMulti'){ }else if(control.type == 'inputSaveAndSend'){ }else{ //tmp[i] = ''; tmp[i] = $('') .attr(CONST_VALUE, control.id) .text(control.name); i++; } }); if(addNode){ for(var j=i; j>0; j--){ stack[stackCount] = tmp[j-1]; stackCount++; } return true; }else{ return false; } } var addCboRelevanceAnswer = function(controls, level){ var cboRelevanceControl = $('.uiRelevanceCombo-translation-row .cboRelevanceAnswerCondition'); var cboRelevanceJoinControl = $('.uiRelevanceCombo-translation-join-row .cboRelevanceAnswerCondition'); var cboRelevanceAnswerConditionVals = []; var i =0; var conditions = $('.relevanceConditionsList .cboRelevanceAnswerCondition'); if(level == 0){ if(conditions.length > 1){ _.each(conditions, function(item){ cboRelevanceAnswerConditionVals[i] = $(item).val(); i ++; }); }else{ cboRelevanceAnswerConditionVals[0] = conditions.val(); } } if(level == 0){ cboRelevanceControl.empty(); cboRelevanceControl.append(''); cboRelevanceJoinControl.empty(); cboRelevanceJoinControl.append(''); } stack = []; stackCount = 0; var end = findToNode(controls, properties.id.value, false); if(end){ for(var j=stackCount; j>0; j--){ cboRelevanceControl.append(stack[j-1].clone()); cboRelevanceJoinControl.append(stack[j-1].clone()); } } if(level == 0){ if(conditions.length > 1){ i = 0; _.each(conditions, function(item){ $(item).val(cboRelevanceAnswerConditionVals[i]); i ++; }); }else{ conditions.val(cboRelevanceAnswerConditionVals[0]); } } return end; }; addCboRelevanceAnswer(controls, 0); var addCboReadOnlyIfAnswer = function(controls, level){ var cboReadOnlyIfControl = $('.uiReadOnlyIfCombo-translation-row .cboReadOnlyIfAnswerCondition'); var cboReadOnlyIfJoinControl = $('.uiReadOnlyIfCombo-translation-join-row .cboReadOnlyIfAnswerCondition'); var cboReadOnlyIfAnswerConditionVals = []; var i =0; var conditions = $('.readOnlyIfConditionsList .cboReadOnlyIfAnswerCondition'); if(level == 0){ if(conditions.length > 1){ _.each(conditions, function(item){ cboReadOnlyIfAnswerConditionVals[i] = $(item).val(); i ++; }); }else{ cboReadOnlyIfAnswerConditionVals[0] = conditions.val(); } } if(level == 0){ cboReadOnlyIfControl.empty(); cboReadOnlyIfControl.append(''); cboReadOnlyIfJoinControl.empty(); cboReadOnlyIfJoinControl.append(''); } stack = []; stackCount = 0; var end = findToNode(controls, properties.id.value, false); if(end){ for(var j=stackCount; j>0; j--){ cboReadOnlyIfControl.append(stack[j-1].clone()); cboReadOnlyIfJoinControl.append(stack[j-1].clone()); } } if(level == 0){ if(conditions.length > 1){ i = 0; _.each(conditions, function(item){ $(item).val(cboReadOnlyIfAnswerConditionVals[i]); i ++; }); }else{ conditions.val(cboReadOnlyIfAnswerConditionVals[0]); } } return end; }; addCboReadOnlyIfAnswer(controls, 0); if(properties.isScheduleWidget && properties.isScheduleWidget.value){ var addCboDispatch = function(controls, level){ var cboDispatchDateControl = $('.propertyList:visible #property_dispatchDate'); var cboDispatchMobileControl = $('.propertyList:visible #property_dispatchMobile'); var cboDispatchScheduleDateTimeControl = $('.propertyList:visible #property_scheduleDateTime'); var cboDispatchDateControlVal = ''; var cboDispatchMobileControlVal = ''; var cboDispatchScheduleDateTimeVal = ''; var i =0; if(level == 0){ cboDispatchDateControlVal = cboDispatchDateControl.val(); cboDispatchMobileControlVal = cboDispatchMobileControl.val(); cboDispatchScheduleDateTimeVal = cboDispatchScheduleDateTimeControl.val(); cboDispatchDateControl.empty(); cboDispatchDateControl.append(''); cboDispatchMobileControl.empty(); cboDispatchMobileControl.append(''); cboDispatchScheduleDateTimeControl.empty(); cboDispatchScheduleDateTimeControl.append(''); } transStack = []; var end = findTransCtrlToNode(controls, properties.id.value, 'Date_schedule'); if(end){ for(var j=transStack.length; j>0; j--){ cboDispatchDateControl.append(transStack[j-1].clone()); } } transStack = []; end = findTransCtrlToNode(controls, properties.id.value, 'Phone_schedule'); if(end){ for(var j=transStack.length; j>0; j--){ cboDispatchMobileControl.append(transStack[j-1].clone()); } } cboDispatchMobileControl.append(''); transStack = []; end = findTransCtrlToNode(controls, properties.id.value, 'Date Time_schedule'); if(end){ for(var j=transStack.length; j>0; j--){ cboDispatchScheduleDateTimeControl.append(transStack[j-1].clone()); } } if(level == 0){ cboDispatchDateControl.val(cboDispatchDateControlVal); cboDispatchMobileControl.val(cboDispatchMobileControlVal); cboDispatchScheduleDateTimeControl.val(cboDispatchScheduleDateTimeVal); } return end; }; addCboDispatch(controls, 0); var addCboDispatchMobileNumber = function(cursor){ var cboDispatchMobileNumberControl = $('.propertyList:visible #property_dispatchMobileNumber'); var cboDispatchMobileNumberVal = cboDispatchMobileNumberControl.val(); if(cursor == null || cursor== ''){ cboDispatchMobileNumberControl.empty(); cboDispatchMobileNumberControl.append(''); } waitForDataLoading(true); $.ajax({ url: '/mobileunit/mobileUnit?fnId=GET_MOBILES&cursor=' + cursor, dataType: 'json', type: 'GET', data: '{}', async: false, cache: false, complete: function() { waitForDataLoading(false); }, success: function(response, status) { if(response == null){ return; } for ( var m = 0; m < response.MUNumbers.length; m++) { var item = response.MUNumbers[m]; var itemOpt = $(''); itemOpt.val(item.MU); if(item.MN == undefined){ itemOpt.text(item.MU); }else{ itemOpt.text(item.MU + "(" + item.MN + ")"); } cboDispatchMobileNumberControl.append(itemOpt); } if(response.cursor != null){ addCboDispatchMobileNumber(response.cursor); } }, error: function(request, status, error) { } }); if(cursor == null || cursor== ''){ cboDispatchMobileNumberControl.val(cboDispatchMobileNumberVal); } }; addCboDispatchMobileNumber(''); } var addCboITEAnswer = function(controls, level){ var cboITEControl = $('.uiITECombo-translation-row .cboITEAnswerCondition'); var cboITEJoinControl = $('.uiITECombo-translation-join-row .cboITEAnswerCondition'); var cboITEAnswerConditionVals = []; var i =0; var conditions = $('.iteConditionsList .cboITEAnswerCondition'); if(level == 0){ if(conditions.length > 1){ _.each(conditions, function(item){ cboITEAnswerConditionVals[i] = $(item).val(); i ++; }); }else{ cboITEAnswerConditionVals[0] = conditions.val(); } } if(level == 0){ cboITEControl.empty(); cboITEControl.append(''); cboITEJoinControl.empty(); cboITEJoinControl.append(''); } stack = []; stackCount = 0; var end = findToNode(controls, properties.id.value, true); if(end){ for(var j=stackCount; j>0; j--){ cboITEControl.append(stack[j-1].clone()); cboITEJoinControl.append(stack[j-1].clone()); } } stackPrevious = []; stackPreviousCount = 0; end = findPreviousItem(controls, properties.id.value); if(end){ for(var j=stackPreviousCount; j>0; j--){ cboITEControl.append(stackPrevious[j-1].clone()); cboITEJoinControl.append(stackPrevious[j-1].clone()); } } if(level == 0){ if(conditions.length > 1){ i = 0; _.each(conditions, function(item){ $(item).val(cboITEAnswerConditionVals[i]); i ++; }); }else{ conditions.val(cboITEAnswerConditionVals[0]); } } return end; }; addCboITEAnswer(controls, 0); var addCboSkipIfAnswer = function(controls, level){ var cboSkipIfControl = $('.uiSkipIfCombo-translation-row .cboSkipIfAnswerCondition'); var cboSkipIfJoinControl = $('.uiSkipIfCombo-translation-join-row .cboSkipIfAnswerCondition'); var cboSkipIfAnswerConditionVals = []; var i =0; var conditions = $('.skipIfConditionsList .cboSkipIfAnswerCondition'); if(level == 0){ if(conditions.length > 1){ _.each(conditions, function(item){ cboSkipIfAnswerConditionVals[i] = $(item).val(); i ++; }); }else{ cboSkipIfAnswerConditionVals[0] = conditions.val(); } } if(level == 0){ cboSkipIfControl.empty(); cboSkipIfControl.append(''); cboSkipIfJoinControl.empty(); cboSkipIfJoinControl.append(''); } stack = []; stackCount = 0; var end = findToNode(controls, properties.id.value, false); if(end){ for(var j=stackCount; j>0; j--){ cboSkipIfControl.append(stack[j-1].clone()); cboSkipIfJoinControl.append(stack[j-1].clone()); } } if(level == 0){ if(conditions.length > 1){ i = 0; _.each(conditions, function(item){ $(item).val(cboSkipIfAnswerConditionVals[i]); i ++; }); }else{ conditions.val(cboSkipIfAnswerConditionVals[0]); } } return end; }; addCboSkipIfAnswer(controls, 0); $this.trigger('odkControl-propertiesUpdated'); var skipShow = false; var relevanceShow = false; if(properties.skipconds == undefined || properties.skipconds.value == undefined || properties.skipconds.value.length == 0){ }else{ skipShow = true; } if(properties.relevanceconds == undefined || properties.relevanceconds.value == undefined || properties.relevanceconds.value.length == 0){ }else{ relevanceShow = true; } if(skipShow || relevanceShow){ $('.propertiesPane:visible .advanced .toggle').trigger('click'); if(skipShow){ $('.propertiesPane:visible .advanced .toggle-skip').trigger('click'); } if(relevanceShow){ $('.propertiesPane:visible .advanced .toggle-relevance').trigger('click'); } } $('.propertiesPane:visible').scrollTop(0); switch(type){ case "ctrlDataSource": case "ctrlDataFilter": case "ctrlReportBreakPoint": case "ctrlEmailSchedule": case "ctrlBreakPointData": break; default: if($('.propertiesPane:visible .propertyList input.editorTextfield').length > 0){ var theFirst = 0; while($('.propertiesPane:visible .propertyList input.editorTextfield')[theFirst] && $('.propertiesPane:visible .propertyList input.editorTextfield')[theFirst].offsetParent == null){ theFirst++; } if($('.propertiesPane:visible .propertyList input.editorTextfield')[theFirst]){ $('.propertiesPane:visible .propertyList input.editorTextfield')[theFirst].focus(); } // CO-2548 auto select text which focused (check if control selected has class caption-just-paste then select the text if($this.hasClass('caption-just-paste')) { $('.propertiesPane:visible .propertyList input')[0].select(); } // CO-2548 auto select text which focused } } $('.propertyList:visible .showSelectAll').find('.SelectAll').trigger('showSelectAll_Change'); // CO-6284: Add Image viewer control start if(properties.id && properties.id.ctrlType == CONST_CTRL_TYPE_IMAGE_VIEWER){ loadImageViewerCombo(controls, properties); } // CO-6284: Add Image viewer control end }; // Constructor $.fn.odkControl = function(type, options, defaultProperties) { var isButtonGrid = false; var isScheduleWidget = false; var isFaxWidget = false; if(type == 'ctrlButtonGrid'){ type = CONST_CTRL_TYPE_CTRLGRID; isButtonGrid = true; }else if(type == CONST_CTRL_TYPE_CTRLSCHEDULE){ type = CONST_CTRL_TYPE_CTRLTABLE; isScheduleWidget = true; }else if(type == CONST_CTRL_TYPE_INPUTFAX){ type = CONST_CTRL_TYPE_INPUTEMAILREPORT; isFaxWidget = true; }else if(type == CONST_CTRL_TYPE_CTRLGRID){ // tdchien :: TEMPORARY WORKAROUND CODE FOR PREVENT ERROR WHEN CREATE NORMAL GRID // Mr. Huynh Quoc Khanh will fix this error later // (error : defaultProperties) // if(defaultProperties.isButtonGrid && defaultProperties.isButtonGrid.value){ // isButtonGrid = true; // } if(defaultProperties && defaultProperties.isButtonGrid && defaultProperties.isButtonGrid.value){ isButtonGrid = true; } }else if(type == CONST_CTRL_TYPE_CTRLTABLE){ if(defaultProperties && defaultProperties.isScheduleWidget && defaultProperties.isScheduleWidget.value){ isScheduleWidget = true; } }else if(type == CONST_CTRL_TYPE_INPUTEMAILREPORT){ if(defaultProperties && defaultProperties.isFaxWidget && defaultProperties.isFaxWidget.value){ isFaxWidget = true; } } var isSecureEmail = false; if(type == CONST_CTRL_TYPE_INPUTFAX){ type = CONST_CTRL_TYPE_INPUTEMAILREPORT; isFaxWidget = true; }else if(type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT){ type = CONST_CTRL_TYPE_INPUTEMAILREPORT; isSecureEmail = true; }else if(type == CONST_CTRL_TYPE_INPUTEMAILREPORT){ if(defaultProperties && defaultProperties.isSecureEmail && defaultProperties.isSecureEmail.value){ isSecureEmail = true; } if(defaultProperties && defaultProperties.isFaxWidget && defaultProperties.isFaxWidget.value){ isFaxWidget = true; } } var isRetrieve = false; if(type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE){ type = CONST_CTRL_TYPE_INPUTLOOKUP; isRetrieve = true; }else if(type == CONST_CTRL_TYPE_INPUTLOOKUP){ if(defaultProperties && defaultProperties.isRetrieve && defaultProperties.isRetrieve.value){ isRetrieve = true; } } var isSecureForward = false; if(type == CONST_CTRL_TYPE_INPUTSECUREFORWARD){ type = CONST_CTRL_TYPE_INPUTFORWARD; isSecureForward = true; }else if(type == CONST_CTRL_TYPE_INPUTFORWARD){ if(defaultProperties && defaultProperties.isSecureForward && defaultProperties.isSecureForward.value){ isSecureForward = true; } } var isOpenFileWidget = false; var isAttachFormWidget = false; if(type == CONST_CTRL_TYPE_INPUTOPENFILE){ type = CONST_CTRL_TYPE_INPUTACTION; isOpenFileWidget = true; }else if(type == CONST_CTRL_TYPE_INPUTATTACHFORM){ type = CONST_CTRL_TYPE_INPUTACTION; isAttachFormWidget = true; }else if(type == CONST_CTRL_TYPE_INPUTACTION){ if(defaultProperties && defaultProperties.isOpenFileWidget && defaultProperties.isOpenFileWidget.value){ isOpenFileWidget = true; }else if(defaultProperties && defaultProperties.isAttachFormWidget && defaultProperties.isAttachFormWidget.value){ isAttachFormWidget = true; } } if(defaultProperties && defaultProperties.isSearchField && defaultProperties.isSearchField.value){ this.addClass(defaultProperties.name.value); } // Abort for unknown types if ($.fn.odkControl.controlProperties[type] === undefined) return; var options = $.extend({}, $.fn.odkControl.defaults, options); return this.each(function() { var $this = $(this); // Support the metadata plugin var config = $.meta ? $.extend({}, options, $this.data()) : options; $this.data('odkControl-config', config); $this.data('odkControl-type', type); // Deep clone the properties if relevant var properties = null; if ((type == CONST_CTRL_TYPE_GROUP) || (type == 'branch') || (type == 'inputPageBreak') || (type == 'inputLabel') || (type == CONST_CTRL_TYPE_INPUTSCORESUMMARY) || (type == CONST_CTRL_TYPE_INPUTNUMBERING) || (type == CONST_CTRL_TYPE_INPUTNEWPAYMENT) || (type == CONST_CTRL_TYPE_INPUTACTION) || (type == CONST_CTRL_TYPE_INPUTPAYMENT) || (type == 'inputInstruction') || //(type == CONST_CTRL_TYPE_INPUTCALCULATE) || (type == CONST_CTRL_TYPE_INPUTLOOKUP) || (type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH) || (type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE) || (type == 'inputFacingTable') || (type == 'inputLookupMulti') || (type == CONST_CTRL_TYPE_INPUTEMAILREPORT) || (type == CONST_CTRL_TYPE_INPUTFAX) || (type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT) || (type == CONST_CTRL_TYPE_INPUTAPPROVAL) || (type == 'inputSaveAndSend') || (type == CONST_CTRL_TYPE_CTRLTABLE) || (type == CONST_CTRL_TYPE_CTRLSCHEDULE) || (type == CONST_CTRL_TYPE_CTRLPOD) || (type == CONST_CTRL_TYPE_CTRLSCORETABLE) || (type == CONST_CTRL_TYPE_CTRLGRID) || (type == 'ctrlDataSource') || (type == 'ctrlHeaderGrid') || (type == 'ctrlDataFilter') || (type == 'ctrlReportBreakPoint') || (type == 'ctrlBreakPointData') || (type == 'ctrlFooterGrid') || (type == 'ctrlEmailSchedule') || (type == 'ctrlBreakPointDataElement') || (type == CONST_CTRL_TYPE_CTRLINV)){ properties = defaultProperties || $.extend(true, {}, $.fn.odkControl.controlProperties[type]); }else{ properties = defaultProperties || $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[type]); removeUnsupportProperty(properties, type); } if(isButtonGrid){ properties.isButtonGrid.value = true; properties.ctrlProperty.name = lbl_button_grid_ctrl; properties.gridType.add_class = CONST_CSS_CLASS_HIDE_SESSION; properties.isUtilizingFullScr.add_class = CONST_CSS_CLASS_HIDE_SESSION; properties.equallySpaceColumns.add_class = CONST_CSS_CLASS_HIDE_SESSION; properties.columnsSpaceType.add_class = CONST_CSS_CLASS_HIDE_SESSION; properties.isColumnWeightCustom.add_class = CONST_CSS_CLASS_HIDE_SESSION; properties.withFormat4ColumnWeight.add_class = CONST_CSS_CLASS_HIDE_SESSION; properties.isIgnoreGrid.add_class = CONST_CSS_CLASS_HIDE_SESSION; properties.ignoreScreenSize.add_class = CONST_CSS_CLASS_HIDE_SESSION; } if(isScheduleWidget){ properties.isScheduleWidget.value = true; properties.ctrlProperty.name = lbl_schedule_ctrl; properties.ctrlProperty.explainUrl = hl_schedule; } if(isFaxWidget){ properties.isFaxWidget.value = true; properties.ctrlProperty.name = lbl_fax_ctrl; } if(isSecureEmail){ properties.isSecureEmail.value = true; properties.ctrlProperty.name = lbl_secure_email_report_ctrl; } if(isRetrieve){ properties.isRetrieve.value = true; properties.ctrlProperty.name = lbl_lookup_retrieve_ctrl; properties.ctrlProperty.explainUrl = hl_retrieve; } if(isSecureForward){ properties.isSecureForward.value = true; properties.ctrlProperty.name = lbl_secure_forward_ctrl; } if(isOpenFileWidget){ properties.isOpenFileWidget.value = true; properties.imgAction.value = CONST_ACTION_OPEN_FILE; properties.imgAction.disabled = true; properties.ctrlProperty.name = lbl_open_file_ctrl; properties.ctrlProperty.explainUrl = hl_open_file; } if(isAttachFormWidget){ properties.isAttachFormWidget.value = true; properties.imgAction.disabled = true; properties.ctrlProperty.name = lbl_action_attach_form; properties.ctrlProperty.explainUrl = hl_attach_form; properties.imgAction.value = CONST_ACTION_ATTACH_FORM; if(defaultProperties == undefined){ properties.justificationCaption.value = '0'; appendProperties4AttachFormWidget(properties); } } removeUnuseVersion(properties); if(type == CONST_CTRL_TYPE_INPUTLOCATION){ properties.defaultValue.type = 'gps'; }else if(type == CONST_CTRL_TYPE_INPUTSELECTONE){ properties.defaultValue.type = 'choice'; }else if(type == CONST_CTRL_TYPE_INPUTSCOREONE){ properties.defaultValue.type = 'choice'; }else if(type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){ }else if(type == CONST_CTRL_TYPE_INPUTSELECTMANY){ properties.defaultValue.type = 'choice'; }else if(type == CONST_CTRL_TYPE_INPUTDATE){ properties.defaultValue.type = 'dateDefaultField'; }else if(type == CONST_CTRL_TYPE_INPUT_NUMERIC){ properties.defaultValue.type = 'numericDefaultField'; properties.defaultValue.kind = 'Integer'; properties.range.kind = 'Integer'; }else if(type == CONST_CTRL_TYPE_INPUTLOOKUP || type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE || type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH){ properties.defaultValue.type = 'lookupDefaultField'; properties.defaultValue.kind = 'String'; }else if(type == CONST_CTRL_TYPE_INPUTTRENDS){ properties.range.kind = 'Integer'; }else if(type == mdi_kind_inputImage){ properties.defaultValue.type = 'hidden'; }else if(type == mdi_kind_inputAudio){ properties.defaultValue.type = 'hidden'; }else if(type == mdi_kind_inputVideo){ properties.defaultValue.type = 'hidden'; }else if(type == CONST_CTRL_TYPE_INPUTMEDIA){ properties.defaultValue.type = 'hidden'; }else if(type == mdi_kind_inputSketch){ properties.defaultValue.type = 'hidden'; }else if(type == mdi_kind_inputSignature){ properties.defaultValue.type = 'hidden'; }else if(type == 'inputDraw'){ properties.defaultValue.type = 'hidden'; }else if(type == CONST_CTRL_TYPE_INPUTBARCODE){ properties.defaultValue.type = 'barcodeDefaultField'; properties.defaultValue.kind = 'String'; properties.length.kind = 'String'; }else if(type == CONST_CTRL_TYPE_INPUTNFC){ //properties.defaultValue.type = 'hidden'; }else if(type == CONST_CTRL_TYPE_INPUTFORWARD || type == CONST_CTRL_TYPE_INPUTSECUREFORWARD){ properties.defaultValue.type = 'forwardDefaultField'; properties.defaultValue.kind = 'hidden'; }else if(type == CONST_CTRL_TYPE_INPUTCOUNTER){ properties.defaultValue.type = 'numericDefaultField'; properties.defaultValue.kind = 'Integer'; properties.range.kind = 'Integer'; }else if(type == CONST_CTRL_TYPE_INPUTCALCULATE){ properties.defaultValue.type = 'hidden'; properties.readOnlyGroup.type = 'hidden'; properties.readOnly.type = 'hidden'; properties.readOnlyDsp.type = 'hidden'; properties.requiredGroup.type = 'hidden'; properties.required.type = 'hidden'; properties.dispatchRequired.type = 'hidden'; }else if(type == CONST_CTRL_TYPE_INPUTATTACHMENT){ properties.defaultValue.type = 'hidden'; } if(properties.id.value == undefined || properties.id.value == ''){ properties.id.value = utils.seq.getUniqueId(); $this.find('.controlErrorMessage').addClass('ctrlId_' + properties.id.value); } if (properties.name.value == 'untitled' || properties.name.value == ''){ properties.name.value = 'untitled' + properties.id.value; } if (properties.name.value == 'page_break'){ properties.name.value = 'page_break' + properties.id.value; } if (properties.name.value == 'data_source'){ properties.name.value = 'data_source' + properties.id.value; } var newId = 'selectedCtrlFocus' + properties.id.value; $this.attr('id', newId); $this.data('odkControl-properties', properties); $this.on('odkControl-propertiesUpdated', function(event) { event.stopPropagation(); if(properties){ keys = Object.keys(properties); _.each(keys, function(key, id){ var ctrlProperty = properties[key]; if((ctrlProperty.type == 'enumeration_radio' || ctrlProperty.type == 'enumeration') && ctrlProperty.addRemoveClassPropertyNameValue == true){ _.each(ctrlProperty.options, function(element) { var arr = element.split(CONST_DOUBLE_DOLLAR); $('ul.propertyList').removeClass(key + '_' + replaceNonAlphaNumericChar(arr[0])); }); $('ul.propertyList').addClass(key + '_' + replaceNonAlphaNumericChar(ctrlProperty.value)); } }); } var scrollPos = $('.workspaceScrollArea:visible').scrollTop(); refreshFromProperties($this, type, config, properties); if(scrollPos != $('.workspaceScrollArea:visible').scrollTop()){ $('.workspaceScrollArea:visible').scrollTop(scrollPos); } }); $this.trigger('odkControl-propertiesUpdated'); $this.on('odkControl-reloadProperties', function(event, odkControl) { /*if(type == CONST_CTRL_TYPE_GROUP || type == CONST_CTRL_TYPE_CTRLTABLE || type == CONST_CTRL_TYPE_CTRLSCORETABLE){ if(isGroup){ selectControl($this, type, config, properties); } }else{ selectControl($this, type, config, properties); }*/ if(odkControl == undefined || $this[0] == odkControl){ selectControl($this, type, config, properties); } }); $this.on('odkControl-ctrlScoreTable-update-option', function(event, property) { if(properties.id.ctrlType != CONST_CTRL_TYPE_INPUTSCOREONE && properties.id.ctrlType != CONST_CTRL_TYPE_INPUTSELECTMANY && properties.id.ctrlType != CONST_CTRL_TYPE_INPUTSELECTONE){ return false; } $.removeAllFromArray(properties.options.value); for(var i = 0; i 0){ if(!isParentSelected($this)){ $this.addClass('multi-selected'); removeChildSelected($this); } if(!isParentSelected(lastSelected)){ lastSelected.addClass('multi-selected'); removeChildSelected(lastSelected); } var nextCtrl = $this.next(); while(nextCtrl.length > 0 && nextCtrl.data('odkControl-properties') != lastSelected.data('odkControl-properties')){ if(!isParentSelected(nextCtrl)){ nextCtrl.addClass('multi-selected'); removeChildSelected(nextCtrl); } nextCtrl = nextCtrl.next(); } if(nextCtrl.data('odkControl-properties') != lastSelected.data('odkControl-properties')){ $('.control.multi-selected').removeClass('multi-selected'); multiSelectedControls['__LAST_SEL__'] = $this; } }else if(posCmp < 0){ if(!isParentSelected($this)){ $this.addClass('multi-selected'); removeChildSelected($this); } if(!isParentSelected(lastSelected)){ lastSelected.addClass('multi-selected'); removeChildSelected(lastSelected); } var nextCtrl = lastSelected.next(); while(nextCtrl.length > 0 && nextCtrl.data('odkControl-properties') != $this.data('odkControl-properties')){ if(!isParentSelected(nextCtrl)){ nextCtrl.addClass('multi-selected'); removeChildSelected(nextCtrl); } nextCtrl = nextCtrl.next(); } if(nextCtrl.data('odkControl-properties') != $this.data('odkControl-properties')){ $('.control.multi-selected').removeClass('multi-selected'); multiSelectedControls['__LAST_SEL__'] = $this; } } } }else{ if(!$this.hasClass('multi-selected')){ $('.control.multi-selected').removeClass('multi-selected'); var lastSel = undefined; if(multiSelectedControls){ lastSel = multiSelectedControls['__LAST_SEL__']; } multiSelectedControls = {}; if(lastSel){ multiSelectedControls['__LAST_SEL__'] = lastSel; } } } if(!event.shiftKey){ multiSelectedControls['__LAST_SEL__'] = $this; }else if(!multiSelectedControls['__LAST_SEL__']){ multiSelectedControls['__LAST_SEL__'] = $this; } } selectControl($this, type, config, properties); updateSelectedControls(); }else{ ctrlDuplicate = false; } }); // special treatment for groups and branches // if (type == CONST_CTRL_TYPE_GROUP) // $('
    ') // .insertAfter($this.children('.controlInfo')); if (type == CONST_CTRL_TYPE_GROUP){ var groupCtrl = $('
    ') .insertAfter($this.children('.controlInfo')); // PCA-293: Webapp/Preview - Apply new block formats for all widgets. //if(isVersion(VERSION_SHADINGS_AND_BUTTON_TEXT_WEB_APP) && glbBuildFormSettingsWA.isShadedheadings === true) if(isVersion(VERSION_SHADINGS_AND_BUTTON_TEXT_WEB_APP)) { //hqkhanh $this.addClass('no-border-left-shading').addClass('no-padding-left-shading'); groupCtrl.addClass('group-shaded-mode-shading'); groupCtrl.addClass('no-padding-left-shading'); } } if (type == CONST_CTRL_TYPE_CTRLTABLE || type == CONST_CTRL_TYPE_CTRLSCHEDULE) $('
    ') .insertAfter($this.children('.controlInfo')); if (type == CONST_CTRL_TYPE_CTRLPOD || type == CONST_CTRL_TYPE_CTRLINV){ $('
    ') .insertAfter($this.children('.controlInfo')); } if (type == CONST_CTRL_TYPE_CTRLSCORETABLE){ $this.attr('id', 'ctrlScoreTable_' + properties.id.value); $('
    ') .insertAfter($this.children('.controlInfo')); } if (type == CONST_CTRL_TYPE_CTRLGRID){ $this.attr('id', 'ctrlGrid_' + properties.id.value); $('
    ') .insertAfter($this.children('.controlInfo')); } if (type == 'ctrlBreakPointData'){ $('
    ') .insertAfter($this.children('.controlInfo')); } // event wireup $this.find('.deleteControl') .click(function(event) { if(!isVersion(VERSION_STRICT_FORM_BUILDER) && isFormOpenSpecial && !isVersion(VERSION_ADD_DEL_CTRL_OSP) && properties.name.isOldCtrl){ return; } var answer = jConfirm(msg_confirm_delete + msg_confirm_delete_this_ques, lbl_conf_dlg, function(answer){ if(answer){ event.preventDefault(); if(properties.name.isOldCtrl == true){ isSpecialDataChanged = true; } var workspaceScrollAreaContent = $this.parents('.workspaceScrollAreaContent'); var empryProperty = $this.is('.selected'); $this.remove(); controlDataChange(); if (empryProperty){ $('.ctrlDescription').addClass(CONST_CSS_CLASS_HIDE_SESSION); $('.propertyList:visible').empty(); } if(workspaceScrollAreaContent.is(':empty')){ if(workspaceScrollAreaContent.parents('.reportBuilder').length > 0){ showBuildReportGetStart(); }else{ showBuildFormGetStart(); } } if($this.is('.ctrlBreakPointDataElement')){ //update column number updateReportDataElementColumnNumber(); } /*$this.slideUp('normal', function() { if ($this.is('.selected')) $('.propertyList:visible').empty(); $this.remove(); });*/ } }); }); $this.find('.duplicateControl') .click(function(event) { if(type == 'inputSaveAndSend'){ jAlert(msg_bf_ctrl_deprecated); return; } if($this.parents('.ctrlTable').length > 0){ var $target = $($this.parents('.ctrlTable')[0]); if(!isVersion4_0()){ if (countControlInsideInvoiceTable($target) >= MAX_ITEMS_INSIDE_INVOICE_TABLE) { jAlert(msg_bf_add_more_max_table_control_error.replace('$1', MAX_ITEMS_INSIDE_INVOICE_TABLE)) return; } } } if($this.parents('.ctrlSchedule').length > 0){ var $target = $($this.parents('.ctrlSchedule')[0]); if(!isVersion4_0()){ if (countControlInsideInvoiceTable($target) >= MAX_ITEMS_INSIDE_INVOICE_TABLE) { jAlert(msg_bf_add_more_max_table_control_error.replace('$1', MAX_ITEMS_INSIDE_INVOICE_TABLE)) return; } } } if($this.parents('.ctrlScoreTable').length > 0){ var $target = $($this.parents('.ctrlScoreTable')[0]); /* if(!isVersion5_0()){ if (countControlInsideInvoiceTable($target) >= MAX_ITEMS_INSIDE_INVOICE_TABLE) { jAlert(msg_bf_add_more_max_table_control_error.replace('$1', MAX_ITEMS_INSIDE_INVOICE_TABLE)) return; } }*/ } if($this.parents('.ctrlGrid').length > 0){ var $target = $($this.parents('.ctrlGrid')[0]); } if(!isVersion(VERSION_STRICT_FORM_BUILDER) && isFormOpenSpecial && !isVersion(VERSION_ADD_DEL_CTRL_OSP) && !isVersion(VERSION_ADD_CTRL_OSP)){ return; } event.preventDefault(); $('.workspace:visible .just-paste.hideSession').remove(); $('.workspace:visible .just-paste').removeClass('just-paste'); var newCtrl = duplicate($this, type, properties); newCtrl.addClass('just-paste'); controlDataChange(); if($this.is('.ctrlBreakPointDataElement')){ //update column number updateReportDataElementColumnNumber(); } ctrlDuplicate = true; }); $this.find('.moveUpControl') .click(function(event) { if(!isVersion(VERSION_STRICT_FORM_BUILDER) && isFormOpenSpecial && !isVersion(VERSION_ADD_DEL_CTRL_OSP) && !isVersion(VERSION_ADD_CTRL_OSP)){ return; } controlDataChange(); $('.workspace:visible .just-paste.hideSession').remove(); $('.workspace:visible .just-paste').removeClass('just-paste'); $('.workspace:visible .ctrlRedoMark').remove(); $('.workspace:visible .ctrlUndoMark').remove(); $('.workspace:visible .ctrlUndoDeleteMark').remove(); $('.workspace:visible .ctrlRedoDeleteMark').removeClass('ctrlRedoDeleteMark'); if($this.is(':first-child')){ $this.addClass('first-child'); } if($this.is(':last-child')){ $this.addClass('last-child'); } var prevCtrl = $this.prev(); if(prevCtrl == undefined || prevCtrl.length == 0){ }else{ var ctrlId = $this.attr('id'); var ctrlUndoMark = $('
    '); ctrlUndoMark.attr('data', ctrlId); ctrlUndoMark.insertAfter($this); if(prevCtrl.hasClass('first-child') || prevCtrl.is(':first-child')){ prevCtrl.removeClass('first-child'); $this.addClass('first-child'); } if($this.hasClass('last-child')){ $this.removeClass('last-child'); prevCtrl.addClass('last-child'); } prevCtrl.before($this); if($this.is('.ctrlBreakPointDataElement')){ //update column number updateReportDataElementColumnNumber(); } if(prevCtrl.hasClass('second-element')){ prevCtrl.removeClass('second-element'); $this.addClass('second-element'); } } }); $this.find('.moveDownControl') .click(function(event) { if(!isVersion(VERSION_STRICT_FORM_BUILDER) && isFormOpenSpecial && !isVersion(VERSION_ADD_DEL_CTRL_OSP) && !isVersion(VERSION_ADD_CTRL_OSP)){ return; } controlDataChange(); $('.workspace:visible .just-paste.hideSession').remove(); $('.workspace:visible .just-paste').removeClass('just-paste'); $('.workspace:visible .ctrlRedoMark').remove(); $('.workspace:visible .ctrlUndoMark').remove(); $('.workspace:visible .ctrlUndoDeleteMark').remove(); $('.workspace:visible .ctrlRedoDeleteMark').removeClass('ctrlRedoDeleteMark'); if($this.is(':first-child')){ $this.addClass('first-child'); } if($this.is(':last-child')){ $this.addClass('last-child'); } var nextCtrl = $this.next(); while(nextCtrl != undefined && nextCtrl.length > 0 && !nextCtrl.hasClass(CONST_CLASS_CONTROL)){ nextCtrl = nextCtrl.next(); } if(nextCtrl == undefined || nextCtrl.length == 0){ }else{ var ctrlId = $this.attr('id'); var ctrlUndoMark = $('
    '); ctrlUndoMark.attr('data', ctrlId); ctrlUndoMark.insertBefore($this); if(nextCtrl.hasClass('last-child')){ nextCtrl.removeClass('last-child'); $this.addClass('last-child'); } if($this.hasClass('first-child')){ $this.removeClass('first-child'); nextCtrl.addClass('first-child'); } nextCtrl.after($this); if($this.is('.ctrlBreakPointDataElement')){ //update column number updateReportDataElementColumnNumber(); } if($this.hasClass('second-element')){ $this.removeClass('second-element'); nextCtrl.addClass('second-element'); } } }); var cachedHeight = 0; var prevTemp; $this.workspaceDraggable({ draggableOptions: { start: function(event, ui) { if($this.hasClass('podSpecialCtrl')){ //return; } if($this.hasClass('invSpecialCtrl')){ //return; } if($this.hasClass('scheduleSpecialCtrl')){ //return; } if($this.hasClass('ctrlDataSource')){ return; } if($this.hasClass('ctrlHeaderGrid')){ return; } if($this.hasClass('ctrlDataFilter')){ return; } if($this.hasClass('ctrlReportBreakPoint')){ return; } if($this.hasClass('ctrlBreakPointData')){ return; } if($this.hasClass('ctrlFooterGrid')){ return; } if($this.hasClass('ctrlEmailSchedule')){ return; } if(!isVersion(VERSION_STRICT_FORM_BUILDER) && isFormOpenSpecial && !isVersion(VERSION_ADD_DEL_CTRL_OSP) && !isVersion(VERSION_ADD_CTRL_OSP)){ return; } var ctrlId = $this.attr('id'); $('.workspace:visible .just-paste').removeClass('just-paste'); $('.workspace:visible .ctrlRedoMark').remove(); $('.workspace:visible .ctrlUndoMark').remove(); $('.workspace:visible .ctrlUndoDeleteMark').remove(); $('.workspace:visible .ctrlRedoDeleteMark').removeClass('ctrlRedoDeleteMark'); console.log(ctrlId); if(!$this.hasClass('multi-selected')){ $('.control.multi-selected').removeClass('multi-selected'); } var selectedCtrls = $('.workspaceScrollArea:visible .multi-selected'); if(selectedCtrls.length>0){ for(var i=0; i
  • '); ctrlUndoMark.attr('data', ctrlId); ctrlUndoMark.insertAfter(selectedCtrl); } }else{ var ctrlUndoMark = $('
    '); ctrlUndoMark.attr('data', ctrlId); ctrlUndoMark.insertAfter($this); } prevTemp = $this.prev(); ui.helper.width($this.width()); cachedHeight = $this.outerHeight(true) - 15; if(cachedHeight>88){ cachedHeight = 88; } $this .after( $('
    ' + type + '
    ') .css('height', cachedHeight + 'px')) .hide() .appendTo($('body')); } }, dragCallback: function($control, direction) { if(!isVersion(VERSION_STRICT_FORM_BUILDER) && isFormOpenSpecial && !isVersion(VERSION_ADD_DEL_CTRL_OSP) && !isVersion(VERSION_ADD_CTRL_OSP)){ return; } $('.workspace:visible .hideSessionImp').remove(); $('.workspace:visible .just-paste').removeClass('just-paste'); $('.workspace:visible .placeholder') .addClass('closing') .slideUp('fast', function() { $(this).remove(); }); $('.control.ui-draggable-dragging') .toggleClass('last', $control.is(':last-child') && (direction > 0)) var $placeholder = $('
    ' + type + '
    ') .css('height', cachedHeight + 'px') .slideDown('fast'); if($this.is('.ctrlBreakPointDataElement')){ if(isInsideTheBreakPointData($control)){ if (direction < 0){ $control.before($placeholder); } else if (direction == 0){ $control.append($placeholder); }else if (direction > 0){ $control.after($placeholder); } } }else{ if (direction < 0){ $control.before($placeholder); } else if (direction == 0){ $control.append($placeholder); }else if (direction > 0){ $control.after($placeholder); } } }, dropCallback: function($helper) { if(!isVersion(VERSION_STRICT_FORM_BUILDER) && isFormOpenSpecial && !isVersion(VERSION_ADD_DEL_CTRL_OSP) && !isVersion(VERSION_ADD_CTRL_OSP)){ return; } var $target = $('.workspace:visible .placeholder:not(.closing)'); if(($this.is('.podSpecialCtrl') || $this.is('.invSpecialCtrl') || $this.is('.scheduleSpecialCtrl')) && $('.workspace:visible .ctrlUndoMark').length > 0){ var $ctrlUndoMark = $('.workspace:visible .ctrlUndoMark'); if($target.parents('.ctrlPOD') != $ctrlUndoMark.parents('.ctrlPOD')){ $ctrlUndoMark.replaceWith($this); $this.show(); $('.workspace:visible .placeholder:not(.closing)').remove(); return; } } controlDataChange(); if($('.getStartVideo')){ $('.getStartVideo').remove(); } if ($target.length == 1){ if($this.hasClass('multi-selected')){ var selectedCtrls = $('.workspace:visible .control.multi-selected'); $target.replaceWith($this); var $current = $this; var thisPos = multiSelectedControls[$this.attr('id')]; for(var index=0; index 0){ isSearchCtrl.attr('style', 'display:none'); var isSearchCtrlChk = isSearchCtrl.find('.editorCheckbox'); if(properties.isSearchField){ properties.isSearchField.value = false; } if(isSearchCtrlChk.length > 0 && isSearchCtrlChk[0].checked){ $('.propertiesPane:visible li.name .editorTextfield').trigger('searchDataNameChange', false); //$(isSearchCtrlChk[0]).click(); isSearchCtrlChk.prop('checked', false); } } }else{ if(properties.isSearchField != undefined){ properties.isSearchField.value = false; } } } var isInPOD = isInsideThePOD($this); var isInTable = isInsideTheInvoiceTable($this); var isInGrid = isInsideTheGrid($this); var isInButtonGrid = isInsideTheButtonGrid($this); var isInBreakPointData = isInsideTheBreakPointData($this); if (isInTable || isInGrid || isInButtonGrid || isInBreakPointData || isInPOD){ if($this.hasClass('selected')){ if(isInGrid && isVersion(VERSION_SKIP_IN_GRID)){ }else{ $('.propertiesPane:visible .skipConditionsEditor .removeCondition').trigger('click', true); } $('.propertiesPane:visible .relevanceConditionsEditor .removeCondition').trigger('click', true); var $propertyList = $('.propertyList:visible'); if($propertyList.find('.advanced').length > 0){ $propertyList.find('.advanced').attr('style', 'display:none'); }else{ $propertyList.find('.relevanceConditionsEditor').attr('style', 'display:none'); } if(isInButtonGrid){ $propertyList.find('.imgJustify').attr('style', 'display:none'); if(properties.id.ctrlType == CONST_CTRL_TYPE_INPUTACTION){ $propertyList.find('.turnOffSelectionOutline').attr('style', 'display:initial'); } }else{ if(properties.id.ctrlType == CONST_CTRL_TYPE_INPUTACTION){ $propertyList.find('.turnOffSelectionOutline').attr('style', 'display:none'); $propertyList.find('.turnOffSelectionOutline input').prop('checked', false).trigger('editorCheckbox_Change'); } } if(isVersion(VERSION_NEW_TOOL_LAYOUT)){ if(properties.iteConditions && isVersion(properties.iteConditions.version)){ }else{ $propertyList.find('li.actionGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION); } if(properties.skipIfConditions && isVersion(properties.skipIfConditions.version)){ }else{ $propertyList.find('li.actionGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION); } $propertyList.find('li.isShowRelevanceCondition').addClass(CONST_CSS_CLASS_HIDE_SESSION); $propertyList.find('li.relevanceconds').addClass(CONST_CSS_CLASS_HIDE_SESSION); if(isInGrid && isVersion(VERSION_SKIP_IN_GRID)){ }else{ $propertyList.find('li.isShowSkipCondition').addClass(CONST_CSS_CLASS_HIDE_SESSION); $propertyList.find('li.skipconds').addClass(CONST_CSS_CLASS_HIDE_SESSION); } if(properties.readOnlyIfConditions && isVersion(properties.readOnlyIfConditions.version)){ }else{ $propertyList.find('li.actionGroup').addClass(CONST_CSS_CLASS_HIDE_SESSION); } } if(isInTable){ //in talbe if(properties.apperance){ if(isVersion(VERSION_SHOW_SECONDS_COLOR_ANSWER) && properties.answerColor){ }else{ $propertyList.find('.apperance').attr('style', 'display:none'); properties.apperance.value = "Default"; } } if(properties.removeAnswerBorder){ $propertyList.find('.removeAnswerBorder').attr('style', 'display:none'); properties.removeAnswerBorder.value = false; } if($propertyList.find('.shadedHeadings').length > 0){ $propertyList.find('.shadedHeadings').attr('style', 'display:none'); } }else if(isInPOD){ //in POD if(properties.apperance){ //$propertyList.find('.apperance .apperanceContent').attr('style', 'display:none'); $propertyList.find('.apperance').attr('style', 'display:none'); properties.apperance.value = "Default"; } if(properties.removeAnswerBorder){ $propertyList.find('.removeAnswerBorder').attr('style', 'display:none'); properties.removeAnswerBorder.value = false; } if($propertyList.find('.shadedHeadings').length > 0){ $propertyList.find('.shadedHeadings').attr('style', 'display:none'); } if($propertyList.find('.hintLink').length > 0){ $propertyList.find('.hintLink').attr('style', 'display:none'); } if($propertyList.find('.imgJustify').length > 0){ $propertyList.find('.imgJustify').attr('style', 'display:none'); } if($propertyList.find('li.range').length > 0){ $propertyList.find('li.range').attr('style', 'display:none'); } if($propertyList.find('li.validateValue').length > 0){ $propertyList.find('li.validateValue').attr('style', 'display:none'); } if($propertyList.find('li.tip').length > 0){ $propertyList.find('li.tip').attr('style', 'display:none'); } }else{ //in grid if(isInsideTheGridFreeForm($this)){ if(properties.id.ctrlType != 'inputLabel'){ if(properties.apperance){ $propertyList.find('.apperance .apperanceContent').attr('style', 'display:none'); properties.apperance.value = "Default"; } if($propertyList.find('.shadedHeadings').length > 0){ $propertyList.find('.shadedHeadings').attr('style', 'display:none'); } } } } if(properties.removeSpaceGroup){ $propertyList.find('.removeSpaceGroup').attr('style', 'display:none'); }else{ if(properties.removeSpaceAbove){ $propertyList.find('.removeSpaceAbove').attr('style', 'display:none'); } if(properties.removeSpaceBelow){ $propertyList.find('.removeSpaceBelow').attr('style', 'display:none'); } } }else{ if(properties.relevanceconds != undefined){ properties.relevanceconds.value = []; } if(properties.skipconds != undefined){ properties.skipconds.value = []; } } if(isInGrid && isVersion(VERSION_SKIP_IN_GRID)){ }else if(isVersion(VERSION_NEW_TOOL_LAYOUT) && properties.isShowSkipCondition){ properties.isShowSkipCondition.value = false; } if(isVersion(VERSION_NEW_TOOL_LAYOUT) && properties.isShowRelevanceCondition){ properties.isShowRelevanceCondition.value = false; } if(isVersion(VERSION_READ_ONLY_IF) && properties.isShowReadOnlyIfCondition){ properties.isShowReadOnlyIfCondition.value = false; } var $info = $this.children('.controlInfo'); $info.children('.controlSkipConditions').addClass(CONST_CSS_CLASS_HIDE_SESSION); $info.children('.controlSkipIfConditions').addClass(CONST_CSS_CLASS_HIDE_SESSION); $info.children('.controlRelevanceConditions').addClass(CONST_CSS_CLASS_HIDE_SESSION); $info.children('.controlIfThenElse').addClass(CONST_CSS_CLASS_HIDE_SESSION); $info.children('.controlReadOnlyIf').addClass(CONST_CSS_CLASS_HIDE_SESSION); }else{ if($this.hasClass('selected')){ var $propertyList = $('.propertyList:visible'); if($propertyList.find('.advanced').length > 0){ $propertyList.find('.advanced').attr('style', ''); }else{ $propertyList.find('.relevanceConditionsEditor').attr('style', ''); } if(isInButtonGrid){ $propertyList.find('.imgJustify').attr('style', ''); if(properties.id.ctrlType == CONST_CTRL_TYPE_INPUTACTION){ $propertyList.find('.turnOffSelectionOutline').attr('style', 'display:initial'); } }else{ if(properties.id.ctrlType == CONST_CTRL_TYPE_INPUTACTION){ $propertyList.find('.turnOffSelectionOutline').attr('style', 'display:none'); $propertyList.find('.turnOffSelectionOutline input').prop('checked', false).trigger('editorCheckbox_Change'); } } } } if($this.parents('.ctrlScoreTable').length > 0){ var ctrlCopys = $this.parents('.ctrlScoreTable').find('.workspaceInner .control'); for(var i=0; i 0){ var ctrlCopys = $this.parents('.ctrlGrid').find('.workspaceInner .control'); for(var i=0; i 0){ parents.find('.containerEmptyError').css(CONST_CSS_KEY_DISPLAY, CONST_VALUE_NONE); } $this.trigger('click'); }, insertPlaceholder: false }); }); }; $.fn.addAllExternalForPOD = function(type){ if(type == CONST_CTRL_TYPE_CTRLPOD){ var $this = $(this); var data = getDataRepresentation($this); data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), data.type); if(data.children.length == 0){ appendAllExternalForPOD(data.children, data); loadGroupChildren($this.find('.workspaceInner'), data.children); } } return $(this); } $.fn.addAllExternalForINV = function(type){ if(type == CONST_CTRL_TYPE_CTRLINV){ var $this = $(this); var data = getDataRepresentation($this); data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), data.type); if(data.children.length == 0){ appendAllExternalForINV(data.children, data); loadGroupChildren($this.find('.workspaceInner'), data.children); } } return $(this); } $.fn.addAllExternalForScheduleWidget = function(type){ if(type == CONST_CTRL_TYPE_CTRLSCHEDULE){ var $this = $(this); var data = getDataRepresentation($this); data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), data.type); if(data.children.length == 0){ appendAllExternalForScheduleWidget(data.children, data); var ctrlProperties = $(this).data('odkControl-properties'); loadGroupChildren($this.find('.workspaceInner'), data.children); ctrlProperties.dispatchDate.value = data.dispatchDate; //$this.click(); } } return $(this); } $.fn.addCtrlExternalForPOD = function(type, isPrepend){ var properties = undefined; var dataTmp = undefined; var $this = $(this); var data = getDataRepresentation($this); data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), data.type); switch(type){ case '__ID': // Qty column properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_TEXT]); properties.id.value = POD_ID_COL_ID + data.id; properties.name.value = 'S' + data.id + '__ID'; var $ctrl = $('
    ').data('odkControl-properties', properties); dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUT_TEXT; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD; dataTmp.label.eng = 'ID'; dataTmp.readOnly = true; dataTmp.readOnlyDsp = true; //data.children.push(dataTmp); dataTmp.replaceCtrlClass = 'ctrlPODIDMark'; break; case '__Qty': // Qty column properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]); properties.id.value = POD_QTY_COL_ID + data.id; properties.name.value = 'S' + data.id + '__Qty'; var $ctrl = $('
    ').data('odkControl-properties', properties); dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD; dataTmp.label.eng = 'Qty'; dataTmp.hideInMobile = false; dataTmp.hideInWeb = false; dataTmp.hideInPDF = false; dataTmp.hidePdfWeb = false; dataTmp.readOnly = true; dataTmp.readOnlyDsp = true; //data.children.push(dataTmp); dataTmp.replaceCtrlClass = 'ctrlPODQtyMark'; break; case '__Actual': // Actual column properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]); properties.id.value = POD_ACTUAL_COL_ID + data.id; properties.name.value = 'S' + data.id + '__Actual'; var $ctrl = $('
    ').data('odkControl-properties', properties); dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD; dataTmp.label.eng = 'Actual'; var parentCtrlProperties = $(this).data('odkControl-properties'); var actualLabel = lbl_actual; if(parentCtrlProperties && parentCtrlProperties.podDataSource && parentCtrlProperties.podDataSource.value == CONST_DS_NONE){ actualLabel = lbl_actual_qty; } dataTmp.label.eng = actualLabel; if(data.showActual){ dataTmp.hideInMobile = false; dataTmp.hideInWeb = false; dataTmp.hideInPDF = false; dataTmp.hidePdfWeb = false; }else{ dataTmp.hideInMobile = true; dataTmp.hideInWeb = true; dataTmp.hideInPDF = true; dataTmp.hidePdfWeb = true; } dataTmp.readOnly = false; dataTmp.readOnlyDsp = true; //data.children.push(dataTmp); dataTmp.replaceCtrlClass = 'ctrlPODActualMark'; break; case '__Damaged': properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]); properties.id.value = POD_DAMAGED_COL_ID + data.id; properties.name.value = 'S' + data.id + '__Damaged'; var $ctrl = $('
    ').data('odkControl-properties', properties); dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD; /*dataTmp.options = []; dataTmp.options.push({'text':{'eng':'Yes'}, 'val':'yes'}); dataTmp.displayType = CONST_ACROSS;*/ dataTmp.label.eng = 'Damaged'; dataTmp.replaceCtrlClass = 'ctrlPODDamagedMark'; //data.children.push(dataTmp); break; case '__Damaged_Check': properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUTSELECTMANY]); properties.id.value = POD_DAMAGED_COL_ID + data.id; properties.name.value = 'S' + data.id + '__Damaged'; var $ctrl = $('
    ').data('odkControl-properties', properties); dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUTSELECTMANY; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD; dataTmp.options = []; dataTmp.options.push({'text':{'eng':'Yes'}, 'val':'yes'}); dataTmp.displayType = CONST_ACROSS; dataTmp.label.eng = 'Damaged'; if(data.manifestMethod != 'button'){ dataTmp.readOnly = true; dataTmp.readOnlyDsp = true; }else{ dataTmp.readOnly = false; dataTmp.readOnlyDsp = false; } dataTmp.replaceCtrlClass = 'ctrlPODDamagedMark'; //data.children.push(dataTmp); break; case '__Rejected': properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]); properties.id.value = POD_REJECTED_COL_ID + data.id; properties.name.value = 'S' + data.id + '__Rejected'; var $ctrl = $('
    ').data('odkControl-properties', properties); dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD; /*dataTmp.options = []; dataTmp.options.push({'text':{'eng':'Yes'}, 'val':'yes'}); dataTmp.displayType = CONST_ACROSS;*/ dataTmp.label.eng = 'Rejected'; //data.children.push(dataTmp); dataTmp.replaceCtrlClass = 'ctrlPODRejectedMark'; break; case '__Rejected_Check': properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUTSELECTMANY]); properties.id.value = POD_REJECTED_COL_ID + data.id; properties.name.value = 'S' + data.id + '__Rejected'; var $ctrl = $('
    ').data('odkControl-properties', properties); dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUTSELECTMANY; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD; dataTmp.options = []; dataTmp.options.push({'text':{'eng':'Yes'}, 'val':'yes'}); dataTmp.displayType = CONST_ACROSS; dataTmp.label.eng = 'Rejected'; if(data.manifestMethod != 'button'){ dataTmp.readOnly = true; dataTmp.readOnlyDsp = true; }else{ dataTmp.readOnly = false; dataTmp.readOnlyDsp = false; } dataTmp.replaceCtrlClass = 'ctrlPODRejectedMark'; //data.children.push(dataTmp); break; case '__Comment': properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_TEXT]); properties.id.value = POD_COMMENT_COL_ID + data.id; properties.name.value = 'S' + data.id + '__Comment'; var $ctrl = $('
    ').data('odkControl-properties', properties); var dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUT_TEXT; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD; dataTmp.label.eng = 'Comment'; dataTmp.readonly = false; dataTmp.readOnlyDsp = false; //data.children.push(dataTmp); dataTmp.replaceCtrlClass = 'ctrlPODCommentMark'; break; case '__Deliver': var label = 'Pickup'; if(data.manifestType == 'delivery'){ label = 'Deliver'; } properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUTACTION]); properties.id.value = POD_DELIVER_COL_ID + data.id; properties.name.value = 'S' + data.id + '__Deliver'; var $ctrl = $('
    ').data('odkControl-properties', properties); var dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUTACTION; dataTmp.imgAction = label; dataTmp.actionBtnText = label; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD; dataTmp.label.eng = label; //data.children.push(dataTmp); break; case '__StopNo': // Stop # column /*properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_NUMERIC]); properties.id.value = POD_STOP_NO_COL_ID + data.id; properties.name.value = 'S' + data.id + '__StopNo'; var $ctrl = $('
    ').data('odkControl-properties', properties); dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUT_NUMERIC; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLPOD; dataTmp.label.eng = 'Stop #'; dataTmp.hideInMobile = false; dataTmp.hideInWeb = false; dataTmp.hideInPDF = false; dataTmp.hidePdfWeb = false; dataTmp.readOnly = false; dataTmp.readOnlyDsp = true; //data.children.push(dataTmp);*/ break; } if(properties){ loadGroupChildren($this.find('.workspaceInner'), [dataTmp], isPrepend); } return $(this); } $.fn.addCtrlExternalForINV = function(type, isPrepend){ var properties = undefined; var dataTmp = undefined; var $this = $(this); var data = getDataRepresentation($this); data.children = extractRecurse($this.children('.workspaceInnerWrapper').children('.workspaceInner'), data.type); switch(type){ case '__ID': // ID column properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_TEXT]); properties.id.value = INV_ID_COL_ID + data.id; properties.name.value = 'I' + data.id + 'A__ID'; var $ctrl = $('
    ').data('odkControl-properties', properties); dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUT_TEXT; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLINV; dataTmp.label.eng = 'ID'; dataTmp.readOnly = true; dataTmp.readOnlyDsp = true; //data.children.push(dataTmp); dataTmp.replaceCtrlClass = 'ctrlINVIDMark'; break; case '__Comment': properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_TEXT]); properties.id.value = INV_COMMENT_COL_ID + data.id; properties.name.value = 'I' + data.id + 'A__Comment'; var $ctrl = $('
    ').data('odkControl-properties', properties); var dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUT_TEXT; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLINV; dataTmp.label.eng = 'Comment'; dataTmp.readonly = false; dataTmp.readOnlyDsp = false; //data.children.push(dataTmp); dataTmp.replaceCtrlClass = 'ctrlINVCommentMark'; break; case '__Image': var label = 'Photo'; properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUTIMAGE]); properties.id.value = INV_IMAGE_COL_ID + data.id; properties.name.value = 'I' + data.id + 'A__Image'; var $ctrl = $('
    ').data('odkControl-properties', properties); var dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUTIMAGE; dataTmp.imgAction = label; dataTmp.actionBtnText = label; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLINV; dataTmp.label.eng = label; //data.children.push(dataTmp); dataTmp.replaceCtrlClass = 'ctrlINVImageMark'; break; default: //__|[String|Number]| var arr = type.split('|'); var kind = CONST_CTRL_KIND_STRING; if(arr.length>1){ kind = arr[1]; } var lookupTable = ''; if(arr.length>2){ lookupTable = arr[2]; } if(kind == CONST_CTRL_KIND_STRING){ properties = $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[CONST_CTRL_TYPE_INPUT_TEXT]); properties.id.value = nextInvLuFieldIndex(INV_LU_FIELD_COL_ID + data.id); properties.name.value = 'I' + data.id + 'F__' + arr[0]; var $ctrl = $('
    ').data('odkControl-properties', properties); var dataTmp = getDataRepresentation($ctrl); dataTmp.type = CONST_CTRL_TYPE_INPUT_TEXT; dataTmp.parentCtrlType = CONST_CTRL_TYPE_CTRLINV; dataTmp.label.eng = getLookupFieldName(lookupTable, arr[0]); dataTmp.readonly = false; dataTmp.readOnlyDsp = false; //data.children.push(dataTmp); dataTmp.replaceCtrlClass = 'ctrlINVCommentMark'; }else{ } } if(properties){ loadGroupChildren($this.find('.workspaceInner'), [dataTmp], isPrepend); } return $(this); } // Constructor $.fn.odkControlFV = function(type, options, defaultProperties, ctrlPropreties) { // Abort for unknown types if ($.fn.odkControl.controlProperties[type] === undefined) return; var options = $.extend({}, $.fn.odkControl.defaults, options); return this.each(function() { var $this = $(this); // Support the metadata plugin var config = $.meta ? $.extend({}, options, $this.data()) : options; $this.data('odkControl-config', config); $this.data('odkControl-type', type); // Deep clone the properties if relevant var properties = null; if ((type == CONST_CTRL_TYPE_GROUP) || (type == 'branch') || (type == 'inputPageBreak') || (type == 'inputLabel') || (type == CONST_CTRL_TYPE_INPUTSCORESUMMARY) || (type == CONST_CTRL_TYPE_INPUTNUMBERING) || (type == CONST_CTRL_TYPE_INPUTNEWPAYMENT) || (type == CONST_CTRL_TYPE_INPUTACTION) || (type == CONST_CTRL_TYPE_INPUTPAYMENT) || (type == 'inputInstruction') || //(type == CONST_CTRL_TYPE_INPUTCALCULATE) || (type == CONST_CTRL_TYPE_INPUTLOOKUP) || (type == CONST_CTRL_TYPE_INPUTLFBLUETOOTH) || (type == CONST_CTRL_TYPE_INPUTLOOKUP_RETRIEVE) || (type == 'inputFacingTable') || (type == 'inputLookupMulti') || (type == CONST_CTRL_TYPE_INPUTEMAILREPORT) || (type == CONST_CTRL_TYPE_INPUTFAX) || (type == CONST_CTRL_TYPE_INPUTSECUREEMAILREPORT) || (type == CONST_CTRL_TYPE_INPUTAPPROVAL) || (type == 'inputSaveAndSend') || (type == CONST_CTRL_TYPE_CTRLTABLE) || (type == CONST_CTRL_TYPE_CTRLSCHEDULE) || (type == CONST_CTRL_TYPE_CTRLPOD) || (type == CONST_CTRL_TYPE_CTRLINV) || (type == CONST_CTRL_TYPE_CTRLSCORETABLE) || (type == CONST_CTRL_TYPE_CTRLGRID) || (type == CONST_CTRL_TYPE_SCORESUMMARY) || (type == 'ctrlBreakPointDataElement') || (type == CONST_CTRL_TYPE_CTRLINV)){ properties = defaultProperties || $.extend(true, {}, $.fn.odkControl.controlProperties[type]); }else{ properties = defaultProperties || $.extend(true, $.extend(true, {}, $.fn.odkControl.defaultProperties), $.fn.odkControl.controlProperties[type]); removeUnsupportProperty(properties, type); } removeUnuseVersion(properties); if(type == CONST_CTRL_TYPE_INPUTLOCATION){ properties.defaultValue.type = 'gps'; }else if(type == CONST_CTRL_TYPE_INPUTSELECTONE){ properties.defaultValue.type = 'choice'; }else if(type == CONST_CTRL_TYPE_INPUTSCOREONE){ properties.defaultValue.type = 'choice'; }else if(type == CONST_CTRL_TYPE_INPUTSCORESUMMARY){ //properties.defaultValue.type = 'string'; }else if(type == CONST_CTRL_TYPE_INPUTSELECTMANY){ properties.defaultValue.type = 'choice'; }else if(type == CONST_CTRL_TYPE_INPUTDATE){ properties.defaultValue.type = 'dateDefaultField'; }else if(type == CONST_CTRL_TYPE_INPUT_NUMERIC){ properties.defaultValue.type = 'numericDefaultField'; properties.defaultValue.kind = 'Integer'; properties.range.kind = 'Integer'; }else if(type == CONST_CTRL_TYPE_INPUTTRENDS){ properties.range.kind = 'Integer'; }else if(type == mdi_kind_inputImage){ properties.defaultValue.type = 'hidden'; }else if(type == mdi_kind_inputAudio){ properties.defaultValue.type = 'hidden'; }else if(type == mdi_kind_inputVideo){ properties.defaultValue.type = 'hidden'; }else if(type == CONST_CTRL_TYPE_INPUTMEDIA){ properties.defaultValue.type = 'hidden'; }else if(type == mdi_kind_inputSketch){ properties.defaultValue.type = 'hidden'; }else if(type == mdi_kind_inputSignature){ properties.defaultValue.type = 'hidden'; }else if(type == 'inputDraw'){ properties.defaultValue.type = 'hidden'; }else if(type == CONST_CTRL_TYPE_INPUTBARCODE){ properties.defaultValue.type = 'barcodeDefaultField'; properties.defaultValue.kind = 'String'; properties.length.kind = 'String'; }else if(type == CONST_CTRL_TYPE_INPUTNFC){ properties.defaultValue.type = 'hidden'; }else if(type == CONST_CTRL_TYPE_INPUTFORWARD || type == CONST_CTRL_TYPE_INPUTSECUREFORWARD){ properties.defaultValue.type = 'forwardDefaultField'; properties.defaultValue.kind = CONST_VALUE_NONE; }else if(type == CONST_CTRL_TYPE_INPUTCOUNTER){ properties.defaultValue.type = 'numericDefaultField'; properties.defaultValue.kind = 'Integer'; properties.range.kind = 'Integer'; }else if(type == CONST_CTRL_TYPE_INPUTCALCULATE){ properties.defaultValue.type = 'hidden'; properties.readOnlyGroup.type = 'hidden'; properties.readOnly.type = 'hidden'; properties.readOnlyDsp.type = 'hidden'; properties.requiredGroup.type = 'hidden'; properties.required.type = 'hidden'; properties.dispatchRequired.type = 'hidden'; }else if(type == CONST_CTRL_TYPE_INPUTATTACHMENT){ properties.defaultValue.type = 'hidden'; } if(properties.id.value == undefined || properties.id.value == ''){ if(utils.seq.getUniqueId) { properties.id.value = utils.seq.getUniqueId(); } $this.find('.controlErrorMessage').addClass('ctrlId_' + properties.id.value); } if (properties.name.value == 'untitled' || properties.name.value == ''){ properties.name.value = 'untitled' + properties.id.value; } if (properties.name.value == 'page_break'){ properties.name.value = 'page_break' + properties.id.value; } $this.data('odkControl-properties', properties); $this.on('odkControlFV-propertiesUpdated', function(event) { event.stopPropagation(); refreshFromViewProperties($this, type, config, properties); }); $this.trigger('odkControlFV-propertiesUpdated'); fillDataControlFV($this, type, config, properties, ctrlPropreties); // special treatment for groups and branches // if (type == CONST_CTRL_TYPE_GROUP) // $('
    ') // .insertAfter($this.children('.controlInfo')); if (type == CONST_CTRL_TYPE_GROUP){ var groupCtrl = $('
    ') .insertAfter($this.children('.controlInfo')); // PCA-293: Webapp/Preview - Apply new block formats for all widgets. //if(isVersion(VERSION_SHADINGS_AND_BUTTON_TEXT_WEB_APP) && glbBuildFormSettingsWA.isShadedheadings === true) if(isVersion(VERSION_SHADINGS_AND_BUTTON_TEXT_WEB_APP)) { //hqkhanh $this.addClass('no-border-left-shading').addClass('no-padding-left-shading'); groupCtrl.addClass('group-shaded-mode-shading'); groupCtrl.addClass('no-padding-left-shading'); } } }); }; // Update the label "Required" into "Mobile Required" // (only for latest version) if (true === isUsingDispatchRequiredCustom()) { lbl_required = lbl_required_alternative_value; lbl_required_des = lbl_required_des_alternative_value; } // Plugin Defaults $.fn.odkControl.defaults = { }; // Default property fields $.fn.odkControl.defaultProperties = { id: { type: CONST_VALUE_NONE, value:'' }, ctrlDesc: { name: '', type: 'uiLabel', description: '', value:{Version: CTRL_VERSION_1_0}, valueIfUndefined: {Version: CTRL_VERSION_1_0} }, label: { name: lbl_caption_txt, type: 'uiText', description: '',//lbl_ques_cap_des, required: true, value: {}, summary: false }, hint: { name: lbl_hint, type: 'uiText', description: lbl_add_help_des, value: {}, summary: false }, name: { name: lbl_data_name, type: 'text', description: lbl_data_name_des, limit: [ 'nosymbols', 'lowercase', 'unique' ], required: true, value: 'untitled', valueinput: '', summary: false }, defaultValue: { name: lbl_default_val, type: 'text', description: lbl_default_val_des, value: '', info_msg: {inputText: hl_text + '#default-value', inputNumeric: hl_numeric + '#default-value', inputTrends: hl_trends + '#default-value', inputDate: hl_date_time + '#default-value', inputSelectOne: hl_choose_one + '#default-value', inputScoreOne: hl_score_by_category + '#default-value', inputSelectMany: hl_select_multiple + '#default-value', inputLocation: hl_gps_location + '#default-value', inputImage: hl_image + '#default-value', inputAudio: hl_audio + '#default-value', inputVideo: hl_video + '#default-value', inputMedia: hl_media + '#default-value', inputSketch: hl_sketch + '#default-value', inputSignature: hl_signature + '#default-value', inputDraw: hl_draw + '#default-value', inputBarcode: hl_barcode + '#default-value', inputNFC: hl_nfc + '#default-value', inputForward: hl_forward + '#default-value', inputSecureForward: hl_forward + '#default-value', inputCounter: hl_counter + '#default-value', inputRIF: hl_rif + '#default-value', inputPageBreak: hl_page + '#default-value', inputLabel: hl_label + '#default-value', inputScoreSummary: hl_score_summary + '#default-value', inputNumbering: hl_auto_number + '#default-value', inputAction: hl_action_buttons + '#default-value', inputPayment: hl_payment + '#default-value', inputInstruction: hl_instruction + '#default-value', inputEmailReport: hl_email + '#default-value', inputSecureEmailReport: hl_email + '#default-value', inputApproval: hl_approval + '#default-value', inputCalculate: hl_calculations + '#default-value', inputLookup: hl_data_lookup + '#default-value', inputLFBluetooth: hl_lf_bluetooth + '#default-value', inputLookupRetrieve: hl_data_lookup + '#default-value', inputFacingTable: hl_facings + '#default-value', inputLookupMulti: hl_data_lookup + '#default-value', inputSaveAndSend: hl_save_end_send + '#default-value', group: hl_repeatable + '#default-value', ctrlTable: hl_table + '#default-value', ctrlSchedule: hl_table + '#default-value', ctrlGrid: hl_layout_grid + '#default-value', ctrlScoreTable: hl_questionnaire + '#default-value', ctrlButtonGrid: hl_button_grid + '#default-value'}, info_icon: false, summary: false }, numberOfLine: { name: lbl_number_of_line, type: 'numericGTZero', description: lbl_number_of_line_des, add_class: 'show-up-down', value: '1', ctrlActive: [CONST_CTRL_TYPE_INPUT_TEXT], summary: false, style: 'padding-top: 5px;', info_icon: false, info_msg: hl_text + '#Number-of-lines', version: VERSION_NOFL}, isSearchField: { name: lbl_is_search_field, type: 'bool', description: lbl_is_search_field_des, value: false, summary: true, version: '' + VERSION_OPTION_SERABLE_FILED }, justificationGroup: { name: lbl_justification_group, type: 'property_group', description: lbl_justification_group_des, summary: true, info_icon: false, info_msg: hl_shared_ajr + '#Justification', version: '' + VERSION_TOOL_NEW_JUSTIFICATION}, justificationCaption: { name: lbl_justification_caption, type: 'enumeration_radio', hideCaption: true, showCaptionAcross: { captionStyle: 'float:left;margin-top:-5px;width:70px;' }, showOptionAcross: true, options: [ '0$$L', '1$$C', '2$$R'], value: '0', summary: true, parent_group: 'justificationGroup', paddingLeft: '20px', version: '' + VERSION_TOOL_NEW_JUSTIFICATION}, justificationHint: { name: lbl_justification_hint, type: 'enumeration_radio', hideCaption: true, showCaptionAcross: { captionStyle: 'float:left;margin-top:-5px;width:70px;' }, showOptionAcross: true, options: [ '0$$L', '1$$C', '2$$R'], value: '0', summary: true, parent_group: 'justificationGroup', paddingLeft: '20px', version: '' + VERSION_TOOL_NEW_JUSTIFICATION}, justificationAnswer: { name: lbl_justification_answer, type: 'enumeration_radio', hideCaption: true, showCaptionAcross: { captionStyle: 'float:left;margin-top:-5px;width:70px;' }, showOptionAcross: true, options: [ '0$$L', '1$$C', '2$$R'], value: '0', summary: true, parent_group: 'justificationGroup', paddingLeft: '20px', version: '' + VERSION_TOOL_NEW_JUSTIFICATION}, removeSpaceGroup: { name: lbl_remove_space_group, type: 'property_group', description: lbl_remove_space_group_des, info_msg: {inputText: hl_shared_ajr + '#remove-space', inputNumeric: hl_shared_ajr + '#remove-space', inputTrends: hl_shared_ajr + '#remove-space', inputDate: hl_shared_ajr + '#remove-space', inputSelectOne: hl_shared_ajr + '#remove-space', inputScoreOne: hl_shared_ajr + '#remove-space', inputSelectMany: hl_shared_ajr + '#remove-space', inputLocation: hl_shared_ajr + '#remove-space', inputImage: hl_shared_ajr + '#remove-space', inputAudio: hl_shared_ajr + '#remove-space', inputVideo: hl_shared_ajr + '#remove-space', inputMedia: hl_shared_ajr + '#remove-space', inputSketch: hl_shared_ajr + '#remove-space', inputSignature: hl_shared_ajr + '#remove-space', inputDraw: hl_shared_ajr + '#remove-space', inputBarcode: hl_shared_ajr + '#remove-space', inputNFC: hl_shared_ajr + '#remove-space', inputForward: hl_shared_ajr + '#remove-space', inputSecureForward: hl_shared_ajr + '#remove-space', inputCounter: hl_shared_ajr + '#remove-space', inputRIF: hl_shared_ajr + '#remove-space', inputPageBreak: hl_shared_ajr + '#remove-space', inputLabel: hl_shared_ajr + '#remove-space', inputScoreSummary: hl_shared_ajr + '#remove-space', inputNumbering: hl_shared_ajr + '#remove-space', inputAction: hl_shared_ajr + '#remove-space', inputPayment: hl_shared_ajr + '#remove-space', inputInstruction: hl_shared_ajr + '#remove-space', inputEmailReport: hl_shared_ajr + '#remove-space', inputSecureEmailReport: hl_shared_ajr + '#remove-space', inputApproval: hl_shared_ajr + '#remove-space', inputCalculate: hl_shared_ajr + '#remove-space', inputLookup: hl_shared_ajr + '#remove-space', inputLFBluetooth: hl_shared_ajr + '#remove-space', inputLookupRetrieve: hl_shared_ajr + '#remove-space', inputFacingTable: hl_shared_ajr + '#remove-space', inputLookupMulti: hl_shared_ajr + '#remove-space', inputSaveAndSend: hl_shared_ajr + '#remove-space', group: hl_shared_ajr + '#remove-space', ctrlTable: hl_shared_ajr + '#remove-space', ctrlSchedule: hl_shared_ajr + '#remove-space', ctrlGrid: hl_shared_ajr + '#remove-space', ctrlScoreTable: hl_shared_ajr + '#remove-space', ctrlButtonGrid: hl_shared_ajr + '#remove-space'}, summary: true, info_icon: false, version: '' + VERSION_TOOL_PARAM_CLEANUP}, readOnlyGroup: { name: lbl_read_only_group, type: 'property_group', showSelectAll: true, add_class: 'notAcross margin-left-10', description: lbl_read_only_group_des, info_msg: {inputText: hl_shared_readonly + '#read-only', inputNumeric: hl_shared_readonly + '#read-only', inputTrends: hl_shared_readonly + '#read-only', inputDate: hl_shared_readonly + '#read-only', inputSelectOne: hl_shared_readonly + '#read-only', inputScoreOne: hl_shared_readonly + '#read-only', inputSelectMany: hl_shared_readonly + '#read-only', inputLocation: hl_shared_readonly + '#read-only', inputImage: hl_shared_readonly + '#read-only', inputAudio: hl_shared_readonly + '#read-only', inputVideo: hl_shared_readonly + '#read-only', inputMedia: hl_shared_readonly + '#read-only', inputSketch: hl_shared_readonly + '#read-only', inputSignature: hl_shared_readonly + '#read-only', inputDraw: hl_shared_readonly + '#read-only', inputBarcode: hl_shared_readonly + '#read-only', inputNFC: hl_shared_readonly + '#read-only', inputForward: hl_shared_readonly + '#read-only', inputSecureForward: hl_shared_readonly + '#read-only', inputCounter: hl_shared_readonly + '#read-only', inputRIF: hl_shared_readonly + '#read-only', inputPageBreak: hl_shared_readonly + '#read-only', inputLabel: hl_shared_readonly + '#read-only', inputScoreSummary: hl_shared_readonly + '#read-only', inputNumbering: hl_shared_readonly + '#read-only', inputAction: hl_shared_readonly + '#read-only', inputPayment: hl_shared_readonly + '#read-only', inputInstruction: hl_shared_readonly + '#read-only', inputEmailReport: hl_shared_readonly + '#read-only', inputSecureEmailReport: hl_shared_readonly + '#read-only', inputApproval: hl_shared_readonly + '#read-only', inputCalculate: hl_shared_readonly + '#read-only', inputLookup: hl_shared_readonly + '#read-only', inputLFBluetooth: hl_shared_readonly + '#read-only', inputLookupRetrieve: hl_shared_readonly + '#read-only', inputFacingTable: hl_shared_readonly + '#read-only', inputLookupMulti: hl_shared_readonly + '#read-only', inputSaveAndSend: hl_shared_readonly + '#read-only', group: hl_shared_readonly + '#read-only', ctrlTable: hl_shared_readonly + '#read-only', ctrlSchedule: hl_shared_readonly + '#read-only', ctrlGrid: hl_shared_readonly + '#read-only', ctrlScoreTable: hl_shared_readonly + '#read-only', ctrlButtonGrid: hl_shared_readonly + '#read-only'}, summary: true, info_icon: false, version: '' + VERSION_TOOL_PARAM_CLEANUP}, readOnlyViewDataGroup: { name: lbl_use_view_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', description: '', parent_group: 'readOnlyGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyViewEdit: { name: lbl_edit,//lbl_view_edit_grp, style: 'padding-left: 30px;', type: 'bool', description: '', valueIfUndefined: false, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_edit,//lbl_view_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyDispatchGroup: { name: lbl_use_dis_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'readOnlyGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp, style: 'padding-left: 30px;', type: 'bool', description: '', valueIfUndefined: false, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_new, //lbl_dispatch_new_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp, style: 'padding-left: 30px;', type: 'bool', description: '', valueIfUndefined: false, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_edit, //lbl_dispatch_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyFillNSendGroup: { name: lbl_fill_and_send_grp_txt, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'readOnlyGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp, type: 'bool', style: 'padding-left: 30px;', description: '', valueIfUndefined: false, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_new, //lbl_fill_and_send_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()}, readOnlyUsersGroup: { name: lbl_users_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'readOnlyGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnly: { name: lbl_mobile_grp, type: 'bool', style: 'padding-left: 30px;', description: '', valueIfUndefined: false, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_mobile_grp, grp_description: ''}, readOnlyWebAppGrp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 30px;', description: '', valueIfUndefined: false, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_webapp_grp, grp_description: '', display_if_true_ctrl: 'readOnlyViewNew,readOnlyDispatchToEmail,readOnlyFillAndSendEdit,readOnlyWebApp,readOnlyEmbeddedForm,readOnlyFormLinks', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyViewNew: { name: lbl_view_new_grp, style: 'padding-left: 50px;', type: 'bool', description: '', valueIfUndefined: false, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_view_new_grp, grp_description: '', show_condition_ques: 'readOnlyWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyDispatchToEmail: { name: lbl_dispatch_to_email_grp, style: 'padding-left: 50px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_dispatch_to_email_grp, grp_description: '', show_condition_ques: 'readOnlyWebAppGrp', show_condition_ques_val: true, version: VERSION_DISPATCH_TO_EMAIL.toString()}, readOnlyFillAndSendEdit: { name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp, grp_description: '', valueIfUndefined: false, show_condition_ques: 'readOnlyWebAppGrp', show_condition_ques_val: true, version: VERSION_FNS_EDIT.toString()}, readOnlyWebApp: { name: lbl_web_client, //lbl_webapp_grp, type: 'bool', style: 'padding-left: 50px;', description: '', valueIfUndefined: false, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_web_client, //lbl_webapp_grp, grp_description: '', show_condition_ques: 'readOnlyWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyEmbeddedForm: { name: lbl_embedded_form, type: 'bool', style: 'padding-left: 50px;', description: '', valueIfUndefined: false, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_embedded_form, grp_description: '', show_condition_ques: 'readOnlyWebAppGrp', show_condition_ques_val: true, version: VERSION_CO_135_NEW_SETTING.toString()}, readOnlyFormLinks: { name: lbl_form_links_grp, type: 'bool', style: 'padding-left: 50px;', description: '', valueIfUndefined: false, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_form_links_grp, grp_description: '', show_condition_ques: 'readOnlyWebAppGrp', show_condition_ques_val: true, version: VERSION_RESTRICT_OPTION_FL.toString()}, readOnlyDsp: { name: lbl_dispatch_read_only, type: 'bool', grp_type: CONST_BOOL_GRP, description: lbl_dispatch_read_only_des, valueIfUndefined: false, value: false, summary: true, parent_group: 'readOnlyGroup', grp_name: lbl_dispatch_read_only_grp, grp_description: lbl_dispatch_read_only_grp_des, version: '' + VERSION_CTRL_PROPERTY_DSP_READ_ONLY, hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyForwardedGroup: { name: lbl_use_fowarded_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'readOnlyGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, readOnlyForwarded: { name: lbl_edit, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_edit, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, readOnlyRetrieveGroup: { name: lbl_retrieve_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'readOnlyGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, readOnlyOnRetrieve: { name: lbl_on_retrieve, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_on_retrieve, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, requiredGroup: { name: lbl_required_group, type: 'property_group', add_class: 'notAcross margin-left-10', description: lbl_required_group_des, showSelectAll: true, info_msg: {inputText: hl_shared_required + '#required', inputNumeric: hl_shared_required + '#required', inputTrends: hl_shared_required + '#required', inputDate: hl_shared_required + '#required', inputSelectOne: hl_shared_required + '#required', inputScoreOne: hl_shared_required + '#required', inputSelectMany: hl_shared_required + '#required', inputLocation: hl_shared_required + '#required', inputImage: hl_shared_required + '#required', inputAudio: hl_shared_required + '#required', inputVideo: hl_shared_required + '#required', inputMedia: hl_shared_required + '#required', inputSketch: hl_shared_required + '#required', inputSignature: hl_shared_required + '#required', inputDraw: hl_shared_required + '#required', inputBarcode: hl_shared_required + '#required', inputNFC: hl_shared_required + '#required', inputForward: hl_shared_required + '#required', inputSecureForward: hl_shared_required + '#required', inputCounter: hl_shared_required + '#required', inputRIF: hl_shared_required + '#required', inputPageBreak: hl_shared_required + '#required', inputLabel: hl_shared_required + '#required', inputScoreSummary: hl_shared_required + '#required', inputNumbering: hl_shared_required + '#required', inputAction: hl_shared_required + '#required', inputPayment: hl_shared_required + '#required', inputInstruction: hl_shared_required + '#required', inputEmailReport: hl_shared_required + '#required', inputSecureEmailReport: hl_shared_required + '#required', inputApproval: hl_shared_required + '#required', inputCalculate: hl_shared_required + '#required', inputLookup: hl_shared_required + '#required', inputLFBluetooth: hl_shared_required + '#required', inputLookupRetrieve: hl_shared_required + '#required', inputFacingTable: hl_shared_required + '#required', inputLookupMulti: hl_shared_required + '#required', inputSaveAndSend: hl_shared_required + '#required', group: hl_shared_required + '#required', ctrlTable: hl_shared_required + '#required', ctrlSchedule: hl_shared_required + '#required', ctrlGrid: hl_shared_required + '#required', ctrlScoreTable: hl_shared_required + '#required', ctrlButtonGrid: hl_shared_required + '#required'}, summary: true, info_icon: false, version: '' + VERSION_TOOL_PARAM_CLEANUP}, requiredViewDataGroup: { name: lbl_use_view_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', description: '', parent_group: 'requiredGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredViewEdit: { name: lbl_edit,//lbl_view_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_edit,//lbl_view_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredDispatchGroup: { name: lbl_use_dis_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'requiredGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_new, //lbl_dispatch_new_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_edit, //lbl_dispatch_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredFillNSendGroup: { name: lbl_fill_and_send_grp_txt, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'requiredGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_new, //lbl_fill_and_send_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()}, requiredUsersGroup: { name: lbl_users_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'requiredGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, required: { name: lbl_mobile_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_mobile_grp, grp_description: ''}, requiredWebAppGrp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, valueIfUndefined: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_webapp_grp, grp_description: '', display_if_true_ctrl: 'requiredViewNew,requiredDispatchToEmail,requiredFillAndSendEdit,requiredWebApp,requiredEmbeddedForm,requiredFormLinks', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredViewNew: { name: lbl_view_new_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_view_new_grp, grp_description: '', show_condition_ques: 'requiredWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredDispatchToEmail: { name: lbl_dispatch_to_email_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_dispatch_to_email_grp, grp_description: '', show_condition_ques: 'requiredWebAppGrp', show_condition_ques_val: true, version: VERSION_DISPATCH_TO_EMAIL.toString()}, requiredFillAndSendEdit: { name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp, grp_description: '', valueIfUndefined: false, show_condition_ques: 'requiredWebAppGrp', show_condition_ques_val: true, version: VERSION_FNS_EDIT.toString()}, requiredWebApp: { name: lbl_web_client, //lbl_webapp_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_web_client, //lbl_webapp_grp, grp_description: '', show_condition_ques: 'requiredWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredEmbeddedForm: { name: lbl_embedded_form, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_embedded_form, grp_description: '', show_condition_ques: 'requiredWebAppGrp', show_condition_ques_val: true, version: VERSION_CO_135_NEW_SETTING.toString()}, requiredFormLinks: { name: lbl_form_links_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_form_links_grp, grp_description: '', show_condition_ques: 'requiredWebAppGrp', show_condition_ques_val: true, version: VERSION_RESTRICT_OPTION_FL.toString()}, // The Dispatch Required (same as Required) dispatchRequired: { name: lbl_dispatch_control_required, type: 'bool', description: lbl_dispatch_control_required_des, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_dispatch_control_required_grp, grp_description: lbl_dispatch_control_required_grp_des, hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredForwardedGroup: { name: lbl_use_fowarded_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'requiredGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, requiredForwarded: { name: lbl_edit, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_edit, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, requiredRetrieveGroup: { name: lbl_retrieve_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'requiredGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, requiredOnRetrieve: { name: lbl_on_retrieve, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_on_retrieve, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, clearGroup: { name: lbl_clear_group, type: 'property_group', showSelectAll: true, add_class: 'notAcross margin-left-10', description: '', summary: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, clearRetrieveGroup: { name: lbl_retrieve_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'clearGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, clearOnRetrieve: { name: lbl_on_retrieve, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'clearGroup', grp_name: lbl_on_retrieve, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, //Remove space above removeSpaceAbove: { name: lbl_remove_space_above, type: 'bool', description: lbl_remove_space_above_des, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'removeSpaceGroup', grp_name: lbl_remove_space_above_grp, grp_description: lbl_remove_space_above_grp_des, version: '' + VERSION_REMOVE_SPACE}, //Remove space below removeSpaceBelow:{ name: lbl_remove_space_below, type: 'bool', description: lbl_remove_space_below_des, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'removeSpaceGroup', grp_name: lbl_remove_space_below_grp, grp_description: lbl_remove_space_below_grp_des, version: '' + VERSION_REMOVE_SPACE}, /*apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertBefore: 'justificationGroup', version: '' + VERSION_PORTAL_SHADING}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, version: '' + VERSION_PORTAL_SHADING},*/ skip: { name: lbl_skip, type: 'subAddvanceSkip', description: lbl_skip_des, value: '', advanced: true, moreadvanced: false, skip: false, relevance: false, skipcond: false, summary: false }, skipconds: { name: 'SkipConds', type: 'subAddvanceSkip', description: '', value: '', advanced: true, moreadvanced: false, skip: true, relevance: false, skipcond: true, summary: false }, relevance: { name: lbl_relevance, type: 'subAddvanceRelevance', description: lbl_relevance_des, value: '', advanced: true, moreadvanced: false, skip: false, relevance: false, relevancecond:false, summary: false }, relevanceconds: { name: 'RelevanceConds', type: 'subAddvanceRelevance', description: '', value: '', advanced: true, moreadvanced: false, skip: false, relevance: true, relevancecond:true, summary: false }/*, constraint: { name: lbl_constraint, type: 'text', description: lbl_constraint_des, value: '', advanced: true, moreadvanced: true, skip: false, relevance: false, summary: false }, constraintmessage: { name: lbl_const_msg, type: 'text', description: lbl_const_msg_des, value: '', advanced: true, moreadvanced: true, skip: false, relevance: false, summary: false }, destination: { name: lbl_inst_dest, type: 'text', description: lbl_inst_dest_des, value: '', advanced: true, moreadvanced: true, skip: false, relevance: false, summary: false }*/ }; // Remove property dispatchRequired in case of checking wrong version if (false == isUsingDispatchRequiredCustom()) { // Remove property [dispatchRequired] out of $.fn.odkControl.defaultProperties delete $.fn.odkControl.defaultProperties.dispatchRequired; } // Property fields per control type $.fn.odkControl.controlProperties = { inputText: { ctrlProperty: { name: lbl_text_ctrl, type: 'ctrlDes', description: '', explainUrl: hl_text, version: '' + VERSION_CTRL_PROPERTY_EXP}, hideMobileWebGroup: { name: lbl_hide_mobile_web_group, type: 'property_group', add_class: 'notAcross margin-left-10', description: lbl_hide_mobile_web_group_des, info_msg: hl_shared_hide + '#hide', showSelectAll: true, summary: true, info_icon: false, version: '' + VERSION_TOOL_PARAM_CLEANUP}, hideViewDataGroup: { name: lbl_use_view_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', description: '', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit,//lbl_view_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchGroup: { name: lbl_use_dis_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_dispatch_new_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, //lbl_dispatch_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_fill_and_send_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()}, hideUsersGroup: { name: lbl_users_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInMobile: { name: lbl_mobile_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_mobile_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInPDF: { name: lbl_hide_in_pdf_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_pdf_grp, grp_description: '', version: '' + VERSION_HIDE_PDF}, hideWebAppGrp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, valueIfUndefined: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewNew: { name: lbl_view_new_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_view_new_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchToEmail: { name: lbl_dispatch_to_email_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_dispatch_to_email_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_DISPATCH_TO_EMAIL.toString()}, hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_fill_and_send_edit_grp, grp_description: '', valueIfUndefined: false, show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_FNS_EDIT.toString()}, hideWebApp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideEmbeddedForm: { name: lbl_embedded_form, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_embedded_form, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_CO_135_NEW_SETTING.toString()}, hideFormLinks: { name: lbl_form_links_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_form_links_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_RESTRICT_OPTION_FL.toString()}, hidePdfWeb: { name: lbl_hide_pdf_web, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_pdf_web, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_HIDE_PDF_WEB.toString()}, hideInWeb: { name: lbl_hide_in_web, type: 'bool', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_web_grp, grp_description: '', version: '1.3', hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideForwardedGroup: { name: lbl_use_fowarded_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideForwarded: { name: lbl_edit, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideRetrieveGroup: { name: lbl_retrieve_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, hideOnRetrieve: { name: lbl_on_retrieve, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_on_retrieve, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, keyboardType: { name: lbl_keyboard, type: 'enumeration_radio', description: '', options: [ CONST_KB_TYPE_TEXT + CONST_DOUBLE_DOLLAR + lbl_keyboard_text, CONST_KB_TYPE_NO + CONST_DOUBLE_DOLLAR + lbl_keyboard_no, CONST_KB_TYPE_NONE + CONST_DOUBLE_DOLLAR + lbl_keyboard_none + '$$version=' + VERSION_ZEBRA_KEYBOARD_ENHANCEMENT], showOptionAcross: true, value: CONST_KB_TYPE_TEXT, valueIfUndefined: CONST_KB_TYPE_TEXT, //insertBefore: 'justificationGroup', insertAfter: 'removeSpaceGroup', display_if_value_equal: [CONST_KB_TYPE_NO + '$$showSymbols'], trigger_if_value_equal: [CONST_KB_TYPE_TEXT + '$$ul.propertyList li.formatGroup .lockNumericKeyboard$$' + CONST_BIND_LOCKNUMERICKEYBOARD_CHANGED, CONST_KB_TYPE_NO + '$$ul.propertyList li.formatGroup .lockNumericKeyboard$$' + CONST_BIND_LOCKNUMERICKEYBOARD_CHANGED, CONST_KB_TYPE_NONE + '$$ul.propertyList li.formatGroup .lockNumericKeyboard$$' + CONST_BIND_LOCKNUMERICKEYBOARD_CHANGED], version: VERSION_TEXT_KEYBOARD_TYPE.toString()}, lockScreen: { name: lbl_lock_screen, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, style: 'padding-top: 5px;', insertAfter: 'keyboardType', version: VERSION_LOCK_SCREEN.toString()}, length: { name: lbl_length, type: 'textRange', description: '',//lbl_length_des, value: false, insertBefore: 'justificationGroup', summary: false }, showGroupFormat: { name: lbl_format_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_text + '#format', insertAfter: 'numberOfLine$$' + VERSION_GROUP_FUNCTION, version: VERSION_GROUP_FUNCTION.toString() }, formatGroup: { name: lbl_format_group, type: 'property_group', add_class: 'notAcross', description: '', //insertBefore: 'justificationGroup,keyboardType$$' + VERSION_TEXT_KEYBOARD_TYPE, insertAfter: 'showGroupFormat$$' + VERSION_GROUP_FUNCTION, summary: true, info_msg: hl_text + '#format', info_icon: true, version: VERSION_TEXT_FORMAT_OPTION.toString()}, socialSecurityFormat: { name: lbl_social_format, type: 'bool', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'formatGroup', grp_name: lbl_social_format, grp_description: '', version: VERSION_TEXT_FORMAT_OPTION.toString()}, phoneNoFormat: { name: lbl_phone_no_format, type: 'bool', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'formatGroup', grp_name: lbl_phone_no_format, grp_description: '', display_if_true_ctrl: 'phoneFormatKind', version: VERSION_TEXT_FORMAT_OPTION.toString()}, phoneFormatKind: { name: '', type: 'enumeration_radio', hideCaption: true, add_class: 'notAcross not-use-fieldset', options: [ '0$$' + lbl_phone_1, '1$$' + lbl_phone_2, '2$$' + lbl_phone_3, '3$$' + lbl_phone_4], value: '0', summary: true, parent_group: 'formatGroup', show_condition_ques: 'phoneNoFormat', show_condition_ques_val: true, version: VERSION_TEXT_FORMAT_OPTION.toString()}, isCustomFormat: { name: lbl_txt_custom_format, // CO-2251 type: 'bool', description: '', value: false, summary: true, valueIfUndefined: false, grp_type: CONST_BOOL_GRP, parent_group: 'formatGroup', grp_name: lbl_txt_custom_format, grp_description: '', display_if_true_ctrl: 'txtCustomFormatVal,txtCustomFormatTip,isShowCustomFormat,customFormatTextChar,customFormatNumChar', info_msg: hl_text + '#format', info_icon: false, version: VERSION_TEXT_USE_CUSTOM_FORMAT_OPTION.toString()}, customFormatTextChar:{ name: lbl_text_char, type: 'text', description: '', style: 'padding-left: 25px; clear: both;', add_class: CONST_ACROSS + ' not-use-fieldset', /*kind: CONST_KIND_ALPHA_SYMBOL,*/ maxChar: 1, required: false, value: 'a', valueIfUndefined: 'a', parent_group: 'formatGroup', show_condition_ques: 'isCustomFormat', show_condition_ques_val: true, version: VERSION_TEXT_USE_CUSTOM_FORMAT_OPTION.toString()}, customFormatNumChar:{ name: lbl_num_char, type: 'text', description: '', style: 'padding-left: 25px; clear: both;', add_class: CONST_ACROSS + ' not-use-fieldset', /*kind: CONST_KIND_ALPHA_SYMBOL,*/ maxChar: 1, required: false, value: 'n', valueIfUndefined: 'n', parent_group: 'formatGroup', show_condition_ques: 'isCustomFormat', show_condition_ques_val: true, version: VERSION_TEXT_USE_CUSTOM_FORMAT_OPTION.toString()}, isShowCustomFormat: { name: lbl_txt_custom_format_show_format, // CO-2680 type: 'bool', description: '', value: false, summary: true, style: 'padding-top: 5px; padding-left: 20px; clear: both;', add_class: 'isShowCustomFormatStyle', valueIfUndefined: false, grp_type: CONST_BOOL_GRP, parent_group: 'formatGroup', grp_name: lbl_txt_custom_format_show_format, grp_description: '', display_if_true_ctrl: 'isCustomFormat', show_condition_ques_val: true, version: VERSION_TEXT_USE_CUSTOM_FORMAT_OPTION.toString()}, txtCustomFormatVal: { name: '', // CO-2251 type: 'text', hideCaption: true, value: '', summary: true, add_class: 'txtCustomFormatSytle not-use-fieldset', parent_group: 'formatGroup', paddingLeft: '3px', show_condition_ques: 'isCustomFormat', show_condition_ques_val: true, version: VERSION_TEXT_USE_CUSTOM_FORMAT_OPTION.toString()}, lockNumericKeyboard: { name: lbl_lock_mumeric_keyboard, type: 'bool', description: '', value: false, summary: true, valueIfUndefined: false, grp_type: CONST_BOOL_GRP, parent_group: 'formatGroup', grp_name: lbl_lock_mumeric_keyboard, grp_description: '', display_if_true_ctrl: 'showSymbols', add_class: CONST_CSS_CLASS_HIDE_SESSION_IMP, version: VERSION_LOCK_MUMERIC_KB_OPTION.toString()}, showSymbols: { name: lbl_show_symbols, type: 'bool', description: '', value: false, summary: true, valueIfUndefined: false, grp_type: CONST_BOOL_GRP, parent_group: 'formatGroup', grp_name: lbl_show_symbols, grp_description: '', show_condition_ques: 'lockNumericKeyboard,keyboardType$$' + VERSION_TEXT_KEYBOARD_TYPE, show_condition_ques_val: 'true,' + CONST_KB_TYPE_NO + CONST_DOUBLE_DOLLAR + VERSION_TEXT_KEYBOARD_TYPE, version: VERSION_SHOW_SYMBOLS.toString()}, uppercaseLock: { name: lbl_uppercase_lock, type: 'bool', description: '', value: false, summary: true, valueIfUndefined: false, grp_type: CONST_BOOL_GRP, parent_group: 'formatGroup', grp_name: lbl_uppercase_lock, grp_description: '', version: VERSION_UPPERCASE_LOCK.toString()}, suppressKeyboard: { name: lbl_suppress_keyboard, // CO-2559:Suppress keyboard setting - Text Field type: 'bool', description: '', value: false, summary: true, valueIfUndefined: false, grp_type: CONST_BOOL_GRP, parent_group: 'formatGroup', grp_name: lbl_suppress_keyboard, grp_description: '', hideVersion: VERSION_GROUP_FUNCTION.toString(), version: VERSION_SUPPRESS_KEYBOARD.toString()}, grayCaption: { name: lbl_gray_caption_text, type: 'bool', description: '', value: false, grp_type: CONST_BOOL_GRP, grp_name: lbl_gray_caption_text, parent_group: 'formatGroup', marginTop: '-5px', display_if_true_ctrl: 'grayCaptionText', version: VERSION_GRAY_CAPTION_TEXT.toString()}, /*grayCaptionText: { name: '', type: 'text', value: '', parent_group: 'formatGroup', paddingLeft: '25px', show_condition_ques: 'grayCaption', show_condition_ques_val: true, version: VERSION_GRAY_CAPTION_TEXT.toString() },*/ showGroupAppearance: { name: lbl_apperance, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_ajr + '#appearance', insertBefore: 'justificationGroup', version: VERSION_GROUP_FUNCTION.toString() }, apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertAfter: 'justificationGroup', info_msg: hl_shared_ajr + '#appearance', version: '' + VERSION_PORTAL_SHADING}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, insertAfter: 'apperance', version: '' + VERSION_PORTAL_SHADING}, removeAnswerBorder: { name: lbl_remove_aswer_border, type: 'bool', description: '', value: false, summary: true, insertAfter: 'shadedHeadings', paddingLeft: '20px', version: VERSION_REMOVE_ANSW_BORDER.toString() }, answerColor:{ name: '', type: 'ctrl_answer_color', paddingLeft: '20px', description: '', value: { isAnswerColor: false, answerBGColor: '#FFFFFF', answerTextColor: '#000000' }, summary: true, insertBefore: 'removeAnswerBorder', version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER}, showGroupRulesPermissions: { name: lbl_group_rules_permissions, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS, insertBefore: 'readOnlyGroup', version: VERSION_GROUP_FUNCTION.toString() }, showGroupActions: { name: lbl_action_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, collapse_expand_ctrl: true, info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS, version: VERSION_GROUP_FUNCTION.toString() }, actionGroup: { name: lbl_action_group, type: 'property_group', description: '', summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowRelevanceCondition: { name: lbl_show_relevance_condition, type: 'bool', description: lbl_show_relevance_condition_des, value: false, summary: true, display_if_true_ctrl: 'relevanceconds', info_msg: hl_shared_di_jt + '#only-display-this-question-if', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowITE: { name: lbl_show_if_then_else_condition, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'iteConditions', info_msg: hl_if_then_else, info_icon: true, version: VERSION_IF_THEN_ELSE.toString()}, textParse: { name: lbl_text_parse, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, //insertBefore: 'keyboardType', info_icon: true, info_msg: hl_text + '#parse', display_if_true_ctrl: 'textParseDestinationFields, hideAfterParse', version: VERSION_TEXT_PARSE.toString()}, textParseDestinationFields: { name: lbl_dest_field, type: 'textParseDestinationFields', description: '', value: [], summary: false, required: true, insertAfter: 'textParse', show_condition_ques: 'textParse', show_condition_ques_val: true, style: 'padding-left: 20px; clear: both;', version: VERSION_TEXT_PARSE.toString() }, hideAfterParse: { name: lbl_hide_after_parse, type: 'bool', description: '', notForGrid: true, notForTable: true, notForPOD: true, notForValue: false, value: false, valueIfUndefined: false, summary: true, insertAfter: 'textParseDestinationFields', show_condition_ques: 'textParse', show_condition_ques_val: true, paddingLeft: '20px', version: VERSION_TEXT_PARSE.toString()}, isShowReadOnlyIf: { name: lbl_show_read_only_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'readOnlyIfConditions', info_msg: hl_read_only_if, info_icon: true, version: VERSION_READ_ONLY_IF.toString()}, isShowSkipCondition: { name: lbl_show_skip_condition, type: 'bool', description: lbl_show_skip_condition_des, value: false, summary: true, display_if_true_ctrl: 'skipconds', info_msg: hl_shared_di_jt + '#jump-to', uncheck_if_true_ctrl: 'isShowSkipIf', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipIf: { name: lbl_show_skip_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'skipIfConditions', info_msg: hl_shared_di_jt + '#jumptoif', uncheck_if_true_ctrl: 'isShowSkipCondition', info_icon: true, version: VERSION_SKIP_IF.toString()}, skipconds: { name: lbl_skip_cond, type: 'skipConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowSkipCondition', show_condition_ques_val: true }, relevanceconds: { name: lbl_rel_cond, type: 'relevanceConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowRelevanceCondition', show_condition_ques_val: true }, iteConditions: { name: lbl_if_then_else_cond, type: 'iteConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowITE', show_condition_ques_val: true, advanced: true, version: VERSION_IF_THEN_ELSE.toString() }, readOnlyIfConditions: { name: lbl_read_only_if_cond, type: 'readOnlyIfConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowReadOnlyIf', show_condition_ques_val: true, advanced: true, version: VERSION_READ_ONLY_IF.toString()}, skipIfConditions: { name: lbl_skip_if_cond, type: 'skipIfConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowSkipIf', show_condition_ques_val: true, advanced: true, version: VERSION_SKIP_IF.toString() }, tip: { name: '', type: 'property_group', description: lbl_action_group_des_for_text, hasHtmlTag: true, summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, securityGroup: { name: lbl_security_group, type: 'property_group', add_class: 'notAcross', description: '', insertAfter: 'length', summary: true, enableWhenUserPropertyValue: CONST_FIELDENCRYPTION + '$$true', version: VERSION_TEXT_SECURITY.toString()}, encryptField: { name: lbl_encrypt_field, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'securityGroup', grp_name: lbl_encrypt_field, grp_description: '', enableWhenUserPropertyValue: CONST_FIELDENCRYPTION + '$$true', version: VERSION_TEXT_SECURITY.toString()}, actionJumpGroup: { name: lbl_action_jump_group, type: 'property_group', description: '', summary: true, //insertBefore: 'apperance', insertBefore: 'tip', forContainerOnly: true, version: VERSION_TEXT_JUMP_ACTION.toString()}, jumpAfterScan: { name: lbl_jump_after_scan, type: 'bool', grp_type: CONST_BOOL_GRP, description: '', value: false, hasHtmlTag: true, valueIfUndefined: false, summary: true, parent_group: 'actionJumpGroup', grp_name: '' + lbl_jump_after_scan + '', grp_description: '', forContainerOnly: true, version: VERSION_TEXT_JUMP_ACTION.toString()}, jumpAfterScanOption: { name: '', type: 'enumeration_radio', hideCaption: true, showCaptionAcross: { captionStyle: 'float:left;margin-top:-5px;' }, showOptionAcross: true, options: [ '0$$R', '1$$D'], value: '0', summary: true, parent_group_name: 'jumpAfterScanOption', paddingLeft: '10px', version: VERSION_TEXT_JUMP_ACTION.toString()}, duplicateCheck: { name: lbl_verify_duplicates, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: false, insertBefore: 'tip', display_if_true_ctrl: 'duplicateCheckField', version: VERSION_DUPLICAT_CHECK.toString()}, duplicateCheckField: { name: lbl_duplicate_check_field, type: 'duplicateCheckField', description: '', value: [], summary: false, required: true, insertAfter: 'duplicateCheck', show_condition_ques: 'duplicateCheck', show_condition_ques_val: true, style: 'padding-left: 20px; clear: both;', version: VERSION_DUPLICAT_CHECK.toString() }, isHideIfCmpVal: { name: lbl_hide_if_cpm_val, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, insertAfter: 'duplicateCheckField', display_if_true_ctrl: 'hideIfFields, hideIfCmpVal', version: VERSION_HIDE_IF.toString()}, hideIfCmpVal: { name: '', type: 'hideIfCompareEditor', description: '', value: {}, valueIfUndefined: {}, insertAfter: 'isHideIfCmpVal', show_condition_ques: 'isHideIfCmpVal', show_condition_ques_val: true, summary: false, version: VERSION_HIDE_IF.toString() }, hideIfFields: { name: lbl_hide_if_field_list, type: 'hideIfFieldsEditor', description: '', value: [], valueIfUndefined: [], insertAfter: 'hideIfCmpVal', show_condition_ques: 'isHideIfCmpVal', show_condition_ques_val: true, summary: false, version: VERSION_HIDE_IF.toString() }}, inputNumeric: { ctrlProperty: { name: lbl_numeric_ctrl, type: 'ctrlDes', description: '', explainUrl: hl_numeric, version: '' + VERSION_CTRL_PROPERTY_EXP}, hideMobileWebGroup: { name: lbl_hide_mobile_web_group, type: 'property_group', add_class: 'notAcross margin-left-10', description: lbl_hide_mobile_web_group_des, info_msg: hl_shared_hide + '#hide', showSelectAll: true, summary: true, info_icon: false, version: '' + VERSION_TOOL_PARAM_CLEANUP}, hideViewDataGroup: { name: lbl_use_view_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', description: '', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit,//lbl_view_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchGroup: { name: lbl_use_dis_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_dispatch_new_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, //lbl_dispatch_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_fill_and_send_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()}, hideUsersGroup: { name: lbl_users_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInMobile: { name: lbl_mobile_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_mobile_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInPDF: { name: lbl_hide_in_pdf_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_pdf_grp, grp_description: '', version: '' + VERSION_HIDE_PDF}, hideWebAppGrp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, valueIfUndefined: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewNew: { name: lbl_view_new_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_view_new_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchToEmail: { name: lbl_dispatch_to_email_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_dispatch_to_email_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_DISPATCH_TO_EMAIL.toString()}, hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_fill_and_send_edit_grp, grp_description: '', valueIfUndefined: false, show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_FNS_EDIT.toString()}, hideWebApp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideEmbeddedForm: { name: lbl_embedded_form, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_embedded_form, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_CO_135_NEW_SETTING.toString()}, hideFormLinks: { name: lbl_form_links_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_form_links_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_RESTRICT_OPTION_FL.toString()}, hidePdfWeb: { name: lbl_hide_pdf_web, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_pdf_web, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_HIDE_PDF_WEB.toString()}, hideInWeb: { name: lbl_hide_in_web, type: 'bool', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_web_grp, grp_description: '', version: '1.3', hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideForwardedGroup: { name: lbl_use_fowarded_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideForwarded: { name: lbl_edit, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideRetrieveGroup: { name: lbl_retrieve_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, hideOnRetrieve: { name: lbl_on_retrieve, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_on_retrieve, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, kind: { name: lbl_number_type, type: 'enumeration_radio', description: '',//lbl_number_type_des, options: [ 'Integer$$' + lbl_kind_integer, 'Decimal$$' + lbl_kind_decimal, 'Percent$$' + lbl_kind_percent + '$$version=' + VERSION_NUMBER_PERCENT], showOptionAcross: true, display_if_value_equal: ['Integer,Decimal$$useCurrentcySymbol,decPlace'], hide_if_value_equal: ['Percent$$currency'], value: 'Integer', style: 'padding-bottom: 5px;', insertAfter: 'defaultValue', summary: true }, useCurrentcySymbol: { name: lbl_use_curr_sym, style: 'padding-top: 5px;', type: 'bool', description: '', value: false, summary: true, insertAfter: 'kind', show_condition_ques: 'kind', show_condition_ques_val: ['Integer', 'Decimal'], version: '2.12' }, currency: { name: lbl_curr_sym, type: 'currency_enumeration', description: '', options: [ 'None$$' + lbl_currency_none, '$', '¥', '€', '£', 'ƒ', 'P', '¢', 'Q', 'L', 'kr', 'p.', 'R$', 'Ft', 'Rp', 'J$', 'Lt', 'C$', '$U', 'Z$', 'TT$', 'R', 'S/' ], value: 'None', summary: true, insertAfter: 'useCurrentcySymbol', hide_condition_ques: 'kind', hide_condition_ques_val: ['Percent'], version: '2.12' }, decPlace: { name: lbl_decimal_place, type: 'decimalPlace', description: lbl_decimal_place_des, value: '', insertAfter: 'kind', summary: false, add_class: 'makeAcross show-up-down not-use-fieldset', show_condition_ques: 'kind', show_condition_ques_val: ['Decimal'], version: VERSION_DEC_PLACE_NUM.toString() }, range: { name: lbl_range, type: 'numericRange', description: '', //lbl_range_des value: false, insertAfter: 'currency', summary: false }, validateValue: { name: lbl_validate, type: 'numericFieldRange', description: '', value: false, insertAfter: 'range', child_required: true, summary: false, info_msg: hl_numeric + '#compare', info_icon: true, icon_style: 'padding-top: 0.1em;', version: '' + VERSION_VALIDATE_VALUE }, suppressKeyboard: { name: lbl_suppress_keyboard, // CO-2560:Suppress keyboard setting - Numeric Field type: 'bool', description: '', value: false, summary: true, insertAfter: 'kind', valueIfUndefined: false, grp_type: CONST_BOOL_GRP, grp_name: lbl_suppress_keyboard, grp_description: '', version: VERSION_SUPPRESS_KEYBOARD.toString()}, lockScreen: { name: lbl_lock_screen, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, insertAfter: 'removeSpaceGroup', version: VERSION_LOCK_SCREEN.toString()}, apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertAfter: 'justificationGroup', info_msg: hl_shared_ajr + '#appearance', version: '' + VERSION_PORTAL_SHADING}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, insertAfter: 'apperance', version: '' + VERSION_PORTAL_SHADING}, removeAnswerBorder: { name: lbl_remove_aswer_border, type: 'bool', description: '', value: false, summary: true, insertAfter: 'shadedHeadings', paddingLeft: '20px', version: VERSION_REMOVE_ANSW_BORDER.toString() }, answerColor:{ name: '', type: 'ctrl_answer_color', paddingLeft: '20px', description: '', value: { isAnswerColor: false, answerBGColor: '#FFFFFF', answerTextColor: '#000000' }, summary: true, insertAfter: 'removeAnswerBorder', version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER}, negativeGroup: { name: lbl_negative_group, type: 'property_group', description: lbl_hide_mobile_web_group_des, summary: true, insertBefore: 'range', add_class: 'notAcross', info_msg: hl_numeric + '#negative', info_icon: true, version: VERSION_NUMERIC_NEGATIVE_OPT.toString()}, negativeRedText: { name: lbl_negative_red, type: 'bool', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'negativeGroup', grp_name: lbl_negative_red, grp_description: '', valueIfUndefined: false, version: VERSION_NUMERIC_NEGATIVE_OPT.toString()}, negativeBrackets: { name: lbl_negative_brackets, type: 'bool', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'negativeGroup', grp_name: lbl_negative_brackets, grp_description: '', valueIfUndefined: false, version: VERSION_NUMERIC_NEGATIVE_OPT.toString()}, isShowComma: { name: lbl_show_comma, type: 'bool', description: '', valueIfUndefined: false, value: false, summary: true, insertBefore: 'negativeGroup', version: VERSION_NUM_SHOW_COMMA }, actionGroup: { name: lbl_action_group, type: 'property_group', description: '', summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowRelevanceCondition: { name: lbl_show_relevance_condition, type: 'bool', description: lbl_show_relevance_condition_des, value: false, summary: true, display_if_true_ctrl: 'relevanceconds', info_msg: hl_shared_di_jt + '#only-display-this-question-if', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowITE: { name: lbl_show_if_then_else_condition, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'iteConditions', info_msg: hl_if_then_else, info_icon: true, version: VERSION_IF_THEN_ELSE.toString()}, isShowReadOnlyIf: { name: lbl_show_read_only_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'readOnlyIfConditions', info_msg: hl_read_only_if, info_icon: true, version: VERSION_READ_ONLY_IF.toString()}, isShowSkipCondition: { name: lbl_show_skip_condition, type: 'bool', description: lbl_show_skip_condition_des, value: false, summary: true, display_if_true_ctrl: 'skipconds', info_msg: hl_shared_di_jt + '#jump-to', uncheck_if_true_ctrl: 'isShowSkipIf', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipIf: { name: lbl_show_skip_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'skipIfConditions', info_msg: hl_shared_di_jt + '#jumptoif', uncheck_if_true_ctrl: 'isShowSkipCondition', info_icon: true, version: VERSION_SKIP_IF.toString()}, skipconds: { name: lbl_skip_cond, type: 'skipConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowSkipCondition', show_condition_ques_val: true }, relevanceconds: { name: lbl_rel_cond, type: 'relevanceConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowRelevanceCondition', show_condition_ques_val: true }, iteConditions: { name: lbl_if_then_else_cond, type: 'iteConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowITE', show_condition_ques_val: true, advanced: true, version: VERSION_IF_THEN_ELSE.toString() }, readOnlyIfConditions: { name: lbl_read_only_if_cond, type: 'readOnlyIfConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowReadOnlyIf', show_condition_ques_val: true, advanced: true, version: VERSION_READ_ONLY_IF.toString()}, skipIfConditions: { name: lbl_skip_if_cond, type: 'skipIfConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowSkipIf', show_condition_ques_val: true, advanced: true, version: VERSION_SKIP_IF.toString() }, tip: { name: '', type: 'property_group', description: lbl_action_group_des_for_number_text, summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT }, grayCaption: { name: lbl_gray_caption_text, type: 'bool', description: '', value: false, insertBefore: 'useCurrentcySymbol', version: VERSION_GRAY_CAPTION_TEXT.toString()}, securityGroup: { name: lbl_security_group, type: 'property_group', add_class: 'notAcross', description: '', insertBefore: 'range', summary: true, enableWhenUserPropertyValue: CONST_FIELDENCRYPTION + '$$true', version: VERSION_TEXT_SECURITY.toString()}, encryptField: { name: lbl_encrypt_field, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'securityGroup', grp_name: lbl_encrypt_field, grp_description: '', enableWhenUserPropertyValue: CONST_FIELDENCRYPTION + '$$true', version: VERSION_TEXT_SECURITY.toString()}, showGroupFormat: { name: lbl_format_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: false, info_msg: hl_text + '#format', insertBefore: 'suppressKeyboard', version: VERSION_GROUP_FUNCTION.toString() }, showGroupAppearance: { name: lbl_apperance, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_ajr + '#appearance', insertBefore: 'justificationGroup', version: VERSION_GROUP_FUNCTION.toString() }, showGroupRulesPermissions: { name: lbl_group_rules_permissions, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, insertBefore: 'readOnlyGroup', info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS, version: VERSION_GROUP_FUNCTION.toString() }, showGroupActions: { name: lbl_action_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, collapse_expand_ctrl: true, info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS, insertBefore: 'actionGroup', version: VERSION_GROUP_FUNCTION.toString() }, isHideIfCmpVal: { name: lbl_hide_if_cpm_val, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, insertBefore: 'tip', display_if_true_ctrl: 'hideIfFields, hideIfCmpVal', version: VERSION_HIDE_IF.toString()}, hideIfCmpVal: { name: '', type: 'hideIfCompareEditor', description: '', value: {}, valueIfUndefined: {}, insertAfter: 'isHideIfCmpVal', show_condition_ques: 'isHideIfCmpVal', show_condition_ques_val: true, summary: false, version: VERSION_HIDE_IF.toString() }, hideIfFields: { name: lbl_hide_if_field_list, type: 'hideIfFieldsEditor', description: '', value: [], valueIfUndefined: [], insertAfter: 'hideIfCmpVal', show_condition_ques: 'isHideIfCmpVal', show_condition_ques_val: true, summary: false, version: VERSION_HIDE_IF.toString() }}, inputTrends: { ctrlProperty: { name: lbl_trends_ctrl, type: 'ctrlDes', description: '', explainUrl: hl_trends, version: '' + VERSION_CTRL_PROPERTY_EXP}, ctrlDesc: { name: lbl_android_webapp_only, type: 'uiLabel', description: '' }, kind: { name: lbl_number_type, type: 'enumeration', description: lbl_number_type_des, options: [ 'Integer$$' + lbl_kind_integer, 'Decimal$$' + lbl_kind_decimal], value: 'Integer', insertBefore: 'justificationGroup', summary: true }, currency: { name: lbl_curr_sym, type: 'currency_enumeration', description: '', options: [ 'None$$' + lbl_currency_none, '$', '¥', '€', '£', 'ƒ', 'P', '¢', 'Q', 'L', 'kr', 'p.', 'R$', 'Ft', 'Rp', 'J$', 'Lt', 'C$', '$U', 'Z$', 'TT$', 'R', 'S/' ], value: 'None', insertBefore: 'justificationGroup', summary: true}, numberOfPrior: { name: lbl_number_of_prior_val, type: 'numericDefaultField', kind: 'Number', description: lbl_number_of_prior_val_des, value: '', required: true, insertBefore: 'justificationGroup', summary: false }, trendingDate: { name: lbl_trending_date_val, type: 'enumeration', description: lbl_trending_date_val_des, required: true, options: [lbl_trending_date_default], value: lbl_trending_date_default, insertBefore: 'justificationGroup', summary: false }, keyFieldFilter: { name: lbl_key_field_filter_val, type: 'enumeration', description: lbl_key_field_filter_val_des, required: false, options: [lbl_sel_question], value: lbl_sel_question, insertBefore: 'justificationGroup', summary: false }, lastEnteredValue: { name: lbl_last_entered_value, type: 'enumeration', description: '', required: false, options: [lbl_sel_question], value: lbl_sel_question, summary: false, insertBefore: 'justificationGroup', version: '' + VERSION_LAST_ENTERED_VALUE }, useCurrentcySymbol: { name: lbl_use_curr_sym, type: 'bool', description: '', value: false, insertBefore: 'justificationGroup', summary: true}, range: { name: lbl_range, type: 'numericRange', description: '', //lbl_range_des, value: false, insertBefore: 'justificationGroup', summary: false }, disTrendsBtn: { name: lbl_dis_trends_btn, type: 'bool', description: '', value: true, insertBefore: 'justificationGroup', summary: true}, apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertAfter: 'justificationGroup', info_msg: hl_shared_ajr + '#appearance', version: '' + VERSION_PORTAL_SHADING}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, insertAfter: 'apperance', version: '' + VERSION_PORTAL_SHADING}, removeAnswerBorder: { name: lbl_remove_aswer_border, type: 'bool', description: '', value: false, summary: true, insertAfter: 'shadedHeadings', paddingLeft: '20px', version: VERSION_REMOVE_ANSW_BORDER.toString() }, answerColor:{ name: '', type: 'ctrl_answer_color', paddingLeft: '20px', description: '', value: { isAnswerColor: false, answerBGColor: '#FFFFFF', answerTextColor: '#000000' }, summary: true, insertAfter: 'removeAnswerBorder', version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER}, shadedButton:{ name: '', type: 'ctrl_shaded_button', paddingLeft: '20px', description: '', value: { isShadedButton: false, btnSheadingColor: '#E9E9E9', btnTextColor: '#000000', activeBtnTextColor: '#000000', btnBorderColor: '#000000', btnRoundedCorners: false }, summary: true, insertAfter: 'shadedHeadings', version: '' + VERSION_PORTAL_SHADING}, actionGroup: { name: lbl_action_group, type: 'property_group', description: lbl_action_group_des, summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowRelevanceCondition: { name: lbl_show_relevance_condition, type: 'bool', description: lbl_show_relevance_condition_des, value: false, summary: true, display_if_true_ctrl: 'relevanceconds', info_msg: hl_shared_di_jt + '#only-display-this-question-if', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowITE: { name: lbl_show_if_then_else_condition, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'iteConditions', info_msg: hl_if_then_else, info_icon: true, version: VERSION_IF_THEN_ELSE.toString()}, isShowReadOnlyIf: { name: lbl_show_read_only_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'readOnlyIfConditions', info_msg: hl_read_only_if, info_icon: true, version: VERSION_READ_ONLY_IF.toString()}, isShowSkipCondition: { name: lbl_show_skip_condition, type: 'bool', description: lbl_show_skip_condition_des, value: false, summary: true, display_if_true_ctrl: 'skipconds', info_msg: hl_shared_di_jt + '#jump-to', uncheck_if_true_ctrl: 'isShowSkipIf', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipIf: { name: lbl_show_skip_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'skipIfConditions', info_msg: hl_shared_di_jt + '#jumptoif', uncheck_if_true_ctrl: 'isShowSkipCondition', info_icon: true, version: VERSION_SKIP_IF.toString()}, skipconds: { name: lbl_skip_cond, type: 'skipConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowSkipCondition', show_condition_ques_val: true }, relevanceconds: { name: lbl_rel_cond, type: 'relevanceConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowRelevanceCondition', show_condition_ques_val: true }, iteConditions: { name: lbl_if_then_else_cond, type: 'iteConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowITE', show_condition_ques_val: true, advanced: true, version: VERSION_IF_THEN_ELSE.toString() }, readOnlyIfConditions: { name: lbl_read_only_if_cond, type: 'readOnlyIfConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowReadOnlyIf', show_condition_ques_val: true, advanced: true, version: VERSION_READ_ONLY_IF.toString()}, skipIfConditions: { name: lbl_skip_if_cond, type: 'skipIfConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowSkipIf', show_condition_ques_val: true, advanced: true, version: VERSION_SKIP_IF.toString() }, showGroupFormat: { name: lbl_format_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: false, info_msg: hl_text + '#format', insertBefore: 'useCurrentcySymbol', version: VERSION_GROUP_FUNCTION.toString() }, showGroupAppearance: { name: lbl_apperance, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_ajr + '#appearance', insertBefore: 'disTrendsBtn', version: VERSION_GROUP_FUNCTION.toString() }, showGroupRulesPermissions: { name: lbl_group_rules_permissions, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, insertBefore: 'readOnlyGroup', info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS, version: VERSION_GROUP_FUNCTION.toString() }, showGroupActions: { name: lbl_action_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, collapse_expand_ctrl: true, info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS, insertBefore: 'actionGroup', version: VERSION_GROUP_FUNCTION.toString() }}, inputDate: { ctrlProperty: { name: lbl_date_ctrl, type: 'ctrlDes', description: '', explainUrl: hl_date_time, version: '' + VERSION_CTRL_PROPERTY_EXP}, hideMobileWebGroup: { name: lbl_hide_mobile_web_group, type: 'property_group', add_class: 'notAcross margin-left-10', description: lbl_hide_mobile_web_group_des, info_msg: hl_shared_hide + '#hide', showSelectAll: true, summary: true, info_icon: false, version: '' + VERSION_TOOL_PARAM_CLEANUP}, hideViewDataGroup: { name: lbl_use_view_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', description: '', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit,//lbl_view_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchGroup: { name: lbl_use_dis_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_dispatch_new_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, //lbl_dispatch_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_fill_and_send_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()}, hideUsersGroup: { name: lbl_users_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInMobile: { name: lbl_mobile_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_mobile_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInPDF: { name: lbl_hide_in_pdf_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_pdf_grp, grp_description: '', version: '' + VERSION_HIDE_PDF}, hideWebAppGrp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, valueIfUndefined: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewNew: { name: lbl_view_new_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_view_new_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchToEmail: { name: lbl_dispatch_to_email_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_dispatch_to_email_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_DISPATCH_TO_EMAIL.toString()}, hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_fill_and_send_edit_grp, grp_description: '', valueIfUndefined: false, show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_FNS_EDIT.toString()}, hideWebApp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideEmbeddedForm: { name: lbl_embedded_form, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_embedded_form, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_CO_135_NEW_SETTING.toString()}, hideFormLinks: { name: lbl_form_links_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_form_links_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_RESTRICT_OPTION_FL.toString()}, hidePdfWeb: { name: lbl_hide_pdf_web, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_pdf_web, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_HIDE_PDF_WEB.toString()}, hideInWeb: { name: lbl_hide_in_web, type: 'bool', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_web_grp, grp_description: '', version: '1.3', hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideForwardedGroup: { name: lbl_use_fowarded_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideForwarded: { name: lbl_edit, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideRetrieveGroup: { name: lbl_retrieve_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, hideOnRetrieve: { name: lbl_on_retrieve, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_on_retrieve, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, kind: { name: lbl_type, type: 'enumeration_radio', description: '',//lbl_type_of_date, options: [ CONST_VALUE_DATE + CONST_DOUBLE_DOLLAR + lbl_kind_date, CONST_VALUE_TIME + CONST_DOUBLE_DOLLAR + lbl_kind_time, CONST_VALUE_DATE_TIME + CONST_DOUBLE_DOLLAR + lbl_kind_datetime], valueIfUndefined: CONST_VALUE_DATE, showOptionAcross: true, display_if_value_equal: ['Time,Date:Time,Date time$$militaryTime', 'Time,Date:Time,Date time$$showSeconds', 'Time,Date:Time,Date time$$useInterval,minuteInterval,rounding,limitUserToIntervalValue', 'Date,Date time$$useCalendarView', 'Time$$isVerifyTime'],//value list$$control list value: CONST_VALUE_DATE, insertAfter: 'defaultValue'}, btnType: { name: lbl_btn_type, type: 'enumeration_radio', description: '', options: [ CONST_TYPE_BUTTON + CONST_DOUBLE_DOLLAR + lbl_show_date_button_text, CONST_TYPE_IMAGE + CONST_DOUBLE_DOLLAR + lbl_show_date_button_icon], showOptionAcross: true, value: 'Button', valueIfUndefined: 'Button', insertAfter: 'kind', display_if_value_equal: [CONST_TYPE_IMAGE + CONST_DOUBLE_DOLLAR + CONST_ICONACTION],//value list$$control list notForGrid: true, notForTable: true, ignoreNotForGridVersion: VERSION_SHOW_ICON_BUTTON_DATE_IN_GRID_TABLE, ignoreNotForTableVersion: VERSION_SHOW_ICON_BUTTON_DATE_IN_GRID_TABLE, version: VERSION_SHOW_ICON_BUTTON_DATE_TIME.toString()}, range: { name: lbl_range, type: 'dateRange', description: '',//lbl_range_des value: false, insertAfter: CONST_BTNTYPE, summary: false }, validateValue: { name: lbl_validate, type: 'numericFieldRange', description: '', value: false, insertAfter: 'range', child_required: true, summary: false, info_msg: hl_date_time + '#compare', info_icon: true, icon_style: 'padding-top: 0.1em;', version: '' + VERSION_DATE_TIME_COMPARE }, autoStamp: { name: lbl_auto_stamp, type: 'bool', description: '', value: false, summary: true, insertAfter: CONST_BTNTYPE, info_msg: hl_date_time + '#autostamp', info_icon: true, // style: 'padding-top: 5px;', //enable this property if not is version VERSION_DATE_SHOW_NOW_BTN // icon_style: 'padding-top: 5px;',//enable this property if not is version VERSION_DATE_SHOW_NOW_BTN version: '1.3' }, showNowBtn: { name: lbl_remove_today_btn, type: 'bool', description: '', value: true, valueIfUndefined: true, summary: true, insertAfter: CONST_BTNTYPE, style: 'padding-top: 5px;', isNagativeValue: true, version: VERSION_DATE_SHOW_NOW_BTN.toString() }, showSeconds: { name: lbl_remove_seconds, type: 'bool', description: '', value: true, summary: true, show_condition_ques: 'kind', show_condition_ques_val: [CONST_VALUE_TIME, CONST_VALUE_DATE_TIME, CONST_VALUE_DATE_SPACE_TIME], insertAfter: 'showNowBtn', isNagativeValue: true, version: VERSION_SHOW_SECONDS_COLOR_ANSWER.toString() }, isAllowEdit: { name: lbl_auto_stamp_allow_edit, type: 'bool', description: lbl_auto_stamp_allow_edit_des, value: true, summary: true, insertAfter: 'autoStamp', version: VERSION_ALLOW_EDIT_OPT + '' }, useCalendarView: { name: lbl_use_calendar_view, type: 'bool', description: '', value: false, summary: true, show_condition_ques: 'kind', show_condition_ques_val: [CONST_CTRL_KIND_DATE, CONST_VALUE_DATE_SPACE_TIME], insertAfter: 'isAllowEdit', version: VERSION_DATE_TIME_CALENDAR_VIEW + '' }, grayCaption: { name: lbl_gray_caption_text, type: 'bool', description: '', value: false, insertAfter: 'useCalendarView', version: VERSION_GRAY_CAPTION_TEXT.toString()}, autoStampTrigger: { name: lbl_auto_stamp_trigger, type: 'enumeration', description: lbl_auto_stamp_trigger_des, required: true, value: false, summary: false, options: [lbl_auto_stamp_select_opt, /*'1$$' + lbl_auto_stamp_trigger_1,*/ '2$$' + lbl_auto_stamp_trigger_2, '4$$' + lbl_auto_stamp_trigger_4, '8$$' + lbl_auto_stamp_trigger_8, '16$$' + lbl_auto_stamp_trigger_16], value: lbl_auto_stamp_select_opt, insertAfter: 'autoStamp', version: '5.0' }, autoStampTrigger1: { name: lbl_auto_stamp_trigger_1, type: 'bool', description: '', value: false, summary: true, insertAfter: 'autoStampTrigger', version: '5.0' }, autoStampTrigger2: { name: lbl_auto_stamp_trigger_2, type: 'bool', description: '', value: false, summary: true, insertAfter: 'autoStampTrigger1', version: '5.0' }, autoStampTrigger2Ques: { name: lbl_auto_stamp_trigger_2_ques, type: 'enumeration', description: '', required: true, options: [lbl_sel_question], value: lbl_sel_question, summary: false, insertAfter: 'autoStampTrigger2', version: '5.0' }, autoStampTrigger4: { name: lbl_auto_stamp_trigger_4, type: 'bool', description: '', value: false, summary: true, insertAfter: 'autoStampTrigger2Ques', version: '5.0' }, autoStampTrigger4Ques: { name: lbl_auto_stamp_trigger_4_page, type: 'enumeration', description: '', required: true, options: [lbl_sel_page], summary: false, insertAfter: 'autoStampTrigger4', version: '5.0' }, autoStampTrigger8: { name: lbl_auto_stamp_trigger_8, type: 'bool', description: '', value: false, summary: true, insertAfter: 'autoStampTrigger4Ques', version: '5.0' }, autoStampTrigger16: { name: lbl_auto_stamp_trigger_16, type: 'bool', description: '', value: false, summary: true, insertAfter: 'autoStampTrigger8', version: '5.0' }, militaryTime: { name: lbl_military_time, type: 'bool', description: '', value: true, summary: true, show_condition_ques: 'kind', show_condition_ques_val: [CONST_VALUE_TIME, CONST_VALUE_DATE_TIME, CONST_VALUE_DATE_SPACE_TIME], insertAfter: 'autoStampTrigger16', version: '1.3' }, advancedFormat: { name: lbl_date_advance_format, type: 'enumeration_bool', description: '', value: false, summary: true, insertAfter: 'militaryTime', info_msg: hl_date_time + '#advance-format', info_icon: true, /*requiredIfChecked: true,*/ icon_style: 'padding-top: 0.3em;', version: VERSION_DATE_ADVANCE_FORMAT + '' }, defaultValue_tmp: { type: 'hidden', value: '' }, isSetCurrentDate: { name: lbl_is_today, type: 'bool', description: '', hasHtmlTag: true, value: false, summary: true, insertAfter: 'defaultValue', style: 'padding-top: 5px;', uncheck_if_true_ctrl: 'isSetMonthEndingDate, isSetWeekEndingDate', version: VERSION_SET_CURRENT_DATE + '' }, isSetWeekEndingDate: { name: lbl_week_ending_date, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, insertAfter: 'isSetCurrentDate', uncheck_if_true_ctrl: 'isSetMonthEndingDate, isSetCurrentDate', display_if_true_ctrl: 'endDay, weekEndingDateType', version: VERSION_SET_WEEK_ENDING_DATE.toString() }, endDay: { name: lbl_end_day, type: 'enumeration', description: '', required: true, options: [CONST_MONDAY + CONST_DOUBLE_DOLLAR + CONST_MONDAY, CONST_TUESDAY + CONST_DOUBLE_DOLLAR + CONST_TUESDAY, CONST_WEDNESDAY + CONST_DOUBLE_DOLLAR + CONST_WEDNESDAY, CONST_THURSDAY + CONST_DOUBLE_DOLLAR + CONST_THURSDAY, CONST_FRIDAY + CONST_DOUBLE_DOLLAR + CONST_FRIDAY, CONST_SATURDAY + CONST_DOUBLE_DOLLAR + CONST_SATURDAY, CONST_SUNDAY + CONST_DOUBLE_DOLLAR + CONST_SUNDAY], summary: false, value: CONST_SUNDAY, valueIfUndefined: CONST_SUNDAY, show_condition_ques: 'isSetWeekEndingDate', show_condition_ques_val: true, insertAfter: 'isSetWeekEndingDate', version: VERSION_SET_WEEK_ENDING_DATE.toString() }, weekEndingDateType: { name: lbl_week_ending_date_type, type: 'enumeration', description: '', required: true, options: [CONST_CURRENT + CONST_DOUBLE_DOLLAR + lbl_current_date, CONST_VALUE_OTHER + CONST_DOUBLE_DOLLAR + lbl_other_field], summary: false, value: CONST_CURRENT, valueIfUndefined: CONST_CURRENT, show_condition_ques: 'isSetWeekEndingDate', show_condition_ques_val: true, display_if_value_equal: [CONST_VALUE_OTHER + '$$weekEndingDateField'], insertAfter: 'endDay', version: VERSION_SET_WEEK_ENDING_DATE.toString() }, weekEndingDateField: { name: '', hideCaption: true, type: 'enumeration', description: '', required: true, options: [], summary: false, value: '', valueIfUndefined: '', show_condition_ques: 'weekEndingDateType', show_condition_ques_val: CONST_VALUE_OTHER, parent_group_name: 'weekEndingDateType .enumeration_add_grp', version: VERSION_SET_WEEK_ENDING_DATE.toString() }, isSetMonthEndingDate: { name: lbl_month_ending_date, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, uncheck_if_true_ctrl: 'isSetWeekEndingDate, isSetCurrentDate', insertAfter: 'isSetWeekEndingDate', display_if_true_ctrl: 'monthEndingDateType', version: VERSION_SET_MONTH_ENDING_DATE.toString() }, monthEndingDateType: { name: lbl_month_ending_date_type, type: 'enumeration', description: '', required: true, options: [CONST_CURRENT + CONST_DOUBLE_DOLLAR + lbl_current_date, CONST_VALUE_OTHER + CONST_DOUBLE_DOLLAR + lbl_other_field], summary: false, value: CONST_CURRENT, valueIfUndefined: CONST_CURRENT, show_condition_ques: 'isSetMonthEndingDate', show_condition_ques_val: true, display_if_value_equal: [CONST_VALUE_OTHER + '$$monthEndingDateField'], insertAfter: 'weekEndingDateType', version: VERSION_SET_MONTH_ENDING_DATE.toString() }, monthEndingDateField: { name: '', hideCaption: true, type: 'enumeration', description: '', required: true, options: [], summary: false, value: '', valueIfUndefined: '', show_condition_ques: 'monthEndingDateType', show_condition_ques_val: CONST_VALUE_OTHER, parent_group_name: 'monthEndingDateType .enumeration_add_grp', version: VERSION_SET_MONTH_ENDING_DATE.toString() }, useInterval: { name: lbl_use_interval, type: 'bool', description: '', value: true, summary: true, valueIfUndefined: true, show_condition_ques: 'kind', show_condition_ques_val: [CONST_VALUE_TIME, CONST_VALUE_DATE_TIME, CONST_VALUE_DATE_SPACE_TIME], /*display_if_true_ctrl: 'minuteInterval',*/ insertAfter: 'showSeconds', info_msg: hl_date_time + '#use-interval', info_icon: true, info_icon_chk_right: true, //boolFloatChild: true, //boolFloatChildName: 'useIntervalChild', disableCtrlPathIfUnChecked: 'li.minuteInterval select, li.rounding select|up, li.limitUserToIntervalValue input|false', /*class name | value*/ disableCtrlPathIfChecked: 'li.showSeconds input|true', /*class name | value*/ version: VERSION_USE_INTERVAL.toString() }, minuteInterval: { name: lbl_minute_interval, type: 'enumeration', hideCaption: false, options: [CONST_DOUBLE_DOLLAR + lbl_select_opt, '1$$' + lbl_minute_interval_1, '2$$' + lbl_minute_interval_2, '3$$' + lbl_minute_interval_3, '4$$' + lbl_minute_interval_4, '5$$' + lbl_minute_interval_5, '6$$' + lbl_minute_interval_6, '10$$' + lbl_minute_interval_10, '15$$' + lbl_minute_interval_15, '30$$' + lbl_minute_interval_30], description: '', value: '', summary: false, valueIfUndefined: '1', //parent_group_name: 'useIntervalChild', //remove_header: true, paddingLeft: '20px', disableIfUnChecked: 'useInterval', add_class: 'not-use-fieldset', paddingLeft: '41px', /*show_condition_ques: 'useInterval', show_condition_ques_val: true,*/ insertAfter: 'useInterval', show_condition_ques: 'kind', show_condition_ques_val: [CONST_VALUE_TIME, CONST_VALUE_DATE_TIME, CONST_VALUE_DATE_SPACE_TIME], version: VERSION_OPTION_MINUTE_INTERVAL.toString() }, rounding: { name: lbl_rounding, type: 'enumeration', options: [CONST_ROUNDING_UP + '$$' + lbl_rounding_up, CONST_ROUNDING_DOWN + '$$' + lbl_rounding_down, CONST_ROUNDING_UPDOWN + '$$' + lbl_rounding_up_down], description: '', value: CONST_ROUNDING_UP, summary: false, valueIfUndefined: CONST_ROUNDING_UP, paddingLeft: '41px', disableIfUnChecked: 'useInterval', disableValue: CONST_ROUNDING_UP, add_class: 'not-use-fieldset', insertAfter: 'minuteInterval', show_condition_ques: 'kind', show_condition_ques_val: [CONST_VALUE_TIME, CONST_VALUE_DATE_TIME, CONST_VALUE_DATE_SPACE_TIME], version: VERSION_OPTION_MINUTE_INTERVAL_ROUNDING.toString() }, limitUserToIntervalValue: { name: lbl_limit_user_to_interval_value, type: 'bool', description: '', value: false, summary: true, valueIfUndefined: false, paddingLeft: '56px', disableIfUnChecked: 'useInterval', disableValue: false, insertAfter: 'rounding', show_condition_ques: 'kind', show_condition_ques_val: [CONST_VALUE_TIME, CONST_VALUE_DATE_TIME, CONST_VALUE_DATE_SPACE_TIME], version: VERSION_LIMIT_TO_INTERVAL_VALUE.toString() }, apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertAfter: 'justificationGroup', info_msg: hl_shared_ajr + '#appearance', version: '' + VERSION_PORTAL_SHADING}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, insertAfter: 'apperance', version: '' + VERSION_PORTAL_SHADING}, removeAnswerBorder: { name: lbl_remove_aswer_border, type: 'bool', description: '', value: false, summary: true, insertAfter: 'shadedHeadings', paddingLeft: '20px', version: VERSION_REMOVE_ANSW_BORDER.toString() }, answerColor:{ name: '', type: 'ctrl_answer_color', paddingLeft: '20px', description: '', value: { isAnswerColor: false, answerBGColor: '#FFFFFF', answerTextColor: '#000000' }, summary: true, insertAfter: 'removeAnswerBorder', version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER}, shadedButton:{ name: '', type: 'ctrl_shaded_button', paddingLeft: '20px', description: '', value: { isShadedButton: false, btnSheadingColor: '#E9E9E9', btnTextColor: '#000000', activeBtnTextColor: '#000000', btnBorderColor: '#000000', btnRoundedCorners: false }, summary: true, insertAfter: 'shadedHeadings', version: '' + VERSION_PORTAL_SHADING}, actionGroup: { name: lbl_action_group, type: 'property_group', description: lbl_action_group_des, summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowRelevanceCondition: { name: lbl_show_relevance_condition, type: 'bool', description: lbl_show_relevance_condition_des, value: false, summary: true, display_if_true_ctrl: 'relevanceconds', info_msg: hl_shared_di_jt + '#only-display-this-question-if', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowITE: { name: lbl_show_if_then_else_condition, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'iteConditions', info_msg: hl_if_then_else, info_icon: true, version: VERSION_IF_THEN_ELSE.toString()}, isShowReadOnlyIf: { name: lbl_show_read_only_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'readOnlyIfConditions', info_msg: hl_read_only_if, info_icon: true, version: VERSION_READ_ONLY_IF.toString()}, isShowSkipCondition: { name: lbl_show_skip_condition, type: 'bool', description: lbl_show_skip_condition_des, value: false, summary: true, display_if_true_ctrl: 'skipconds', info_msg: hl_shared_di_jt + '#jump-to', uncheck_if_true_ctrl: 'isShowSkipIf', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipIf: { name: lbl_show_skip_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'skipIfConditions', info_msg: hl_shared_di_jt + '#jumptoif', uncheck_if_true_ctrl: 'isShowSkipCondition', info_icon: true, version: VERSION_SKIP_IF.toString()}, skipconds: { name: lbl_skip_cond, type: 'skipConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowSkipCondition', show_condition_ques_val: true }, relevanceconds: { name: lbl_rel_cond, type: 'relevanceConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowRelevanceCondition', show_condition_ques_val: true }, iteConditions: { name: lbl_if_then_else_cond, type: 'iteConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowITE', show_condition_ques_val: true, advanced: true, version: VERSION_IF_THEN_ELSE.toString() }, readOnlyIfConditions: { name: lbl_read_only_if_cond, type: 'readOnlyIfConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowReadOnlyIf', show_condition_ques_val: true, advanced: true, version: VERSION_READ_ONLY_IF.toString()}, skipIfConditions: { name: lbl_skip_if_cond, type: 'skipIfConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowSkipIf', show_condition_ques_val: true, advanced: true, version: VERSION_SKIP_IF.toString() }, iconAction: { name: lbl_icon_action, type: 'enumeration_radio', description: '', options: [ CONST_TODAY + CONST_DOUBLE_DOLLAR + lbl_action_today, CONST_PICKER + CONST_DOUBLE_DOLLAR + lbl_action_picker], showOptionAcross: true, value: CONST_TODAY, valueIfUndefined: CONST_TODAY, insertAfter: CONST_BTNTYPE, show_condition_ques: CONST_BTNTYPE, show_condition_ques_val: CONST_TYPE_IMAGE, notForGrid: true, notForTable: true, ignoreNotForGridVersion: VERSION_SHOW_ICON_BUTTON_DATE_IN_GRID_TABLE, ignoreNotForTableVersion: VERSION_SHOW_ICON_BUTTON_DATE_IN_GRID_TABLE, version: VERSION_ICON_ACTION_DATE_TIME.toString()}, isVerifyTime: { name: lbl_verify, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, insertBefore: 'range', /*display_if_true_ctrl: 'compareField, destinationField, verifyMinRange, verifyMaxRange, inRangeMsgroup, isDisplayLabel, displayLabel',*/ display_if_true_ctrl: 'compareField, destinationField', show_condition_ques: 'kind', show_condition_ques_val: 'Time', info_msg: hl_date_time + '#verifytime', info_icon: true, version: VERSION_TIME_VERIFY.toString() }, compareField: { name: lbl_gps_compare_field, type: 'timeCompareField', description: '', required: true, value: '', valueIfUndefined: '', summary: false, show_condition_ques: 'isVerifyTime', show_condition_ques_val: true, insertAfter: 'isVerifyTime', version: VERSION_TIME_VERIFY.toString() }, destinationField: { name: lbl_gps_destination_field, type: 'timeDestinationField', description: '', required: true, value: '', valueIfUndefined: '', summary: false, show_condition_ques: 'isVerifyTime', show_condition_ques_val: true, insertAfter: 'compareField', version: VERSION_TIME_VERIFY.toString() }, showGroupFormat: { name: lbl_format_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: false, info_msg: hl_text + '#format', insertBefore: 'showNowBtn', version: VERSION_GROUP_FUNCTION.toString() }, showGroupAppearance: { name: lbl_apperance, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_ajr + '#appearance', insertBefore: 'justificationGroup', version: VERSION_GROUP_FUNCTION.toString() }, showGroupRulesPermissions: { name: lbl_group_rules_permissions, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, insertBefore: 'readOnlyGroup', info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS, version: VERSION_GROUP_FUNCTION.toString() }, showGroupActions: { name: lbl_action_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, collapse_expand_ctrl: true, info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS, insertBefore: 'actionGroup', version: VERSION_GROUP_FUNCTION.toString() }, isHideIfCmpVal: { name: lbl_hide_if_cpm_val, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, insertAfter: 'skipIfConditions', display_if_true_ctrl: 'hideIfFields, hideIfCmpVal', version: VERSION_HIDE_IF.toString()}, hideIfCmpVal: { name: '', type: 'hideIfCompareEditor', description: '', value: {}, valueIfUndefined: {}, insertAfter: 'isHideIfCmpVal', show_condition_ques: 'isHideIfCmpVal', show_condition_ques_val: true, summary: false, version: VERSION_HIDE_IF.toString() }, hideIfFields: { name: lbl_hide_if_field_list, type: 'hideIfFieldsEditor', description: '', value: [], valueIfUndefined: [], insertAfter: 'hideIfCmpVal', show_condition_ques: 'isHideIfCmpVal', show_condition_ques_val: true, summary: false, version: VERSION_HIDE_IF.toString() }}, inputLocation: { locationStype: { name: lbl_location_style, type: 'enumeration_radio', description: '', style: 'padding-bottom: 5px;', options: [ CONST_TYPE_MAP_N_COOR + CONST_DOUBLE_DOLLAR + lbl_map_n_coor, CONST_TYPE_ADVANCED + CONST_DOUBLE_DOLLAR + lbl_custom], showOptionAcross: true, value: CONST_TYPE_MAP_N_COOR, valueIfUndefined: CONST_TYPE_MAP_N_COOR, insertBefore: 'label', addValueToPropertyList: true, version: VERSION_LOCATION_STYLE.toString()}, ctrlProperty: { name: lbl_location_ctrl, type: 'ctrlDes', description: '', explainUrl: hl_gps_location, version: '' + VERSION_CTRL_PROPERTY_EXP}, actionKind: { name: lbl_trigger_kind, type: 'enumeration_radio', hideCaption: false, style: 'padding-top: 5px;', add_class: 'hide-legend', showOptionAcross: true, options: [ 'button$$Button', 'autoRun$$Auto run'], value: 'button', summary: true, insertAfter: 'name', addRemoveClassPropertyNameValue: true, addValueToPropertyList: true, version: VERSION_LOCATION_STYLE.toString()}, autoRunTrigger: { name: lbl_action_auto_run_trigger,// CO-2254 type: 'enumeration', add_class: 'buildFormControlsContainer', description: '', options: [ lbl_action_select_a_trigger, '2$$' + lbl_when_a_question_is_completed], value: lbl_sel_question, summary: false, insertAfter: 'actionKind', version: VERSION_LOCATION_STYLE.toString()}, autoRunQuestionTrigger: { name: lbl_trigger_question,// CO-2254 type: 'enumeration', add_class: 'buildFormControlsContainer', description: '', required: true, options: [lbl_sel_question], value: lbl_sel_question, summary: false, insertAfter: 'autoRunTrigger', version: VERSION_LOCATION_STYLE.toString()}, kind: { name: lbl_type, type: 'enumeration_radio', description: '', options: [ 'Button$$' + lbl_kind_text, 'Image$$' + lbl_kind_image], showOptionAcross: true, value: 'Button', insertAfter: 'autoRunQuestionTrigger', addValueToPropertyList: true, version: VERSION_LOCATION_STYLE.toString()}, useImage: { name: lbl_use_image, type: 'bool', description: '', value: false, summary: true, insertAfter: 'kind', add_class: CONST_CSS_CLASS_HIDE_SESSION, version: VERSION_LOCATION_STYLE.toString()}, hintLink: { name: mdi_kind_image, type: 'uploadImage', description: '',//lbl_upload_action_img, required: true, value: '', summary: false, insertAfter: 'useImage', version: VERSION_LOCATION_STYLE.toString()}, actionBtnText: { name: lbl_btn_text, type: 'text', description: '', required: false, value: '', summary: false, insertAfter: 'hintLink', version: VERSION_LOCATION_STYLE.toString()}, imageText: { name: lbl_image_text, type: 'text', description: '', required: false, value: '', summary: false, insertAfter: 'actionBtnText', version: VERSION_LOCATION_STYLE.toString() }, autoStamp: { name: lbl_auto_stamp, type: 'bool', description: '', value: false, summary: true, info_msg: hl_gps_location + '#auto-stamp', info_icon: true, insertAfter: 'defaultValue', style: 'padding-top: 5px;', icon_style: 'padding-top: 5px;', /*hideVersion: VERSION_LOCATION_STYLE.toString(),*/ version: '1.3' }, btnType: { name: lbl_btn_type, type: 'enumeration_radio', description: '', options: [ CONST_TYPE_BUTTON + CONST_DOUBLE_DOLLAR + lbl_show_button_location_text, CONST_TYPE_IMAGE + CONST_DOUBLE_DOLLAR + lbl_show_button_location_icon], showOptionAcross: true, value: CONST_TYPE_BUTTON, valueIfUndefined: CONST_TYPE_BUTTON, insertAfter: 'defaultValue', forTableOnly: true, version: VERSION_ALLOW_LOCATION_IN_TABLE.toString()}, autoStampTrigger: { name: lbl_auto_stamp_trigger, type: 'enumeration', description: lbl_auto_stamp_trigger_des, required: true, value: false, summary: false, options: [lbl_auto_stamp_select_opt, /*'1$$' + lbl_auto_stamp_trigger_1,*/ '2$$' + lbl_auto_stamp_trigger_2, '4$$' + lbl_auto_stamp_trigger_4, '8$$' + lbl_auto_stamp_trigger_8, '16$$' + lbl_auto_stamp_trigger_16], value: lbl_auto_stamp_select_opt, insertAfter: 'autoStamp', optForTable: [lbl_auto_stamp_select_opt, '2'], version: '5.0' }, autoStampTrigger1: { name: lbl_auto_stamp_trigger_1, type: 'bool', description: '', value: false, summary: true, insertAfter: 'autoStampTrigger', version: '5.0' }, autoStampTrigger2: { name: lbl_auto_stamp_trigger_2, type: 'bool', description: '', value: false, summary: true, insertAfter: 'autoStampTrigger1', version: '5.0' }, autoStampTrigger2Ques: { name: lbl_auto_stamp_trigger_2_ques, type: 'enumeration', description: '', required: true, options: [lbl_sel_question], value: lbl_sel_question, summary: false, insertAfter: 'autoStampTrigger2', version: '5.0' }, autoStampTrigger4: { name: lbl_auto_stamp_trigger_4, type: 'bool', description: '', value: false, summary: true, insertAfter: 'autoStampTrigger2Ques', version: '5.0' }, autoStampTrigger4Ques: { name: lbl_auto_stamp_trigger_4_page, type: 'enumeration', description: '', required: true, options: [lbl_sel_page], summary: false, insertAfter: 'autoStampTrigger4', version: '5.0' }, autoStampTrigger8: { name: lbl_auto_stamp_trigger_8, type: 'bool', description: '', value: false, summary: true, insertAfter: 'autoStampTrigger4Ques', version: '5.0' }, autoStampTrigger16: { name: lbl_auto_stamp_trigger_16, type: 'bool', description: '', value: false, summary: true, insertAfter: 'autoStampTrigger8', version: '5.0' }, hideMobileWebGroup: { name: lbl_hide_mobile_web_group, type: 'property_group', add_class: 'notAcross margin-left-10', description: lbl_hide_mobile_web_group_des, info_msg: hl_shared_hide + '#hide', showSelectAll: true, summary: true, info_icon: false, version: '' + VERSION_TOOL_PARAM_CLEANUP}, hideViewDataGroup: { name: lbl_use_view_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', description: '', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit,//lbl_view_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchGroup: { name: lbl_use_dis_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_dispatch_new_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, //lbl_dispatch_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_fill_and_send_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()}, hideUsersGroup: { name: lbl_users_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInMobile: { name: lbl_mobile_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_mobile_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInPDF: { name: lbl_hide_in_pdf_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_pdf_grp, grp_description: '', version: '' + VERSION_HIDE_PDF}, hideWebAppGrp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, valueIfUndefined: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewNew: { name: lbl_view_new_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_view_new_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchToEmail: { name: lbl_dispatch_to_email_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_dispatch_to_email_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_DISPATCH_TO_EMAIL.toString()}, hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_fill_and_send_edit_grp, grp_description: '', valueIfUndefined: false, show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_FNS_EDIT.toString()}, hideWebApp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideEmbeddedForm: { name: lbl_embedded_form, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_embedded_form, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_CO_135_NEW_SETTING.toString()}, hideFormLinks: { name: lbl_form_links_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_form_links_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_RESTRICT_OPTION_FL.toString()}, hidePdfWeb: { name: lbl_hide_pdf_web, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_pdf_web, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_HIDE_PDF_WEB.toString()}, hideInWeb: { name: lbl_hide_in_web, type: 'bool', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_web_grp, grp_description: '', version: '1.3', hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideForwardedGroup: { name: lbl_use_fowarded_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideForwarded: { name: lbl_edit, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideRetrieveGroup: { name: lbl_retrieve_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, hideOnRetrieve: { name: lbl_on_retrieve, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_on_retrieve, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, isAllowEdit: { name: lbl_auto_stamp_allow_edit, type: 'bool', description: lbl_auto_stamp_allow_edit_des, value: true, summary: true, //insertBefore: 'autoStamp', insertAfter: 'autoStampTrigger16', version: VERSION_ALLOW_EDIT_OPT + '' }, showGPSInfo: { name: lbl_show_additional_gps_inf, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'showLat, showLon, showAcc, showAlt', insertAfter: 'isAllowEdit', notForTable: true, version: '' + VERSION_PCA_43_44 }, showLat: { name: lbl_location_show_lat, paddingLeft: '20px', type: 'bool', description: lbl_location_show_lat_des, value: true, summary: true, insertAfter: 'showGPSInfo', show_condition_ques: 'showGPSInfo', notForTable: true, show_condition_ques_val: true, version: '' + VERSION_LOCATION_SHOW_HIDE_OPT }, showLon: { name: lbl_location_show_lon, paddingLeft: '20px', type: 'bool', description: lbl_location_show_lon_des, value: true, summary: true, insertAfter: 'showLat', show_condition_ques: 'showGPSInfo', show_condition_ques_val: true, notForTable: true, version: '' + VERSION_LOCATION_SHOW_HIDE_OPT }, showAcc: { name: lbl_location_show_acc, paddingLeft: '20px', type: 'bool', description: lbl_location_show_acc_des, value: true, summary: true, insertAfter: 'showLon', show_condition_ques: 'showGPSInfo', show_condition_ques_val: true, notForTable: true, version: '' + VERSION_LOCATION_SHOW_HIDE_OPT }, showAlt: { name: lbl_location_show_alt, paddingLeft: '20px', type: 'bool', description: lbl_location_show_alt_des, value: true, summary: true, insertAfter: 'showAcc', show_condition_ques: 'showGPSInfo', show_condition_ques_val: true, notForTable: true, version: '' + VERSION_LOCATION_SHOW_HIDE_OPT }, range: { name: lbl_range, type: 'numericRange', description: '', //lbl_range_gps_des, value: false, summary: false, version: '1.3', insertAfter: 'showAlt', hideVersion: '' + VERSION_LOCATION_SHOW_HIDE_OPT}, maxError: { name: lbl_location_max_error, type: 'numericDefaultField', kind: 'Number', description: lbl_location_max_error_des, qtip: hl_gps_location + '#maximum-error', value: '500', required: false, summary: false, insertAfter: 'imageText', style: 'padding-top: 5px;', add_class: 'makeAcross not-use-fieldset', makeAcross_des: lbl_meters, makeAcross_des_style: 'letter-spacing: initial;padding-left: 5px;font-size: 14px; font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #36617c;', version: '' + VERSION_LOCATION_SHOW_HIDE_OPT }, showAsDecimal: { name: lbl_gps_show_decimal, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, insertAfter: 'showAlt', notForTable: true, version: VERSION_GPS_SHOW_DECIMAL.toString() }, isGetAddress: { name: lbl_gps_get_address, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, //insertAfter: 'showAsDecimal', insertAfter: 'isAllowEdit', //display_if_true_ctrl: 'addressType,destinationField4GetAddress', display_if_true_ctrl: 'addressData', info_icon: false, version: VERSION_GPS_GET_ADDRESS.toString() }, addressData: { name: '', hideCaption: true, type: 'addressActionDestinationFillEditor', description: '', value: [{active: false, text: {val: ''}, value: {val: CONST_COMPLETE_ADDRESS}}, {active: false, text: {val: ''}, value: {val: CONST_STREET}}, {active: false, text: {val: ''}, value: {val: CONST_CITY}}, {active: false, text: {val: ''}, value: {val: CONST_STATE}}, {active: false, text: {val: ''}, value: {val: CONST_ZIP}}], valueIfUndefined: [{active: false, text: {val: ''}, value: {val: CONST_COMPLETE_ADDRESS}}, {active: false, text: {val: ''}, value: {val: CONST_STREET}}, {active: false, text: {val: ''}, value: {val: CONST_CITY}}, {active: false, text: {val: ''}, value: {val: CONST_STATE}}, {active: false, text: {val: ''}, value: {val: CONST_ZIP}}], summary: false, insertAfter: 'isGetAddress', show_condition_ques: 'isGetAddress', show_condition_ques_val: true, version: VERSION_GPS_GET_ADDRESS.toString() }, /*addressType: { name: lbl_address_type, type: 'enumeration', add_class: 'not-use-fieldset', description: '', required: false, value: CONST_COMPLETE_ADDRESS, valueIfUndefined: CONST_COMPLETE_ADDRESS, options: [ CONST_COMPLETE_ADDRESS + '$$' + lbl_complete_address, CONST_STREET + '$$' + lbl_street, CONST_CITY + '$$' + lbl_city, CONST_STATE + '$$' + lbl_state, CONST_ZIP + '$$' + lbl_zip], summary: false, show_condition_ques: 'isGetAddress', show_condition_ques_val: true, insertAfter: 'isGetAddress', version: VERSION_GPS_GET_ADDRESS.toString() }, destinationField4GetAddress: { name: lbl_gps_destination_field_4_get_address, type: 'gpsDestinationField4GetAddress', description: '', required: true, value: '', valueIfUndefined: '', summary: false, show_condition_ques: 'isGetAddress', show_condition_ques_val: true, insertAfter: 'addressType', version: VERSION_GPS_GET_ADDRESS.toString() },*/ hasGPSDestination: { name: lbl_has_gps_destination_field, type: 'bool', description: '', value: false, valueIfUndefined: true, summary: true, insertBefore: 'isGetAddress', display_if_true_ctrl: 'destinationdata', info_icon: false, trigger_if_value_change: ['li.destinationdata .actionDestinationFillEditor$$add-remove-all'], version: VERSION_GPS_GET_ADDRESS.toString() }, destinationdata: { name: '', type: 'gpsActionDestinationFillEditor', description: '', value: [{active: false, text: {val: ''}, value: {val: CONST_LOCATION_LAT}}, {active: false, text: {val: ''}, value: {val: CONST_LOCATION_LON}}, {active: false, text: {val: ''}, value: {val: CONST_LOCATION_ALT}}, {active: false, text: {val: ''}, value: {val: CONST_LOCATION_ACC}}, {active: false, text: {val: ''}, value: {val: CONST_LOCATION_MAP}}], valueIfUndefined: [{active: false, text: {val: ''}, value: {val: CONST_LOCATION_LAT}}, {active: false, text: {val: ''}, value: {val: CONST_LOCATION_LON}}, {active: false, text: {val: ''}, value: {val: CONST_LOCATION_ALT}}, {active: false, text: {val: ''}, value: {val: CONST_LOCATION_ACC}}, {active: false, text: {val: ''}, value: {val: CONST_LOCATION_MAP}}], summary: false, insertAfter: 'hasGPSDestination', show_condition_ques: 'hasGPSDestination', show_condition_ques_val: true, version: VERSION_GPS_GET_ADDRESS.toString() }, isVerifyAddress: { name: lbl_gps_verify_address, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, insertBefore: 'hasGPSDestination', //insertAfter: 'destinationField4GetAddress', display_if_true_ctrl: 'compareField, destinationField, displayDistanceAs', info_msg: hl_gps_location + '#verifylocation', info_icon: true, version: VERSION_GPS_VERIFY_ADDRESS.toString() }, compareField: { name: lbl_gps_compare_field, type: 'gpsCompareField', description: '', required: true, value: '', valueIfUndefined: '', summary: false, show_condition_ques: 'isVerifyAddress', show_condition_ques_val: true, insertAfter: 'isVerifyAddress', version: VERSION_GPS_VERIFY_ADDRESS.toString() }, destinationField: { name: lbl_gps_destination_field, type: 'gpsDestinationField', description: '', required: true, value: '', valueIfUndefined: '', summary: false, show_condition_ques: 'isVerifyAddress', show_condition_ques_val: true, insertAfter: 'compareField', version: VERSION_GPS_VERIFY_ADDRESS.toString() }, displayDistanceAs: { name: lbl_display_distance_as, type: 'enumeration_radio', description: '', hideCaption: true, options: [ CONST_VALUE_METERS + CONST_DOUBLE_DOLLAR + lbl_distance_as_meters, CONST_VALUE_FEET + CONST_DOUBLE_DOLLAR + lbl_distance_as_feet, CONST_KM + CONST_DOUBLE_DOLLAR + lbl_distance_as_km, CONST_VALUE_MILES + CONST_DOUBLE_DOLLAR + lbl_distance_as_miles], valueIfUndefined: CONST_VALUE_METERS, showOptionAcross: true, value: CONST_VALUE_METERS, insertAfter: 'destinationField', show_condition_ques: 'isVerifyAddress', show_condition_ques_val: true, version: VERSION_GPS_VERIFY_ADDRESS.toString()}, dispMapInMobile: { name: lbl_gps_display_map_in_mobile, type: 'bool', description: '', value: true, valueIfUndefined: true, summary: true, //insertAfter: 'displayDistanceAs', insertAfter: 'showAsDecimal', version: VERSION_GPS_DISPLAY_MAP.toString() }, dispMapInReport: { name: lbl_gps_display_map_in_report, type: 'bool', description: '', value: true, valueIfUndefined: true, summary: true, insertAfter: 'dispMapInMobile', version: VERSION_GPS_DISPLAY_MAP.toString() }, promtAfter: { name: lbl_location_promt_after, type: 'numericDefaultField', kind: 'Number', description: lbl_location_promt_after_des, value: '5', required: false, summary: false, insertAfter: 'maxError', style: 'padding-top: 5px;', add_class: 'makeAcross not-use-fieldset', makeAcross_des: lbl_seconds, makeAcross_des_style: 'letter-spacing: initial;padding-left: 5px;font-size: 14px; font-weight: bold; font-family: Arial, Helvetica, sans-serif; color: #36617c;', version: '' + VERSION_LOCATION_SHOW_HIDE_OPT }, zoomLevel: { name: lbl_location_zoom_level, type: 'enumeration', description: '', options: ['0$$0','1$$1','2$$2','3$$3','4$$4','5$$5','6$$6','7$$7','8$$8','9$$9','10$$10','11$$11','12$$12','13$$13','14$$14','15$$15','16$$16','17$$17','18$$18','19$$19','20$$20'], valueIfUndefined: '14', //insertAfter: 'promtAfter', insertAfter: 'dispMapInReport', value: '14', summary: true, info_msg: hl_gps_location + '#zoomlevel', info_icon: true, version: VERSION_GPS_ZOOM_LEVEL.toString()}, apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertAfter: 'justificationGroup', info_msg: hl_shared_ajr + '#appearance', version: '' + VERSION_PORTAL_SHADING}, imgJustify: { name: lbl_img_justify, type: 'enumeration_radio', description: '', showCaptionAcross: { captionStyle: 'float:left;margin-top:-5px;width:70px;' }, showOptionAcross: true, options: [ '0$$L', '1$$C', '2$$R'], value: '1', valueIfUndefined: '1', style: 'padding-top: 5px;margin-top: -10px;', insertAfter: 'justificationGroup', summary: false, version: VERSION_GPS_GET_ADDRESS.toString()}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, insertAfter: 'apperance', version: '' + VERSION_PORTAL_SHADING}, removeAnswerBorder: { name: lbl_remove_aswer_border, type: 'bool', description: '', value: false, summary: true, insertAfter: 'shadedHeadings', paddingLeft: '20px', version: VERSION_REMOVE_ANSW_BORDER.toString() }, answerColor:{ name: '', type: 'ctrl_answer_color', paddingLeft: '20px', description: '', value: { isAnswerColor: false, answerBGColor: '#FFFFFF', answerTextColor: '#000000' }, summary: true, insertAfter: 'removeAnswerBorder', version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER}, shadedButton:{ name: '', type: 'ctrl_shaded_button', paddingLeft: '20px', description: '', value: { isShadedButton: false, btnSheadingColor: '#E9E9E9', btnTextColor: '#000000', activeBtnTextColor: '#000000', btnBorderColor: '#000000', btnRoundedCorners: false }, summary: true, insertAfter: 'shadedHeadings', version: '' + VERSION_PORTAL_SHADING}, actionGroup: { name: lbl_action_group, type: 'property_group', description: lbl_action_group_des, summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowRelevanceCondition: { name: lbl_show_relevance_condition, type: 'bool', description: lbl_show_relevance_condition_des, value: false, summary: true, display_if_true_ctrl: 'relevanceconds', info_msg: hl_shared_di_jt + '#only-display-this-question-if', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowITE: { name: lbl_show_if_then_else_condition, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'iteConditions', info_msg: hl_if_then_else, info_icon: true, version: VERSION_IF_THEN_ELSE.toString()}, isShowReadOnlyIf: { name: lbl_show_read_only_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'readOnlyIfConditions', info_msg: hl_read_only_if, info_icon: true, version: VERSION_READ_ONLY_IF.toString()}, isShowSkipCondition: { name: lbl_show_skip_condition, type: 'bool', description: lbl_show_skip_condition_des, value: false, summary: true, display_if_true_ctrl: 'skipconds', info_msg: hl_shared_di_jt + '#jump-to', uncheck_if_true_ctrl: 'isShowSkipIf', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipIf: { name: lbl_show_skip_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'skipIfConditions', info_msg: hl_shared_di_jt + '#jumptoif', uncheck_if_true_ctrl: 'isShowSkipCondition', info_icon: true, version: VERSION_SKIP_IF.toString()}, skipconds: { name: lbl_skip_cond, type: 'skipConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowSkipCondition', show_condition_ques_val: true }, relevanceconds: { name: lbl_rel_cond, type: 'relevanceConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowRelevanceCondition', show_condition_ques_val: true }, iteConditions: { name: lbl_if_then_else_cond, type: 'iteConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowITE', show_condition_ques_val: true, advanced: true, version: VERSION_IF_THEN_ELSE.toString() }, readOnlyIfConditions: { name: lbl_read_only_if_cond, type: 'readOnlyIfConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowReadOnlyIf', show_condition_ques_val: true, advanced: true, version: VERSION_READ_ONLY_IF.toString()}, skipIfConditions: { name: lbl_skip_if_cond, type: 'skipIfConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowSkipIf', show_condition_ques_val: true, advanced: true, version: VERSION_SKIP_IF.toString() }, showGroupFormat: { name: lbl_format_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: false, info_msg: hl_text + '#format', insertAfter: 'addressData', version: VERSION_GROUP_FUNCTION.toString() }, showGroupAppearance: { name: lbl_apperance, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_ajr + '#appearance', insertBefore: 'justificationGroup', version: VERSION_GROUP_FUNCTION.toString() }, showGroupRulesPermissions: { name: lbl_group_rules_permissions, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, insertBefore: 'readOnlyGroup', info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS, version: VERSION_GROUP_FUNCTION.toString() }, showGroupActions: { name: lbl_action_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, collapse_expand_ctrl: true, info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS, insertBefore: 'actionGroup', version: VERSION_GROUP_FUNCTION.toString() }, isHideIfCmpVal: { name: lbl_hide_if_cpm_val, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, insertAfter: 'skipIfConditions', display_if_true_ctrl: 'hideIfFields, hideIfCmpVal', version: VERSION_HIDE_IF.toString()}, hideIfCmpVal: { name: '', type: 'hideIfCompareEditor', description: '', value: {}, valueIfUndefined: {}, insertAfter: 'isHideIfCmpVal', show_condition_ques: 'isHideIfCmpVal', show_condition_ques_val: true, summary: false, version: VERSION_HIDE_IF.toString() }, hideButtonAfterClick: { name: lbl_hide_button_after_click, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, insertAfter: 'hideIfCmpVal', version: VERSION_GROUP_FUNCTION.toString() }, isHideIfClick: { name: lbl_set_hide_fields, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, insertAfter: 'hideButtonAfterClick', display_if_true_ctrl: 'hideIfFields', version: VERSION_HIDE_IF.toString()}, hideIfFields: { name: lbl_hide_if_field_list, type: 'hideIfFieldsEditor', description: '', value: [], valueIfUndefined: [], insertAfter: 'isHideIfClick', show_condition_ques: 'isHideIfCmpVal|isHideIfClick', show_condition_ques_val: true, summary: false, version: VERSION_HIDE_IF.toString() }, buttonSize:{ name: lbl_button_size, type: 'enumeration_radio', description: '', showOptionAcross: true, add_class: 'not-use-fieldset hide-legend', options: [ CONST_SIZE_SMALL + '$$' + lbl_size_options_small, CONST_SIZE_MEDIUM + '$$' + lbl_size_options_medium, CONST_SIZE_LARGE + '$$' + lbl_size_options_large], value: CONST_SIZE_SMALL, valueIfUndefined: CONST_SIZE_SMALL, summary: true, insertBefore: 'maxError', version: VERSION_GPS_BUTTON_SIZE.toString() }}, inputImage: { ctrlProperty: { name: lbl_image_ctrl, type: 'ctrlDes', description: '', explainUrl: hl_image, version: '' + VERSION_CTRL_PROPERTY_EXP}, displayGroup: { name: lbl_display, type: 'property_group', summary: true, info_msg: hl_image + '#display', info_icon: true, hideVersion: '' + VERSION_IMAGE_CLEAR_BTN}, dispClearBtn: { name: lbl_disp_clear_btn, type: 'bool', grp_type: CONST_BOOL_GRP, description: '', value: false, summary: true, parent_group: 'displayGroup', grp_name: lbl_disp_clear_btn, hideVersion: '' + VERSION_IMAGE_CLEAR_BTN}, apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertAfter: 'justificationGroup', info_msg: hl_shared_ajr + '#appearance', version: '' + VERSION_PORTAL_SHADING}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, insertAfter: 'apperance', version: '' + VERSION_PORTAL_SHADING}, removeAnswerBorder: { name: lbl_remove_aswer_border, type: 'bool', description: '', value: false, summary: true, insertAfter: 'shadedHeadings', paddingLeft: '20px', version: VERSION_REMOVE_ANSW_BORDER.toString() }, shadedButton:{ name: '', type: 'ctrl_shaded_button', paddingLeft: '20px', description: '', value: { isShadedButton: false, btnSheadingColor: '#E9E9E9', btnTextColor: '#000000', activeBtnTextColor: '#000000', btnBorderColor: '#000000', btnRoundedCorners: false }, summary: true, insertAfter: 'shadedHeadings', version: '' + VERSION_PORTAL_SHADING}, actionGroup: { name: lbl_action_group, type: 'property_group', description: lbl_action_group_des, summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowRelevanceCondition: { name: lbl_show_relevance_condition, type: 'bool', description: lbl_show_relevance_condition_des, value: false, summary: true, display_if_true_ctrl: 'relevanceconds', info_msg: hl_shared_di_jt + '#only-display-this-question-if', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipCondition: { name: lbl_show_skip_condition, type: 'bool', description: lbl_show_skip_condition_des, value: false, summary: true, display_if_true_ctrl: 'skipconds', info_msg: hl_shared_di_jt + '#jump-to', uncheck_if_true_ctrl: 'isShowSkipIf', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipIf: { name: lbl_show_skip_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'skipIfConditions', info_msg: hl_shared_di_jt + '#jumptoif', uncheck_if_true_ctrl: 'isShowSkipCondition', info_icon: true, version: VERSION_SKIP_IF.toString()}, skipconds: { name: lbl_skip_cond, type: 'skipConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowSkipCondition', show_condition_ques_val: true }, relevanceconds: { name: lbl_rel_cond, type: 'relevanceConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowRelevanceCondition', show_condition_ques_val: true }, skipIfConditions: { name: lbl_skip_if_cond, type: 'skipIfConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowSkipIf', show_condition_ques_val: true, advanced: true, version: VERSION_SKIP_IF.toString() }, isAllowEdit: { name: lbl_allow_edit_option, type: 'bool', description: '', value: true, summary: true, insertBefore: 'justificationGroup', valueIfUndefined: true, style: 'padding-top: 5px;', version: VERSION_ALLOW_EDIT_SKETCH_IMG.toString() }, sketchGroup: { name: lbl_sketch_group, type: 'property_group', description: '', summary: true, insertBefore: 'justificationGroup', info_msg: hl_image + '#sketch', info_icon: true}, isAllowSketch: { name: lbl_allow_sketch, type: 'bool', description: '', value: true, summary: true, insertBefore: 'justificationGroup', valueIfUndefined: true, display_if_true_ctrl: 'isAutoStartSketch,isShowAdvanceToolbar', version: VERSION_ALLOW_EDIT_SKETCH_IMG.toString() }, isAutoStartSketch: { name: lbl_auto_start_sketch, type: 'bool', description: '', style: 'padding-left: 20px;', value: false, summary: true, insertBefore: 'justificationGroup', valueIfUndefined: false, show_condition_ques: 'isAllowSketch', show_condition_ques_val: true, version: VERSION_AUTO_START_SKETCH.toString() }, isShowAdvanceToolbar: { name: lbl_show_advance_toolbar, type: 'bool', description: '', style: 'padding-left: 20px;', value: true, summary: true, insertBefore: 'justificationGroup', show_condition_ques: 'isAllowSketch', show_condition_ques_val: true, valueIfUndefined: true, version: VERSION_CTRL_SHOW_ADVANCED_TOOLBAR.toString() }, stampGroup: { name: lbl_stamp_group, type: 'property_group', description: '', summary: true, insertBefore: 'justificationGroup', version: VERSION_AUTO_STAMP_IMG.toString()}, isAllowAutoStampImage: { name: lbl_auto_stamp_image, type: 'bool', description: '', value: false, summary: true, insertBefore: 'justificationGroup', valueIfUndefined: false, display_if_true_ctrl: 'stampGPSLocation,stampDirection,stampDateNTime,stampDescription,stampDescField,stampAltitude', addValueToPropertyList: true, version: VERSION_AUTO_STAMP_IMG.toString() }, stampDateNTime: { name: lbl_auto_stamp_date_n_time, type: 'bool', description: '', style: 'padding-left: 20px;', value: true, summary: true, insertBefore: 'justificationGroup', show_condition_ques: 'isAllowAutoStampImage', show_condition_ques_val: true, valueIfUndefined: true, version: VERSION_AUTO_STAMP_IMG.toString() }, stampAltitude: { name: lbl_auto_stamp_altitude, type: 'bool', description: '', style: 'padding-left: 20px;', value: true, summary: true, insertBefore: 'justificationGroup', show_condition_ques: 'isAllowAutoStampImage', show_condition_ques_val: true, valueIfUndefined: false, version: VERSION_AUTO_STAMP_ALT.toString() }, stampGPSLocation: { name: lbl_auto_stamp_gps, type: 'bool', description: '', style: 'padding-left: 20px;', value: true, summary: true, insertBefore: 'justificationGroup', show_condition_ques: 'isAllowAutoStampImage', show_condition_ques_val: true, valueIfUndefined: true, version: VERSION_AUTO_STAMP_IMG.toString() }, stampDirection: { name: lbl_auto_stamp_direction, type: 'bool', description: '', style: 'padding-left: 20px;', value: true, summary: true, insertBefore: 'justificationGroup', show_condition_ques: 'isAllowAutoStampImage', show_condition_ques_val: true, valueIfUndefined: true, version: VERSION_AUTO_STAMP_IMG_DIR.toString() }, stampDescription: { name: lbl_auto_stamp_description, type: 'bool', description: '', style: 'padding-left: 20px;', value: true, summary: true, insertBefore: 'justificationGroup', show_condition_ques: 'isAllowAutoStampImage', show_condition_ques_val: true, valueIfUndefined: true, addValueToPropertyList: true, version: VERSION_AUTO_STAMP_IMG.toString() }, stampDescField: { name: '', type: 'enumeration', required: true, options: [], value: '', summary: false, info_icon: false, hideCaption: true, style: 'padding-left: 40px;', add_class: 'not-use-fieldset', insertBefore: 'justificationGroup', valueIfUndefined: '', version: VERSION_AUTO_STAMP_IMG.toString()}, appGroup: { name: lbl_app_group, type: 'property_group', description: '', summary: true, insertBefore: 'justificationGroup', version: VERSION_IMG_CAMERA_APP.toString()}, androidApp: { name: lbl_android_app, type: 'enumeration', required: false, options: android_app, value: lbl_sel_question, summary: false, insertBefore: 'justificationGroup', valueIfUndefined: '', version: VERSION_ANDROID_APP.toString()}, androidCameraApp: { name: lbl_launch_proc, type: 'text', description: '', required: false, value: '', summary: false, insertBefore: 'justificationGroup', valueIfUndefined: '', version: VERSION_IMG_CAMERA_APP.toString()}, iOSCameraApp: { name: lbl_ios_app_name, type: 'enumeration', description: '', options: [ '$$', 'context_camera$$' + lbl_ios_context_camera, 'flir_one$$' + lbl_ios_flir_one], required: false, value: '', valueIfUndefined: '', summary: false, insertBefore: 'justificationGroup', valueIfUndefined: '', version: VERSION_IOS_CAMERA_APP.toString() }, allowImgSel: { name: lbl_allow_img_sel, type: 'bool', description: '', value: false, summary: true, insertBefore: 'sketchGroup', version: '3.6' }, isShowBtn: { name: lbl_show_btn, type: 'bool', description: '', value: false, summary: true, insertBefore: 'sketchGroup', forTableGrid: true, valueIfUndefined: false, version: VERSION_SHOW_BTN_IMG.toString() }, showGroupFormat: { name: lbl_format_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: false, info_msg: hl_text + '#format', insertBefore: 'isAllowEdit', version: VERSION_GROUP_FUNCTION.toString() }, showGroupAppearance: { name: lbl_apperance, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_ajr + '#appearance', insertBefore: 'justificationGroup', version: VERSION_GROUP_FUNCTION.toString() }, showGroupRulesPermissions: { name: lbl_group_rules_permissions, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, insertBefore: 'readOnlyGroup', info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS, version: VERSION_GROUP_FUNCTION.toString() }, showGroupActions: { name: lbl_action_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, collapse_expand_ctrl: true, info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS, insertBefore: 'actionGroup', version: VERSION_GROUP_FUNCTION.toString() }}, inputImageViewer: { ctrlProperty: { name: lbl_image_viewer_ctrl, type: 'ctrlDes', description: '', explainUrl: hl_image_viewer}, hideMobileWebGroup: { name: lbl_hide_mobile_web_group, type: 'property_group', add_class: 'notAcross margin-left-10', description: lbl_hide_mobile_web_group_des, info_msg: hl_shared_hide + '#hide', showSelectAll: true, summary: true, info_icon: false, version: '' + VERSION_TOOL_PARAM_CLEANUP}, hideViewDataGroup: { name: lbl_use_view_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', description: '', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit,//lbl_view_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchGroup: { name: lbl_use_dis_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_dispatch_new_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, //lbl_dispatch_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_fill_and_send_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()}, hideUsersGroup: { name: lbl_users_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInMobile: { name: lbl_mobile_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_mobile_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInPDF: { name: lbl_hide_in_pdf_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_pdf_grp, grp_description: '', version: '' + VERSION_HIDE_PDF}, hideWebAppGrp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, valueIfUndefined: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewNew: { name: lbl_view_new_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_view_new_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchToEmail: { name: lbl_dispatch_to_email_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_dispatch_to_email_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_DISPATCH_TO_EMAIL.toString()}, hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_fill_and_send_edit_grp, grp_description: '', valueIfUndefined: false, show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_FNS_EDIT.toString()}, hideWebApp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideEmbeddedForm: { name: lbl_embedded_form, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_embedded_form, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_CO_135_NEW_SETTING.toString()}, hideFormLinks: { name: lbl_form_links_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_form_links_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_RESTRICT_OPTION_FL.toString()}, hidePdfWeb: { name: lbl_hide_pdf_web, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_pdf_web, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_HIDE_PDF_WEB.toString()}, hideInWeb: { name: lbl_hide_in_web, type: 'bool', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_web_grp, grp_description: '', version: '1.3', hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideForwardedGroup: { name: lbl_use_fowarded_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideForwarded: { name: lbl_edit, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideRetrieveGroup: { name: lbl_retrieve_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, hideOnRetrieve: { name: lbl_on_retrieve, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_on_retrieve, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, imageUrl: { name: lbl_image_url, type: 'enumeration', description: '', required: true, options: [CONST_DOUBLE_DOLLAR + lbl_select_opt], value: '', insertAfter: 'defaultValue', summary: false}, isFitToScreen: { name: lbl_fit_image_to_screen, type: 'bool', description: '', style: 'padding-top: 5px;', value: false, summary: true, insertAfter: 'imageUrl'}, apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertAfter: 'justificationGroup', info_msg: hl_shared_ajr + '#appearance', version: '' + VERSION_PORTAL_SHADING}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, insertAfter: 'apperance', version: '' + VERSION_PORTAL_SHADING}, removeAnswerBorder: { name: lbl_remove_aswer_border, type: 'bool', description: '', value: false, summary: true, insertAfter: 'shadedHeadings', paddingLeft: '20px', version: VERSION_REMOVE_ANSW_BORDER.toString() }, shadedButton:{ name: '', type: 'ctrl_shaded_button', paddingLeft: '20px', description: '', value: { isShadedButton: false, btnSheadingColor: '#E9E9E9', btnTextColor: '#000000', activeBtnTextColor: '#000000', btnBorderColor: '#000000', btnRoundedCorners: false }, summary: true, insertAfter: 'shadedHeadings', version: '' + VERSION_PORTAL_SHADING}, actionGroup: { name: lbl_action_group, type: 'property_group', description: lbl_action_group_des, summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowRelevanceCondition: { name: lbl_show_relevance_condition, type: 'bool', description: lbl_show_relevance_condition_des, value: false, summary: true, display_if_true_ctrl: 'relevanceconds', info_msg: hl_shared_di_jt + '#only-display-this-question-if', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, relevanceconds: { name: lbl_rel_cond, type: 'relevanceConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowRelevanceCondition', show_condition_ques_val: true }, showGroupAppearance: { name: lbl_apperance, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_ajr + '#appearance', insertBefore: 'justificationGroup', version: VERSION_GROUP_FUNCTION.toString() }, showGroupRulesPermissions: { name: lbl_group_rules_permissions, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, insertBefore: 'readOnlyGroup', info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS, version: VERSION_GROUP_FUNCTION.toString() }, showGroupActions: { name: lbl_action_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, collapse_expand_ctrl: true, info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS, insertBefore: 'actionGroup', version: VERSION_GROUP_FUNCTION.toString() }}, inputAudio: { ctrlProperty: { name: lbl_audio_ctrl, type: 'ctrlDes', description: '', explainUrl: hl_audio, version: '' + VERSION_CTRL_PROPERTY_EXP}, apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertAfter: 'justificationGroup', info_msg: hl_shared_ajr + '#appearance', version: '' + VERSION_PORTAL_SHADING}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, insertAfter: 'apperance', version: '' + VERSION_PORTAL_SHADING}, removeAnswerBorder: { name: lbl_remove_aswer_border, type: 'bool', description: '', value: false, summary: true, insertAfter: 'shadedHeadings', paddingLeft: '20px', version: VERSION_REMOVE_ANSW_BORDER.toString() }, shadedButton:{ name: '', type: 'ctrl_shaded_button', paddingLeft: '20px', description: '', value: { isShadedButton: false, btnSheadingColor: '#E9E9E9', btnTextColor: '#000000', activeBtnTextColor: '#000000', btnBorderColor: '#000000', btnRoundedCorners: false }, summary: true, insertAfter: 'shadedHeadings', version: '' + VERSION_PORTAL_SHADING}, actionGroup: { name: lbl_action_group, type: 'property_group', description: lbl_action_group_des, summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowRelevanceCondition: { name: lbl_show_relevance_condition, type: 'bool', description: lbl_show_relevance_condition_des, value: false, summary: true, display_if_true_ctrl: 'relevanceconds', info_msg: hl_shared_di_jt + '#only-display-this-question-if', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipCondition: { name: lbl_show_skip_condition, type: 'bool', description: lbl_show_skip_condition_des, value: false, summary: true, display_if_true_ctrl: 'skipconds', info_msg: hl_shared_di_jt + '#jump-to', uncheck_if_true_ctrl: 'isShowSkipIf', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipIf: { name: lbl_show_skip_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'skipIfConditions', info_msg: hl_shared_di_jt + '#jumptoif', uncheck_if_true_ctrl: 'isShowSkipCondition', info_icon: true, version: VERSION_SKIP_IF.toString()}, skipconds: { name: lbl_skip_cond, type: 'skipConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowSkipCondition', show_condition_ques_val: true }, relevanceconds: { name: lbl_rel_cond, type: 'relevanceConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowRelevanceCondition', show_condition_ques_val: true }, skipIfConditions: { name: lbl_skip_if_cond, type: 'skipIfConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowSkipIf', show_condition_ques_val: true, advanced: true, version: VERSION_SKIP_IF.toString() }, showGroupAppearance: { name: lbl_apperance, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_ajr + '#appearance', insertBefore: 'justificationGroup', version: VERSION_GROUP_FUNCTION.toString() }, showGroupRulesPermissions: { name: lbl_group_rules_permissions, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, insertBefore: 'readOnlyGroup', info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS, version: VERSION_GROUP_FUNCTION.toString() }, showGroupActions: { name: lbl_action_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, collapse_expand_ctrl: true, info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS, insertBefore: 'actionGroup', version: VERSION_GROUP_FUNCTION.toString() }}, inputVideo: { ctrlProperty: { name: lbl_video_ctrl, type: 'ctrlDes', description: '', explainUrl: hl_video, version: '' + VERSION_CTRL_PROPERTY_EXP}, apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertAfter: 'justificationGroup', info_msg: hl_shared_ajr + '#appearance', version: '' + VERSION_PORTAL_SHADING}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, insertAfter: 'apperance', version: '' + VERSION_PORTAL_SHADING}, removeAnswerBorder: { name: lbl_remove_aswer_border, type: 'bool', description: '', value: false, summary: true, insertAfter: 'shadedHeadings', paddingLeft: '20px', version: VERSION_REMOVE_ANSW_BORDER.toString() }, shadedButton:{ name: '', type: 'ctrl_shaded_button', paddingLeft: '20px', description: '', value: { isShadedButton: false, btnSheadingColor: '#E9E9E9', btnTextColor: '#000000', activeBtnTextColor: '#000000', btnBorderColor: '#000000', btnRoundedCorners: false }, summary: true, insertAfter: 'shadedHeadings', version: '' + VERSION_PORTAL_SHADING}, actionGroup: { name: lbl_action_group, type: 'property_group', description: lbl_action_group_des, summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowRelevanceCondition: { name: lbl_show_relevance_condition, type: 'bool', description: lbl_show_relevance_condition_des, value: false, summary: true, display_if_true_ctrl: 'relevanceconds', info_msg: hl_shared_di_jt + '#only-display-this-question-if', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipCondition: { name: lbl_show_skip_condition, type: 'bool', description: lbl_show_skip_condition_des, value: false, summary: true, display_if_true_ctrl: 'skipconds', info_msg: hl_shared_di_jt + '#jump-to', uncheck_if_true_ctrl: 'isShowSkipIf', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipIf: { name: lbl_show_skip_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'skipIfConditions', info_msg: hl_shared_di_jt + '#jumptoif', uncheck_if_true_ctrl: 'isShowSkipCondition', info_icon: true, version: VERSION_SKIP_IF.toString()}, skipconds: { name: lbl_skip_cond, type: 'skipConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowSkipCondition', show_condition_ques_val: true }, relevanceconds: { name: lbl_rel_cond, type: 'relevanceConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowRelevanceCondition', show_condition_ques_val: true }, skipIfConditions: { name: lbl_skip_if_cond, type: 'skipIfConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowSkipIf', show_condition_ques_val: true, advanced: true, version: VERSION_SKIP_IF.toString() }, showGroupAppearance: { name: lbl_apperance, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_ajr + '#appearance', insertBefore: 'justificationGroup', version: VERSION_GROUP_FUNCTION.toString() }, showGroupRulesPermissions: { name: lbl_group_rules_permissions, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, insertBefore: 'readOnlyGroup', info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS, version: VERSION_GROUP_FUNCTION.toString() }, showGroupActions: { name: lbl_action_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, collapse_expand_ctrl: true, info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS, insertBefore: 'actionGroup', version: VERSION_GROUP_FUNCTION.toString() }}, inputMedia: { kind: { name: lbl_media_type, type: 'enumeration', description: lbl_media_type_des, options: [ 'Image$$' + mdi_kind_image, 'Audio$$' + mdi_kind_audio, 'Video$$' + mdi_kind_video/*, 'Barcode' */] }, apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertBefore: 'justificationGroup', info_msg: hl_shared_ajr + '#appearance', version: '' + VERSION_PORTAL_SHADING}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, insertAfter: 'apperance', version: '' + VERSION_PORTAL_SHADING}, removeAnswerBorder: { name: lbl_remove_aswer_border, type: 'bool', description: '', value: false, summary: true, insertAfter: 'shadedHeadings', paddingLeft: '20px', version: VERSION_REMOVE_ANSW_BORDER.toString() }, shadedButton:{ name: '', type: 'ctrl_shaded_button', paddingLeft: '20px', description: '', value: { isShadedButton: false, btnSheadingColor: '#E9E9E9', btnTextColor: '#000000', activeBtnTextColor: '#000000', btnBorderColor: '#000000', btnRoundedCorners: false }, summary: true, insertAfter: 'shadedHeadings', version: '' + VERSION_PORTAL_SHADING}, actionGroup: { name: lbl_action_group, type: 'property_group', description: lbl_action_group_des, summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowRelevanceCondition: { name: lbl_show_relevance_condition, type: 'bool', description: lbl_show_relevance_condition_des, value: false, summary: true, display_if_true_ctrl: 'relevanceconds', info_msg: hl_shared_di_jt + '#only-display-this-question-if', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipCondition: { name: lbl_show_skip_condition, type: 'bool', description: lbl_show_skip_condition_des, value: false, summary: true, display_if_true_ctrl: 'skipconds', info_msg: hl_shared_di_jt + '#jump-to', uncheck_if_true_ctrl: 'isShowSkipIf', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipIf: { name: lbl_show_skip_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'skipIfConditions', info_msg: hl_shared_di_jt + '#jumptoif', uncheck_if_true_ctrl: 'isShowSkipCondition', info_icon: true, version: VERSION_SKIP_IF.toString()}, skipconds: { name: lbl_skip_cond, type: 'skipConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowSkipCondition', show_condition_ques_val: true }, relevanceconds: { name: lbl_rel_cond, type: 'relevanceConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowRelevanceCondition', show_condition_ques_val: true }, skipIfConditions: { name: lbl_skip_if_cond, type: 'skipIfConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowSkipIf', show_condition_ques_val: true, advanced: true, version: VERSION_SKIP_IF.toString() }}, inputSketch: { defaultImage: { name: lbl_default_image, type: 'uploadImage', description: '', hideSelectBtn: true, value: '', summary: false, insertAfter: 'name', version: '' + VERSION_SKETCH_DEFAULT_IMAGE }, ctrlProperty: { name: lbl_sketch_ctrl, type: 'ctrlDes', description: '', explainUrl: hl_sketch, version: '' + VERSION_CTRL_PROPERTY_EXP}, apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertAfter: 'justificationGroup', info_msg: hl_shared_ajr + '#appearance', version: '' + VERSION_PORTAL_SHADING}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, insertAfter: 'apperance', version: '' + VERSION_PORTAL_SHADING}, removeAnswerBorder: { name: lbl_remove_aswer_border, type: 'bool', description: '', value: false, summary: true, insertAfter: 'shadedHeadings', paddingLeft: '20px', version: VERSION_REMOVE_ANSW_BORDER.toString() }, shadedButton:{ name: '', type: 'ctrl_shaded_button', paddingLeft: '20px', description: '', value: { isShadedButton: false, btnSheadingColor: '#E9E9E9', btnTextColor: '#000000', activeBtnTextColor: '#000000', btnBorderColor: '#000000', btnRoundedCorners: false }, summary: true, insertAfter: 'shadedHeadings', version: '' + VERSION_PORTAL_SHADING}, actionGroup: { name: lbl_action_group, type: 'property_group', description: lbl_action_group_des, summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowRelevanceCondition: { name: lbl_show_relevance_condition, type: 'bool', description: lbl_show_relevance_condition_des, value: false, summary: true, display_if_true_ctrl: 'relevanceconds', info_msg: hl_shared_di_jt + '#only-display-this-question-if', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipCondition: { name: lbl_show_skip_condition, type: 'bool', description: lbl_show_skip_condition_des, value: false, summary: true, display_if_true_ctrl: 'skipconds', info_msg: hl_shared_di_jt + '#jump-to', uncheck_if_true_ctrl: 'isShowSkipIf', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipIf: { name: lbl_show_skip_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'skipIfConditions', info_msg: hl_shared_di_jt + '#jumptoif', uncheck_if_true_ctrl: 'isShowSkipCondition', info_icon: true, version: VERSION_SKIP_IF.toString()}, skipconds: { name: lbl_skip_cond, type: 'skipConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowSkipCondition', show_condition_ques_val: true }, relevanceconds: { name: lbl_rel_cond, type: 'relevanceConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowRelevanceCondition', show_condition_ques_val: true }, skipIfConditions: { name: lbl_skip_if_cond, type: 'skipIfConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowSkipIf', show_condition_ques_val: true, advanced: true, version: VERSION_SKIP_IF.toString() }, isShowAdvanceToolbar: { name: lbl_show_advance_toolbar, type: 'bool', description: '', value: true, summary: true, insertBefore: 'justificationGroup', valueIfUndefined: true, style: 'padding-top: 5px;', version: VERSION_CTRL_SHOW_ADVANCED_TOOLBAR.toString() }, isAllowReplace: { name: lbl_allow_replace, type: 'bool', description: '', value: true, summary: true, insertBefore: 'justificationGroup', valueIfUndefined: true, version: VERSION_ALLOW_REPLACE_CLEAR.toString() }, isAllowClear: { name: lbl_allow_clear, type: 'bool', description: '', value: true, summary: true, insertBefore: 'justificationGroup', valueIfUndefined: true, version: VERSION_ALLOW_REPLACE_CLEAR.toString() }, showGroupFormat: { name: lbl_format_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: false, info_msg: hl_text + '#format', insertBefore: 'isShowAdvanceToolbar', version: VERSION_GROUP_FUNCTION.toString() }, showGroupAppearance: { name: lbl_apperance, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_ajr + '#appearance', insertBefore: 'justificationGroup', version: VERSION_GROUP_FUNCTION.toString() }, showGroupRulesPermissions: { name: lbl_group_rules_permissions, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, insertBefore: 'readOnlyGroup', info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS, version: VERSION_GROUP_FUNCTION.toString() }, showGroupActions: { name: lbl_action_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, collapse_expand_ctrl: true, info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS, insertBefore: 'actionGroup', version: VERSION_GROUP_FUNCTION.toString() }}, inputSignature: { ctrlProperty: { name: lbl_signature_ctrl, type: 'ctrlDes', description: '', explainUrl: hl_signature, version: '' + VERSION_CTRL_PROPERTY_EXP}, apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertAfter: 'justificationGroup', info_msg: hl_shared_ajr + '#appearance', version: '' + VERSION_PORTAL_SHADING}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, insertAfter: 'apperance', version: '' + VERSION_PORTAL_SHADING}, removeAnswerBorder: { name: lbl_remove_aswer_border, type: 'bool', description: '', value: false, summary: true, insertAfter: 'shadedHeadings', paddingLeft: '20px', version: VERSION_REMOVE_ANSW_BORDER.toString() }, shadedButton:{ name: '', type: 'ctrl_shaded_button', paddingLeft: '20px', description: '', value: { isShadedButton: false, btnSheadingColor: '#E9E9E9', btnTextColor: '#000000', activeBtnTextColor: '#000000', btnBorderColor: '#000000', btnRoundedCorners: false }, summary: true, insertAfter: 'shadedHeadings', version: '' + VERSION_PORTAL_SHADING}, isOneTimeSignatureCapture: { name: lbl_one_time_signature_capture, type: 'bool', description: '', style: 'padding-top: 5px;', value: true, summary: true, insertAfter: 'defaultValue', hideVersion: '' + VERSION_SIGNATURE_ADD_FUNC}, isBulkSignature: { name: lbl_bulk_signature_option, type: 'bool', description: '', style: 'padding-top: 5px;', value: false, summary: true, valueIfUndefined: false, insertAfter: 'defaultValue', info_msg: hl_signature + '#bulk', info_icon: true, icon_style: 'margin-top: 5px;', version: VERSION_BULK_SIGNATURE.toString()}, isAllowEditOption: { name: lbl_allow_edit_option, type: 'bool', description: '', style: 'padding-top: 5px;', value: true, summary: true, insertAfter: 'defaultValue', version: '' + VERSION_SIGNATURE_ADD_FUNC}, sizeOptions: { name: lbl_size_options, type: 'enumeration_radio', description: '', style: 'display: none;', options: [ 'Small$$' + lbl_size_options_small, 'Large$$' + lbl_size_options_large], showOptionAcross: true, value: 'Small', insertAfter: 'isOneTimeSignatureCapture', summary: true, version: '' + VERSION_SIGNATURE_ADD_FUNC }, actionGroup: { name: lbl_action_group, type: 'property_group', description: lbl_action_group_des, summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowRelevanceCondition: { name: lbl_show_relevance_condition, type: 'bool', description: lbl_show_relevance_condition_des, value: false, summary: true, display_if_true_ctrl: 'relevanceconds', info_msg: hl_shared_di_jt + '#only-display-this-question-if', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipCondition: { name: lbl_show_skip_condition, type: 'bool', description: lbl_show_skip_condition_des, value: false, summary: true, display_if_true_ctrl: 'skipconds', info_msg: hl_shared_di_jt + '#jump-to', uncheck_if_true_ctrl: 'isShowSkipIf', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipIf: { name: lbl_show_skip_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'skipIfConditions', info_msg: hl_shared_di_jt + '#jumptoif', uncheck_if_true_ctrl: 'isShowSkipCondition', info_icon: true, version: VERSION_SKIP_IF.toString()}, skipconds: { name: lbl_skip_cond, type: 'skipConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowSkipCondition', show_condition_ques_val: true }, relevanceconds: { name: lbl_rel_cond, type: 'relevanceConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowRelevanceCondition', show_condition_ques_val: true }, skipIfConditions: { name: lbl_skip_if_cond, type: 'skipIfConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowSkipIf', show_condition_ques_val: true, advanced: true, version: VERSION_SKIP_IF.toString() }, showGroupFormat: { name: lbl_format_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: false, info_msg: hl_text + '#format', insertBefore: 'isAllowEditOption', version: VERSION_GROUP_FUNCTION.toString() }, showGroupAppearance: { name: lbl_apperance, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_ajr + '#appearance', insertBefore: 'justificationGroup', version: VERSION_GROUP_FUNCTION.toString() }, showGroupRulesPermissions: { name: lbl_group_rules_permissions, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, insertBefore: 'readOnlyGroup', info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS, version: VERSION_GROUP_FUNCTION.toString() }, showGroupActions: { name: lbl_action_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, collapse_expand_ctrl: true, info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS, insertBefore: 'actionGroup', version: VERSION_GROUP_FUNCTION.toString() }}, inputDraw: { kind: { name: lbl_draw_type, type: 'enumeration', description: lbl_draw_type_des, options: [ 'Sketch$$' + mdi_kind_sketch, 'Signature$$' + mdi_kind_signature ] }, apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertBefore: 'justificationGroup', info_msg: hl_shared_ajr + '#appearance', version: '' + VERSION_PORTAL_SHADING}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, insertAfter: 'apperance', version: '' + VERSION_PORTAL_SHADING}, removeAnswerBorder: { name: lbl_remove_aswer_border, type: 'bool', description: '', value: false, summary: true, insertAfter: 'shadedHeadings', paddingLeft: '20px', version: VERSION_REMOVE_ANSW_BORDER.toString() }, shadedButton:{ name: '', type: 'ctrl_shaded_button', paddingLeft: '20px', description: '', value: { isShadedButton: false, btnSheadingColor: '#E9E9E9', btnTextColor: '#000000', activeBtnTextColor: '#000000', btnBorderColor: '#000000', btnRoundedCorners: false }, summary: true, insertAfter: 'shadedHeadings', version: '' + VERSION_PORTAL_SHADING}, actionGroup: { name: lbl_action_group, type: 'property_group', description: lbl_action_group_des, summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowRelevanceCondition: { name: lbl_show_relevance_condition, type: 'bool', description: lbl_show_relevance_condition_des, value: false, summary: true, display_if_true_ctrl: 'relevanceconds', info_msg: hl_shared_di_jt + '#only-display-this-question-if', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipCondition: { name: lbl_show_skip_condition, type: 'bool', description: lbl_show_skip_condition_des, value: false, summary: true, display_if_true_ctrl: 'skipconds', info_msg: hl_shared_di_jt + '#jump-to', uncheck_if_true_ctrl: 'isShowSkipIf', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipIf: { name: lbl_show_skip_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'skipIfConditions', info_msg: hl_shared_di_jt + '#jumptoif', uncheck_if_true_ctrl: 'isShowSkipCondition', info_icon: true, version: VERSION_SKIP_IF.toString()}, skipconds: { name: lbl_skip_cond, type: 'skipConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowSkipCondition', show_condition_ques_val: true }, relevanceconds: { name: lbl_rel_cond, type: 'relevanceConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowRelevanceCondition', show_condition_ques_val: true }, skipIfConditions: { name: lbl_skip_if_cond, type: 'skipIfConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowSkipIf', show_condition_ques_val: true, advanced: true, version: VERSION_SKIP_IF.toString() }}, inputBarcode: { ctrlProperty: { name: lbl_barcode_ctrl, type: 'ctrlDes', description: '', explainUrl: hl_barcode, version: '' + VERSION_CTRL_PROPERTY_EXP}, hideMobileWebGroup: { name: lbl_hide_mobile_web_group, type: 'property_group', add_class: 'notAcross margin-left-10', description: lbl_hide_mobile_web_group_des, info_msg: hl_shared_hide + '#hide', showSelectAll: true, summary: true, info_icon: false, version: '' + VERSION_TOOL_PARAM_CLEANUP}, hideViewDataGroup: { name: lbl_use_view_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', description: '', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit,//lbl_view_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchGroup: { name: lbl_use_dis_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_dispatch_new_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, //lbl_dispatch_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_fill_and_send_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()}, hideUsersGroup: { name: lbl_users_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInMobile: { name: lbl_mobile_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_mobile_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInPDF: { name: lbl_hide_in_pdf_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_pdf_grp, grp_description: '', version: '' + VERSION_HIDE_PDF}, hideWebAppGrp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, valueIfUndefined: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewNew: { name: lbl_view_new_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_view_new_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchToEmail: { name: lbl_dispatch_to_email_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_dispatch_to_email_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_DISPATCH_TO_EMAIL.toString()}, hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_fill_and_send_edit_grp, grp_description: '', valueIfUndefined: false, show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_FNS_EDIT.toString()}, hideWebApp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideEmbeddedForm: { name: lbl_embedded_form, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_embedded_form, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_CO_135_NEW_SETTING.toString()}, hideFormLinks: { name: lbl_form_links_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_form_links_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_RESTRICT_OPTION_FL.toString()}, hidePdfWeb: { name: lbl_hide_pdf_web, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_pdf_web, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_HIDE_PDF_WEB.toString()}, hideInWeb: { name: lbl_hide_in_web, type: 'bool', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_web_grp, grp_description: '', version: '1.3', hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideForwardedGroup: { name: lbl_use_fowarded_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideForwarded: { name: lbl_edit, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideRetrieveGroup: { name: lbl_retrieve_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, hideOnRetrieve: { name: lbl_on_retrieve, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_on_retrieve, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, isAllowEditOption: { name: lbl_allow_edit_option, type: 'bool', description: '', style: 'padding-top: 5px;', value: true, valueIfUndefined: true, summary: true, insertAfter: 'defaultValue', version: VERSION_ALLOW_EDIT_NFC_BARCODE.toString()}, isAllowManualEntry: { name: lbl_allow_manual_entry, type: 'bool', description: '', value: true, summary: true, valueIfUndefined: true, insertAfter: 'isAllowEditOption', version: VERSION_ALLOW_EDIT_NFC_BARCODE.toString() }, length: { name: lbl_length, type: 'textRange', description: '',//lbl_length_des, value: false, insertAfter: 'isAllowManualEntry', summary: false }, showGroupAppearance: { name: lbl_apperance, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_ajr + '#appearance', insertBefore: 'justificationGroup', version: VERSION_GROUP_FUNCTION.toString() }, apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertAfter: 'justificationGroup', info_msg: hl_shared_ajr + '#appearance', version: '' + VERSION_PORTAL_SHADING}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, insertAfter: 'apperance', version: '' + VERSION_PORTAL_SHADING}, removeAnswerBorder: { name: lbl_remove_aswer_border, type: 'bool', description: '', value: false, summary: true, insertAfter: 'shadedHeadings', paddingLeft: '20px', version: VERSION_REMOVE_ANSW_BORDER.toString() }, answerColor:{ name: '', type: 'ctrl_answer_color', paddingLeft: '20px', description: '', value: { isAnswerColor: false, answerBGColor: '#FFFFFF', answerTextColor: '#000000' }, summary: true, insertAfter: 'removeAnswerBorder', version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER}, shadedButton:{ name: '', type: 'ctrl_shaded_button', paddingLeft: '20px', description: '', value: { isShadedButton: false, btnSheadingColor: '#E9E9E9', btnTextColor: '#000000', activeBtnTextColor: '#000000', btnBorderColor: '#000000', btnRoundedCorners: false }, summary: true, insertAfter: 'shadedHeadings', version: '' + VERSION_PORTAL_SHADING}, actionGroup: { name: lbl_action_group, type: 'property_group', description: lbl_action_group_des, summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowRelevanceCondition: { name: lbl_show_relevance_condition, type: 'bool', description: lbl_show_relevance_condition_des, value: false, summary: true, display_if_true_ctrl: 'relevanceconds', info_msg: hl_shared_di_jt + '#only-display-this-question-if', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowITE: { name: lbl_show_if_then_else_condition, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'iteConditions', info_msg: hl_if_then_else, info_icon: true, version: VERSION_IF_THEN_ELSE.toString()}, isShowReadOnlyIf: { name: lbl_show_read_only_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'readOnlyIfConditions', info_msg: hl_read_only_if, info_icon: true, version: VERSION_READ_ONLY_IF.toString()}, isShowSkipCondition: { name: lbl_show_skip_condition, type: 'bool', description: lbl_show_skip_condition_des, value: false, summary: true, display_if_true_ctrl: 'skipconds', info_msg: hl_shared_di_jt + '#jump-to', uncheck_if_true_ctrl: 'isShowSkipIf', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipIf: { name: lbl_show_skip_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'skipIfConditions', info_msg: hl_shared_di_jt + '#jumptoif', uncheck_if_true_ctrl: 'isShowSkipCondition', info_icon: true, version: VERSION_SKIP_IF.toString()}, skipconds: { name: lbl_skip_cond, type: 'skipConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowSkipCondition', show_condition_ques_val: true }, relevanceconds: { name: lbl_rel_cond, type: 'relevanceConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowRelevanceCondition', show_condition_ques_val: true }, iteConditions: { name: lbl_if_then_else_cond, type: 'iteConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowITE', show_condition_ques_val: true, advanced: true, version: VERSION_IF_THEN_ELSE.toString() }, readOnlyIfConditions: { name: lbl_read_only_if_cond, type: 'readOnlyIfConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowReadOnlyIf', show_condition_ques_val: true, advanced: true, version: VERSION_READ_ONLY_IF.toString()}, skipIfConditions: { name: lbl_skip_if_cond, type: 'skipIfConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowSkipIf', show_condition_ques_val: true, advanced: true, version: VERSION_SKIP_IF.toString() }, displayImage: { name: lbl_display_image, type: 'bool', description: '', value: false, summary: true, valueIfUndefined: false, insertAfter: 'isAllowManualEntry', display_if_true_ctrl: 'barcodeType, hideScanValue', version: VERSION_DISPLAY_IMAGE_OPTION.toString() }, barcodeType: { name: lbl_barcode_type, type: 'enumeration', description: '', required: true, options: [CONST_DOUBLE_DOLLAR, CONST_BARCODE_QR + CONST_DOUBLE_DOLLAR + lbl_barcode_qr, CONST_BARCODE_UPC_A + CONST_DOUBLE_DOLLAR + lbl_barcode_upc_a, CONST_BARCODE_EAN_13 + CONST_DOUBLE_DOLLAR + lbl_barcode_ean_13, CONST_BARCODE_EAN_8 + CONST_DOUBLE_DOLLAR + lbl_barcode_ean_8, CONST_BARCODE_ITF + CONST_DOUBLE_DOLLAR + lbl_barcode_itf, CONST_BARCODE_CODE_39 + CONST_DOUBLE_DOLLAR + lbl_barcode_code_39, CONST_BARCODE_CODE_128 + CONST_DOUBLE_DOLLAR + lbl_barcode_code_128, CONST_BARCODE_CODABAR + CONST_DOUBLE_DOLLAR + lbl_barcode_codebar], value: '', summary: false, valueIfUndefined: '', insertAfter: 'displayImage', show_condition_ques: 'displayImage', show_condition_ques_val: true, version:VERSION_DISPLAY_IMAGE_OPTION.toString() }, hideScanValue: { name: lbl_hide_scan_val, type: 'bool', paddingLeft: '20px', description: '', value: false, summary: true, valueIfUndefined: false, insertAfter: 'displayImage', show_condition_ques: 'displayImage', show_condition_ques_val: true, version: VERSION_DISPLAY_IMAGE_OPTION.toString() }, btnType: { name: lbl_btn_type, type: 'enumeration_radio', description: '', options: [ CONST_TYPE_BUTTON + CONST_DOUBLE_DOLLAR + lbl_show_button_text, CONST_TYPE_IMAGE + CONST_DOUBLE_DOLLAR + lbl_show_button_barcode_icon], showOptionAcross: true, value: CONST_TYPE_BUTTON, valueIfUndefined: CONST_TYPE_BUTTON, insertAfter: 'defaultValue', notForGrid: false, notForTable: false, version: VERSION_SHOW_ICON_BUTTON.toString()}, kind: { name: lbl_type, type: 'enumeration_radio', description: '',//lbl_type_of_barcode, options: [ 'String$$' + lbl_kind_string, 'Number$$' + lbl_kind_number], value: 'String', showOptionAcross: true, insertAfter: 'btnType', info_msg: hl_barcode + '#type', info_icon: true, version: '1.3' }, autoStartScan: { name: lbl_auto_start_scan, type: 'bool', description: '', value: false, summary: true, valueIfUndefined: false, info_msg: hl_barcode + '#autoscan', info_icon: true, version: VERSION_AUTO_START_SCAN_OPTION.toString() }, parse: { name: lbl_parse_by_delimiter, type: 'parse', description: '',//lbl_parse_des, param1: lbl_parse_enable, param2: lbl_parse_start_delimiter, param3: lbl_parse_separation_delimiter, param4: lbl_parse_end_delimiter, value: false, summary: false, info_msg: hl_barcode + '#parse', info_icon: true, version: '' + VERSION_NFC_BAR_PARSE }, parseDestinationFields: { name: lbl_dest_field, type: 'parseDestinationFields', description: '', value: [], summary: false, required: true, parent_group_name: 'parseButtonSession', style: 'padding-left: 20px; clear: both;', version: '' + VERSION_NFC_BAR_PARSE }, buttonGroup: { name: "", hideCaption: true, type: 'property_group', description: '', insertAfter: 'parse', summary: true, info_icon: false, version: VERSION_NB_USE_ACTION_BTN.toString()}, textParse: { name: lbl_parse_by_num_of_char, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, insertAfter: 'parse', uncheckCtrlPathIfChecked: 'li.parse .propertyHeaderInfo .editorCheckbox', info_msg: hl_barcode + '#parse', display_if_true_ctrl: 'textParseDestinationFields, hideAfterParse', trigger_if_value_change: ['li.buttonGroup .dynamic_property_group$$' + CONST_BIND_SHOW_HIDE_CHANGE], version: VERSION_BC_LENGTH_PARSE.toString()}, textParseDestinationFields: { name: lbl_dest_field, type: 'textParseDestinationFields', description: '', value: [], summary: false, required: true, show_condition_ques: 'textParse', show_condition_ques_val: true, insertAfter: 'textParse', style: 'padding-left: 20px; clear: both;', version: VERSION_BC_LENGTH_PARSE.toString() }, isUseActionButton: { name: lbl_use_action_btn, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, parent_group_name: 'buttonGroup .editorList', info_msg: hl_barcode + '#actionbutton', info_icon: true, version: VERSION_NB_USE_ACTION_BTN.toString()}, btnKind: { name: lbl_type, type: 'enumeration_radio', description: '', options: [ 'Button$$' + lbl_kind_button, 'Image$$' + lbl_kind_image], showOptionAcross: true, style: 'padding-left: 20px; margin-top:-5px', value: 'Button', parent_group_name: 'buttonGroup .editorList', notForGrid: true, notForTable: true, notForValue: 'Button', version: VERSION_NB_USE_ACTION_BTN.toString()}, hintLink: { name: mdi_kind_image, type: 'uploadImage', description: '', required: true, style: 'padding-left: 20px', value: '', summary: false, parent_group_name: 'buttonGroup .editorList', notForGrid: true, notForTable: true, version: VERSION_NB_USE_ACTION_BTN.toString() }, actionBtnText: { name: lbl_action_btn_text, type: 'text', description: '', required: false, style: 'padding-left: 20px', styleForGrid: 'padding-left: 20px; margin-top:-5px', styleForTable: 'padding-left: 20px; margin-top:-5px', value: '', summary: false, parent_group_name: 'buttonGroup .editorList', version: VERSION_NB_USE_ACTION_BTN.toString() }, imageText: { name: lbl_image_text, type: 'text', description: '', required: false, style: 'padding-left: 20px', value: '', summary: false, parent_group_name: 'buttonGroup .editorList', notForGrid: true, notForTable: true, version: VERSION_NB_USE_ACTION_BTN.toString() }, actionJumpGroup: { name: lbl_action_jump_group, type: 'property_group', description: '', summary: true, version: VERSION_JUMP_ACTION.toString()}, jumpWhenNotEmpty: { name: lbl_jump_when_not_empty, type: 'bool', grp_type: CONST_BOOL_GRP, description: '', value: false, valueIfUndefined: false, summary: true, parent_group: 'actionJumpGroup', grp_name: lbl_jump_when_not_empty, grp_description: '', version: VERSION_JUMP_WHEN_NOT_EMPTY.toString()}, jumpNextAfterScan: { name: lbl_jump_next_after_scan, type: 'bool', grp_type: CONST_BOOL_GRP, description: '', value: false, hasHtmlTag: true, summary: true, parent_group: 'actionJumpGroup', grp_name: lbl_jump_next_after_scan, grp_description: '', notForGrid: true, notForTable: true, info_msg: hl_barcode + '#jumpto', info_icon: true, version: VERSION_JUMP_ACTION.toString()}, jumpAfterScan: { name: lbl_jump_after_scan, type: 'bool', grp_type: CONST_BOOL_GRP, description: '', value: false, hasHtmlTag: true, summary: true, parent_group: 'actionJumpGroup', grp_name: '' + lbl_jump_after_scan + '', grp_description: '', forContainerOnly: true, version: VERSION_JUMP_ACTION.toString()}, jumpAfterScanOption: { name: '', type: 'enumeration_radio', hideCaption: true, showCaptionAcross: { captionStyle: 'float:left;margin-top:-5px;' }, showOptionAcross: true, options: [ '0$$R', '1$$D'], value: '0', summary: true, parent_group_name: 'jumpAfterScanOption', paddingLeft: '10px', version: VERSION_JUMP_ACTION.toString()}, isHideIfCmpVal: { name: lbl_hide_if_cpm_val, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, display_if_true_ctrl: 'hideIfFields, hideIfCmpVal', version: VERSION_HIDE_IF.toString()}, hideIfCmpVal: { name: '', type: 'hideIfCompareEditor', description: '', value: {}, valueIfUndefined: {}, insertAfter: 'isHideIfCmpVal', show_condition_ques: 'isHideIfCmpVal', show_condition_ques_val: true, summary: false, version: VERSION_HIDE_IF.toString() }, hideIfFields: { name: lbl_hide_if_field_list, type: 'hideIfFieldsEditor', description: '', value: [], valueIfUndefined: [], insertAfter: 'hideIfCmpVal', show_condition_ques: 'isHideIfCmpVal', show_condition_ques_val: true, summary: false, version: VERSION_HIDE_IF.toString() }, showGroupFormat: { name: lbl_format_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: false, info_msg: hl_text + '#format', insertBefore: 'isAllowEditOption', version: VERSION_GROUP_FUNCTION.toString() }, showGroupRulesPermissions: { name: lbl_group_rules_permissions, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, insertBefore: 'readOnlyGroup', info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS, version: VERSION_GROUP_FUNCTION.toString() }, showGroupActions: { name: lbl_action_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, collapse_expand_ctrl: true, info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS, insertBefore: 'actionGroup', version: VERSION_GROUP_FUNCTION.toString() }}, inputNFC: { ctrlProperty: { name: lbl_nfc_ctrl, type: 'ctrlDes', description: '', explainUrl: hl_nfc, version: '' + VERSION_CTRL_PROPERTY_EXP}, ctrlDesc: { name: lbl_android_only, type: 'uiLabel', description: '' }, isAllowEditOption: { name: lbl_allow_edit_option, type: 'bool', description: '', style: 'padding-top: 5px;', value: true, valueIfUndefined: true, summary: true, insertAfter: 'defaultValue', version: '' + VERSION_NFC_ALLOW_EDIT}, isAllowManualEntry: { name: lbl_allow_manual_entry, type: 'bool', description: '', value: true, summary: true, valueIfUndefined: true, insertAfter: 'isAllowEditOption', version: VERSION_ALLOW_EDIT_NFC_BARCODE.toString() }, btnType: { name: lbl_nfc_btn_type, type: 'enumeration_radio', description: '', options: [ CONST_TYPE_BUTTON + CONST_DOUBLE_DOLLAR + lbl_show_button_text, CONST_TYPE_IMAGE + CONST_DOUBLE_DOLLAR + lbl_show_button_barcode_icon], showOptionAcross: true, value: CONST_TYPE_BUTTON, valueIfUndefined: CONST_TYPE_BUTTON, insertAfter: 'defaultValue', notForGrid: false, notForTable: false, version: VERSION_SHOW_ICON_BUTTON.toString()}, length: { name: lbl_length, type: 'textRange', description: '',//lbl_length_des, value: false, insertAfter: 'isAllowManualEntry', summary: false }, apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertAfter: 'justificationGroup', info_msg: hl_shared_ajr + '#appearance', version: '' + VERSION_PORTAL_SHADING}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, insertAfter: 'apperance', version: '' + VERSION_PORTAL_SHADING}, removeAnswerBorder: { name: lbl_remove_aswer_border, type: 'bool', description: '', value: false, summary: true, insertAfter: 'shadedHeadings', paddingLeft: '20px', version: VERSION_REMOVE_ANSW_BORDER.toString() }, answerColor:{ name: '', type: 'ctrl_answer_color', paddingLeft: '20px', description: '', value: { isAnswerColor: false, answerBGColor: '#FFFFFF', answerTextColor: '#000000' }, summary: true, insertAfter: 'removeAnswerBorder', version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER}, shadedButton:{ name: '', type: 'ctrl_shaded_button', paddingLeft: '20px', description: '', value: { isShadedButton: false, btnSheadingColor: '#E9E9E9', btnTextColor: '#000000', activeBtnTextColor: '#000000', btnBorderColor: '#000000', btnRoundedCorners: false }, summary: true, insertAfter: 'shadedHeadings', version: '' + VERSION_PORTAL_SHADING}, actionGroup: { name: lbl_action_group, type: 'property_group', description: lbl_action_group_des, summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowRelevanceCondition: { name: lbl_show_relevance_condition, type: 'bool', description: lbl_show_relevance_condition_des, value: false, summary: true, display_if_true_ctrl: 'relevanceconds', info_msg: hl_shared_di_jt + '#only-display-this-question-if', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowITE: { name: lbl_show_if_then_else_condition, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'iteConditions', info_msg: hl_if_then_else, info_icon: true, version: VERSION_IF_THEN_ELSE.toString()}, isShowReadOnlyIf: { name: lbl_show_read_only_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'readOnlyIfConditions', info_msg: hl_read_only_if, info_icon: true, version: VERSION_READ_ONLY_IF.toString()}, isShowSkipCondition: { name: lbl_show_skip_condition, type: 'bool', description: lbl_show_skip_condition_des, value: false, summary: true, display_if_true_ctrl: 'skipconds', info_msg: hl_shared_di_jt + '#jump-to', uncheck_if_true_ctrl: 'isShowSkipIf', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipIf: { name: lbl_show_skip_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'skipIfConditions', info_msg: hl_shared_di_jt + '#jumptoif', uncheck_if_true_ctrl: 'isShowSkipCondition', info_icon: true, version: VERSION_SKIP_IF.toString()}, skipconds: { name: lbl_skip_cond, type: 'skipConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowSkipCondition', show_condition_ques_val: true }, relevanceconds: { name: lbl_rel_cond, type: 'relevanceConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowRelevanceCondition', show_condition_ques_val: true }, iteConditions: { name: lbl_if_then_else_cond, type: 'iteConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowITE', show_condition_ques_val: true, advanced: true, version: VERSION_IF_THEN_ELSE.toString() }, readOnlyIfConditions: { name: lbl_read_only_if_cond, type: 'readOnlyIfConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowReadOnlyIf', show_condition_ques_val: true, advanced: true, version: VERSION_READ_ONLY_IF.toString()}, skipIfConditions: { name: lbl_skip_if_cond, type: 'skipIfConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowSkipIf', show_condition_ques_val: true, advanced: true, version: VERSION_SKIP_IF.toString() }, parse: { name: lbl_parse_nfc, type: 'parse', description: lbl_parse_des, param1: lbl_parse_enable, param2: lbl_parse_start_delimiter, param3: lbl_parse_separation_delimiter, param4: lbl_parse_end_delimiter, value: false, summary: false, info_msg: hl_nfc + '#parse', info_icon: true, version: '' + VERSION_NFC_PARSE_ONLY }, parseDestinationFields: { name: lbl_dest_field, type: 'parseDestinationFields', description: '', value: [], summary: false, required: true, parent_group_name: 'parseButtonSession', style: 'padding-left: 20px; clear: both;', version: '' + VERSION_NFC_PARSE_ONLY }, buttonGroup: { name: "", hideCaption: true, type: 'property_group', description: '', insertAfter: 'parse', summary: true, info_icon: false, version: VERSION_NB_USE_ACTION_BTN.toString()}, textParse: { name: lbl_parse_by_num_of_char, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, insertAfter: 'parse', uncheckCtrlPathIfChecked: 'li.parse .propertyHeaderInfo .editorCheckbox', info_msg: hl_nfc + '#parse', display_if_true_ctrl: 'textParseDestinationFields, hideAfterParse', trigger_if_value_change: ['li.buttonGroup .dynamic_property_group$$' + CONST_BIND_SHOW_HIDE_CHANGE], version: VERSION_NFC_LENGTH_PARSE.toString()}, textParseDestinationFields: { name: lbl_dest_field, type: 'textParseDestinationFields', description: '', value: [], summary: false, required: true, show_condition_ques: 'textParse', show_condition_ques_val: true, insertAfter: 'textParse', style: 'padding-left: 20px; clear: both;', version: VERSION_NFC_LENGTH_PARSE.toString() }, isUseActionButton: { name: lbl_use_action_btn, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, parent_group_name: 'buttonGroup .editorList', info_msg: hl_nfc + '#actionbutton', info_icon: true, version: VERSION_NB_USE_ACTION_BTN.toString()}, btnKind: { name: lbl_type, type: 'enumeration_radio', description: '', options: [ 'Button$$' + lbl_kind_button, 'Image$$' + lbl_kind_image], showOptionAcross: true, style: 'padding-left: 20px; margin-top:-5px', value: 'Button', parent_group_name: 'buttonGroup .editorList', notForGrid: true, notForTable: true, notForValue: 'Button', version: VERSION_NB_USE_ACTION_BTN.toString()}, hintLink: { name: mdi_kind_image, type: 'uploadImage', description: '', required: true, style: 'padding-left: 20px', value: '', summary: false, parent_group_name: 'buttonGroup .editorList', notForGrid: true, notForTable: true, version: VERSION_NB_USE_ACTION_BTN.toString() }, actionBtnText: { name: lbl_action_btn_text, type: 'text', description: '', required: false, style: 'padding-left: 20px', styleForGrid: 'padding-left: 20px; margin-top:-5px', styleForTable: 'padding-left: 20px; margin-top:-5px', value: '', summary: false, parent_group_name: 'buttonGroup .editorList', version: VERSION_NB_USE_ACTION_BTN.toString() }, imageText: { name: lbl_image_text, type: 'text', description: '', required: false, style: 'padding-left: 20px', value: '', summary: false, parent_group_name: 'buttonGroup .editorList', notForGrid: true, notForTable: true, version: VERSION_NB_USE_ACTION_BTN.toString() }, isHideIfCmpVal: { name: lbl_hide_if_cpm_val, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, display_if_true_ctrl: 'hideIfFields, hideIfCmpVal', version: VERSION_HIDE_IF.toString()}, hideIfCmpVal: { name: '', type: 'hideIfCompareEditor', description: '', value: {}, valueIfUndefined: {}, insertAfter: 'isHideIfCmpVal', show_condition_ques: 'isHideIfCmpVal', show_condition_ques_val: true, summary: false, version: VERSION_HIDE_IF.toString() }, hideIfFields: { name: lbl_hide_if_field_list, type: 'hideIfFieldsEditor', description: '', value: [], valueIfUndefined: [], insertAfter: 'hideIfCmpVal', show_condition_ques: 'isHideIfCmpVal', show_condition_ques_val: true, summary: false, version: VERSION_HIDE_IF.toString() }, showGroupFormat: { name: lbl_format_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: false, info_msg: hl_text + '#format', insertAfter: 'btnType', version: VERSION_GROUP_FUNCTION.toString() }, showGroupAppearance: { name: lbl_apperance, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_ajr + '#appearance', insertBefore: 'justificationGroup', version: VERSION_GROUP_FUNCTION.toString() }, showGroupRulesPermissions: { name: lbl_group_rules_permissions, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, insertBefore: 'readOnlyGroup', info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS, version: VERSION_GROUP_FUNCTION.toString() }, showGroupActions: { name: lbl_action_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, collapse_expand_ctrl: true, info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS, insertBefore: 'actionGroup', version: VERSION_GROUP_FUNCTION.toString() }}, inputForward: { addDesc: { type: 'addDescInfo', addValue: lbl_forward_default_des, propertyName: 'defaultValue'}, ctrlProperty: { name: lbl_forward_ctrl, type: 'ctrlDes', description: '', explainUrl: hl_forward, version: '' + VERSION_CTRL_PROPERTY_EXP}, ctrlDesc: { name: '', type: 'uiLabel', description: '' }, isSecureForward: { name: '', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, add_class: CONST_CSS_CLASS_HIDE_SESSION, version: VERSION_SECURE_FORWARD.toString() }, hideMobileWebGroup: { name: lbl_hide_mobile_web_group, type: 'property_group', add_class: 'notAcross margin-left-10', description: lbl_hide_mobile_web_group_des, info_msg: hl_shared_hide + '#hide', showSelectAll: true, summary: true, info_icon: false, version: '' + VERSION_TOOL_PARAM_CLEANUP}, hideViewDataGroup: { name: lbl_use_view_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', description: '', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit,//lbl_view_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchGroup: { name: lbl_use_dis_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_dispatch_new_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, //lbl_dispatch_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_fill_and_send_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()}, hideUsersGroup: { name: lbl_users_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInMobile: { name: lbl_mobile_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_mobile_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInPDF: { name: lbl_hide_in_pdf_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_pdf_grp, grp_description: '', version: '' + VERSION_HIDE_PDF}, hideWebAppGrp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, valueIfUndefined: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewNew: { name: lbl_view_new_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_view_new_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchToEmail: { name: lbl_dispatch_to_email_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_dispatch_to_email_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_DISPATCH_TO_EMAIL.toString()}, hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_fill_and_send_edit_grp, grp_description: '', valueIfUndefined: false, show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_FNS_EDIT.toString()}, hideWebApp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideEmbeddedForm: { name: lbl_embedded_form, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_embedded_form, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_CO_135_NEW_SETTING.toString()}, hideFormLinks: { name: lbl_form_links_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_form_links_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_RESTRICT_OPTION_FL.toString()}, hidePdfWeb: { name: lbl_hide_pdf_web, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_pdf_web, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_HIDE_PDF_WEB.toString()}, hideInWeb: { name: lbl_hide_in_web, type: 'bool', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_web_grp, grp_description: '', version: '1.3', hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideForwardedGroup: { name: lbl_use_fowarded_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideForwarded: { name: lbl_edit, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideRetrieveGroup: { name: lbl_retrieve_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, hideOnRetrieve: { name: lbl_on_retrieve, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_on_retrieve, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, length: { name: lbl_length, type: 'textRange', description: '',//lbl_length_des, value: false, insertAfter: 'defaultValue', summary: false }, fwToEmailGroup: { name: lbl_fw_to_email_grp, style: 'clear: both;', type: 'uiLabel', insertAfter: 'defaultValue', version: VERSION_FW_CUSTOM_EMAIL.toString() }, hasCustomEmailSubject: { name: lbl_fw_c_email_subject, type: 'bool', description: '', value: false, summary: true, valueIfUndefined: false, hasHtmlTag: true, display_if_true_ctrl: 'customEmailSubject', insertAfter: 'fwToEmailGroup', version: VERSION_FW_CUSTOM_EMAIL.toString() }, customEmailSubject: { name: '', type: 'text', paddingLeft: '25px', description: lbl_fw_c_email_subject_des, required: false, value: '', summary: false, valueIfUndefined: '', hideCaptionH4: true, add_class: 'not-use-fieldset', show_condition_ques: 'hasCustomEmailSubject', show_condition_ques_val: true, insertAfter: 'hasCustomEmailSubject', version: VERSION_FW_CUSTOM_EMAIL.toString() }, hasCustomEmailBody: { name: lbl_fw_c_email_body, type: 'bool', description: '', value: false, summary: true, hasHtmlTag: true, valueIfUndefined: false, display_if_true_ctrl: 'customEmailBody', insertAfter: 'customEmailSubject', version: VERSION_FW_CUSTOM_EMAIL.toString() }, customEmailBody: { name: '', paddingLeft: '25px', hideCaptionH4: true, valueIfUndefined: '', type: 'text_multi', description: lbl_fw_c_email_body_des, value: '', summary: false, show_condition_ques: 'hasCustomEmailBody', show_condition_ques_val: true, insertAfter: 'hasCustomEmailBody', version: VERSION_FW_CUSTOM_EMAIL.toString() }, apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertAfter: 'justificationGroup', info_msg: hl_shared_ajr + '#appearance', version: '' + VERSION_PORTAL_SHADING}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, insertAfter: 'apperance', version: '' + VERSION_PORTAL_SHADING}, removeAnswerBorder: { name: lbl_remove_aswer_border, type: 'bool', description: '', value: false, summary: true, insertAfter: 'shadedHeadings', paddingLeft: '20px', version: VERSION_REMOVE_ANSW_BORDER.toString() }, actionGroup: { name: lbl_action_group, type: 'property_group', description: lbl_action_group_des, summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowRelevanceCondition: { name: lbl_show_relevance_condition, type: 'bool', description: lbl_show_relevance_condition_des, value: false, summary: true, display_if_true_ctrl: 'relevanceconds', info_msg: hl_shared_di_jt + '#only-display-this-question-if', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowITE: { name: lbl_show_if_then_else_condition, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'iteConditions', info_msg: hl_if_then_else, info_icon: true, version: VERSION_IF_THEN_ELSE.toString()}, isShowReadOnlyIf: { name: lbl_show_read_only_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'readOnlyIfConditions', info_msg: hl_read_only_if, info_icon: true, version: VERSION_READ_ONLY_IF.toString()}, isShowSkipCondition: { name: lbl_show_skip_condition, type: 'bool', description: lbl_show_skip_condition_des, value: false, summary: true, display_if_true_ctrl: 'skipconds', info_msg: hl_shared_di_jt + '#jump-to', uncheck_if_true_ctrl: 'isShowSkipIf', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowSkipIf: { name: lbl_show_skip_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'skipIfConditions', info_msg: hl_shared_di_jt + '#jumptoif', uncheck_if_true_ctrl: 'isShowSkipCondition', info_icon: true, version: VERSION_SKIP_IF.toString()}, skipconds: { name: lbl_skip_cond, type: 'skipConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowSkipCondition', show_condition_ques_val: true }, relevanceconds: { name: lbl_rel_cond, type: 'relevanceConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowRelevanceCondition', show_condition_ques_val: true }, iteConditions: { name: lbl_if_then_else_cond, type: 'iteConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowITE', show_condition_ques_val: true, advanced: true, version: VERSION_IF_THEN_ELSE.toString() }, readOnlyIfConditions: { name: lbl_read_only_if_cond, type: 'readOnlyIfConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowReadOnlyIf', show_condition_ques_val: true, advanced: true, version: VERSION_READ_ONLY_IF.toString()}, skipIfConditions: { name: lbl_skip_if_cond, type: 'skipIfConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowSkipIf', show_condition_ques_val: true, advanced: true, version: VERSION_SKIP_IF.toString() }, resetToNull: { name: lbl_reset_to_null, type: 'bool', description: lbl_reset_to_null_des, value: true, summary: true, version: '' + VERSION_FW_RESET_TO_NULL }, turnOffEmail: { name: lbl_turn_off_email, type: 'bool', description: lbl_turn_off_email_des, value: false, summary: true, style: 'padding-top: 5px;', version: '' + VERSION_PCA_56 }, replyToSender: { name: lbl_reply_to_sender, type: 'bool', description: '', value: false, summary: true, valueIfUndefined: false, info_msg: hl_forward + '#return', info_icon: true, version: VERSION_REPLY_TO_SENDER.toString() }, isHideIfCmpVal: { name: lbl_hide_if_cpm_val, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, display_if_true_ctrl: 'hideIfFields, hideIfCmpVal', version: VERSION_HIDE_IF.toString()}, hideIfCmpVal: { name: '', type: 'hideIfCompareEditor', description: '', value: {}, valueIfUndefined: {}, insertAfter: 'isHideIfCmpVal', show_condition_ques: 'isHideIfCmpVal', show_condition_ques_val: true, summary: false, version: VERSION_HIDE_IF.toString() }, hideIfFields: { name: lbl_hide_if_field_list, type: 'hideIfFieldsEditor', description: '', value: [], valueIfUndefined: [], insertAfter: 'hideIfCmpVal', show_condition_ques: 'isHideIfCmpVal', show_condition_ques_val: true, summary: false, version: VERSION_HIDE_IF.toString() }, showGroupFormat: { name: lbl_format_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_forward + '#format', insertBefore: 'fwToEmailGroup', version: VERSION_GROUP_FUNCTION.toString() }, showGroupAppearance: { name: lbl_apperance, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_ajr + '#appearance', insertBefore: 'justificationGroup', version: VERSION_GROUP_FUNCTION.toString() }, showGroupRulesPermissions: { name: lbl_group_rules_permissions, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, insertBefore: 'readOnlyGroup', info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS, version: VERSION_GROUP_FUNCTION.toString() }, showGroupActions: { name: lbl_action_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, collapse_expand_ctrl: true, info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS, insertBefore: 'actionGroup', version: VERSION_GROUP_FUNCTION.toString() }}, inputPageBreak: { ctrlProperty: { name: lbl_page_break_ctrl, type: 'ctrlDes', description: '', explainUrl: hl_page, version: '' + VERSION_CTRL_PROPERTY_EXP}, id: { type: CONST_VALUE_NONE, value:'' }, label: { name: lbl_page_name, type: 'uiText', description: '',//lbl_page_name_des, description_append: lbl_20_char_max, required: false, value: {}, summary: false }, hint: { name: lbl_hint, type: 'hidden', value: {} }, name: { name: lbl_data_name, type: 'text', description: '',//lbl_data_name_des_scoresummary, limit: [ 'nosymbols', 'lowercase', 'unique' ], required: true, value: 'page_break', valueinput: '', summary: false }, displayPageBreakWA: { name: lbl_display_page_wa, type: 'bool', description: '', value: true, summary: true, version: '4.0', hideVersion: '' + VERSION_NEW_TOOL_LAYOUT }, autoExpandPageWA: { name: lbl_expand_page_wa, type: 'bool', description: '', value: false, summary: true, version: '4.0', hideVersion: '' + VERSION_NEW_TOOL_LAYOUT }, hideMobileWebGroup: { name: lbl_hide_mobile_web_group, type: 'property_group', add_class: 'notAcross margin-left-10', description: lbl_hide_mobile_web_group_des, info_msg: hl_shared_hide + '#hide', showSelectAll: true, summary: true, info_icon: false, version: VERSION_PAGE_HIDE.toString()}, hideViewDataGroup: { name: lbl_use_view_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', description: '', parent_group: 'hideMobileWebGroup', version: VERSION_PAGE_HIDE.toString()}, hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit,//lbl_view_edit_grp, grp_description: '', version: VERSION_PAGE_HIDE.toString()}, hideDispatchGroup: { name: lbl_use_dis_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_PAGE_HIDE.toString()}, hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_dispatch_new_grp, grp_description: '', version: VERSION_PAGE_HIDE.toString()}, hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, //lbl_dispatch_edit_grp, grp_description: '', version: VERSION_PAGE_HIDE.toString()}, hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_PAGE_HIDE.toString()}, hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_fill_and_send_grp, grp_description: '', version: VERSION_PAGE_HIDE.toString()}, hideUsersGroup: { name: lbl_users_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_PAGE_HIDE.toString()}, hideInMobile: { name: lbl_mobile_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_mobile_grp, grp_description: '', version: VERSION_PAGE_HIDE.toString()}, hideInPDF: { name: lbl_hide_in_pdf_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_pdf_grp, grp_description: '', version: VERSION_PAGE_HIDE.toString()}, hideWebAppGrp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, valueIfUndefined: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb', version: VERSION_PAGE_HIDE.toString()}, hideViewNew: { name: lbl_view_new_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_view_new_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_PAGE_HIDE.toString()}, hideDispatchToEmail: { name: lbl_dispatch_to_email_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_dispatch_to_email_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_PAGE_HIDE.toString()}, hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_fill_and_send_edit_grp, grp_description: '', valueIfUndefined: false, show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_PAGE_HIDE.toString()}, hideWebApp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_PAGE_HIDE.toString()}, hideEmbeddedForm: { name: lbl_embedded_form, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_embedded_form, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_PAGE_HIDE.toString()}, hideFormLinks: { name: lbl_form_links_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_form_links_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_PAGE_HIDE.toString()}, hidePdfWeb: { name: lbl_hide_pdf_web, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_pdf_web, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_HIDE_PDF_WEB.toString()}, hideForwardedGroup: { name: lbl_use_fowarded_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_PAGE_HIDE.toString()}, hideForwarded: { name: lbl_edit, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, grp_description: '', version: VERSION_PAGE_HIDE.toString()}, hideRetrieveGroup: { name: lbl_retrieve_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_PAGE_HIDE.toString()}, hideOnRetrieve: { name: lbl_on_retrieve, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_on_retrieve, grp_description: '', version: VERSION_PAGE_HIDE.toString()}, actionGroup: { name: lbl_action_group, type: 'property_group', description: lbl_action_group_des, summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowRelevanceCondition: { name: lbl_show_relevance_condition_page, type: 'bool', description: lbl_show_relevance_condition_des, value: false, summary: true, display_if_true_ctrl: 'relevanceconds', info_msg: hl_shared_di_jt + '#only-display-this-question-if', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, relevanceconds: { name: lbl_rel_cond, type: 'relevanceConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowRelevanceCondition', show_condition_ques_val: true}, autoReturn: { name: lbl_auto_return, type: 'bool', description: '', value: true, summary: true }, showGroupRulesPermissions: { name: lbl_group_rules_permissions, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, insertBefore: 'hideMobileWebGroup', info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS, version: VERSION_GROUP_FUNCTION.toString() }, showGroupActions: { name: lbl_action_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, collapse_expand_ctrl: true, info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS, insertBefore: 'actionGroup', version: VERSION_GROUP_FUNCTION.toString() } }, inputLabel: { ctrlProperty: { name: lbl_label_ctrl, type: 'ctrlDes', description: '', explainUrl: hl_label, version: '' + VERSION_CTRL_PROPERTY_EXP}, id: { type: CONST_VALUE_NONE, value:'' }, label: { name: lbl_caption_txt, type: 'uiText', description: lbl_ques_cap_des, required: false, value: {}, summary: false }, hint: { name: lbl_hint, type: 'uiText', description: lbl_add_help_des, value: {}, summary: false }, name: { name: lbl_data_name, type: 'text', description: '',//lbl_name_des, limit: [ 'nosymbols', 'lowercase', 'unique' ], required: true, value: 'untitled', valueinput: '', summary: false }, hintLink: { name: mdi_kind_image, type: 'uploadImage', description: '',//lbl_hint_link_des, value: '', summary: false }, hintLogoType: { name: '', // CO-2699 type: 'logoType', description: '',//lbl_name_des, value: 'WEBSITE', valueinput: ''}, imgJustify: { name: lbl_img_cap_justify, type: 'enumeration', description: '', options: [ 'Center$$' + lbl_justify_center, 'Left$$' + lbl_justify_left, 'Right$$' + lbl_justify_right ], value: 'Left', style: 'padding-top: 5px;', summary: false, hideVersion: '' + VERSION_TOOL_NEW_JUSTIFICATION}, hideMobileWebGroup: { name: lbl_hide_mobile_web_group, type: 'property_group', add_class: 'notAcross margin-left-10', description: lbl_hide_mobile_web_group_des, info_msg: hl_shared_hide + '#hide', showSelectAll: true, summary: true, info_icon: false, version: '' + VERSION_TOOL_PARAM_CLEANUP}, hideViewDataGroup: { name: lbl_use_view_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', description: '', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit,//lbl_view_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchGroup: { name: lbl_use_dis_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_dispatch_new_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, //lbl_dispatch_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_fill_and_send_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()}, hideUsersGroup: { name: lbl_users_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInMobile: { name: lbl_mobile_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_mobile_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInPDF: { name: lbl_hide_in_pdf_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_pdf_grp, grp_description: '', version: '' + VERSION_HIDE_PDF}, hideWebAppGrp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, valueIfUndefined: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewNew: { name: lbl_view_new_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_view_new_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchToEmail: { name: lbl_dispatch_to_email_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_dispatch_to_email_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_DISPATCH_TO_EMAIL.toString()}, hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_fill_and_send_edit_grp, grp_description: '', valueIfUndefined: false, show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_FNS_EDIT.toString()}, hideWebApp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideEmbeddedForm: { name: lbl_embedded_form, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_embedded_form, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_CO_135_NEW_SETTING.toString()}, hideFormLinks: { name: lbl_form_links_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_form_links_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_RESTRICT_OPTION_FL.toString()}, hidePdfWeb: { name: lbl_hide_pdf_web, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_pdf_web, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_HIDE_PDF_WEB.toString()}, hideInWeb: { name: lbl_hide_in_web, type: 'bool', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_web_grp, grp_description: '', version: '1.3', hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideForwardedGroup: { name: lbl_use_fowarded_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideForwarded: { name: lbl_edit, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideRetrieveGroup: { name: lbl_retrieve_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, hideOnRetrieve: { name: lbl_on_retrieve, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_on_retrieve, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, dispMobile: { name: lbl_hide_in_mobile, type: 'bool', description: '', value: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_mobile_grp, grp_description: '', summary: true, hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString() }, dispReport: { name: lbl_hide_in_report, type: 'bool', description: '', value: true, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_report_grp, grp_description: '', version: 'disable', hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString() }, justificationGroup: { name: lbl_justification_group, type: 'property_group', description: lbl_justification_group_des, summary: true, info_icon: false, info_msg: hl_shared_ajr + '#Justification', value: isVersion(VERSION_TOOL_NEW_JUSTIFICATION), insertBefore: 'hideMobileWebGroup', version: VERSION_TOOL_NEW_JUSTIFICATION.toString()}, justificationCaption: { name: lbl_justification_caption, type: 'enumeration_radio', hideCaption: true, showCaptionAcross: { captionStyle: 'float:left;margin-top:-5px;width:70px;' }, showOptionAcross: true, options: [ '0$$L', '1$$C', '2$$R'], value: '0', summary: true, parent_group: 'justificationGroup', paddingLeft: '20px', version: '' + VERSION_TOOL_NEW_JUSTIFICATION}, justificationHint: { name: lbl_justification_hint, type: 'enumeration_radio', hideCaption: true, showCaptionAcross: { captionStyle: 'float:left;margin-top:-5px;width:70px;' }, showOptionAcross: true, options: [ '0$$L', '1$$C', '2$$R'], value: '0', summary: true, parent_group: 'justificationGroup', paddingLeft: '20px', version: '' + VERSION_TOOL_NEW_JUSTIFICATION}, justificationImage: { name: lbl_justification_image, // CO-2725 type: 'enumeration_radio', hideCaption: true, showCaptionAcross: { captionStyle: 'float:left;margin-top:-5px;width:70px;' }, showOptionAcross: true, options: [ '0$$L', '1$$C', '2$$R'], value: '0', valueIfUndefined: '0', summary: true, parent_group: 'justificationGroup', paddingLeft: '20px', version: '' + VERSION_TOOL_NEW_JUSTIFICATION}, //Remove space above removeSpaceGroup: { name: lbl_remove_space_group, type: 'property_group', description: lbl_remove_space_group_des, info_msg: hl_shared_ajr + '#remove-space', summary: true, info_icon: false, insertBefore: 'hideMobileWebGroup', version: '' + VERSION_TOOL_PARAM_CLEANUP}, //Remove space above removeSpaceAbove: { name: lbl_remove_space_above, type: 'bool', description: lbl_remove_space_above_des, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'removeSpaceGroup', grp_name: lbl_remove_space_above_grp, grp_description: lbl_remove_space_above_grp_des, version: '' + VERSION_REMOVE_SPACE}, //Remove space below removeSpaceBelow:{ name: lbl_remove_space_below, type: 'bool', description: lbl_remove_space_below_des, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'removeSpaceGroup', grp_name: lbl_remove_space_below_grp, grp_description: lbl_remove_space_below_grp_des, version: '' + VERSION_REMOVE_SPACE}, apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertAfter: 'justificationGroup', info_msg: hl_shared_ajr + '#appearance', version: '' + VERSION_PORTAL_SHADING}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, insertAfter: 'apperance', forGridOnly: true, version: '' + VERSION_PORTAL_SHADING}, //Label Shading labelShading:{ name: lbl_label_shading, type: 'enumeration', description: lbl_label_shading_des, options: [ CONST_DOUBLE_DOLLAR, '1$$' + lbl_label_shading_lines, '2$$' + lbl_label_shading_shaded, '3$$' + lbl_label_shading_nolinesorshading], value: '', summary: true, insertAfter: 'apperance', notForGrid: true, version: '' + VERSION_LABEL_SHADING}, linesLineColor:{ name: lbl_line_color, type: 'selectcolor', description: lbl_line_color_des, value: LBL_DEFAULT_LINE_COLOR, summary: true, insertAfter: 'labelShading', notForGrid: true, version: '' + VERSION_LABEL_SHADING}, linesTextColor:{ name: lbl_text_color, type: 'selectcolor', description: lbl_text_color_des, value: LBL_DEFAULT_TEXT_COLOR, summary: true, insertAfter: 'linesLineColor', notForGrid: true, version: '' + VERSION_LABEL_SHADING}, shadedColor:{ name: lbl_shaded_color, type: 'selectcolor', description: lbl_shaded_color_des, value: LBL_DEFAULT_SHADE_COLOR, summary: true, insertAfter: 'linesTextColor', notForGrid: true, version: '' + VERSION_LABEL_SHADING}, shadedTextColor:{ name: lbl_shaded_text_color, type: 'selectcolor', description: lbl_shaded_text_color_des, value: LBL_DEFAULT_TEXT_COLOR, summary: true, insertAfter: 'shadedColor', notForGrid: true, version: '' + VERSION_LABEL_SHADING}, nolinesTextColor:{ name: lbl_no_lines_text_color, type: 'selectcolor', description: lbl_no_lines_text_color_des, value: LBL_DEFAULT_TEXT_COLOR, summary: true, insertAfter: 'shadedTextColor', notForGrid: true, version: '' + VERSION_LABEL_SHADING}, isFitToScreen: { name: lbl_fit_label_image, type: 'bool', description: '', value: false, summary: true, insertAfter: 'hintLink', notForGrid: true, /*show_condition_ques: 'apperance', show_condition_ques_val: ['Custom'],*/ style: 'padding-top: 5px;', version: '' + VERSION_LABEL_FIT_SCREEN}, addAsSpace: { name: lbl_add_as_space, type: 'bool', description: '', value: false, summary: true, insertAfter: 'isFitToScreen', addValueToPropertyList: true, trigger_function_if_true: addAsSpaceFunc, version: VERSION_LABEL_ADD_AS_SPACE.toString()}, /*turnOffSelectionOutline: { name: msg_turn_off_selection_outline, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, paddingLeft: '20px', insertAfter: 'nolinesTextColor', version: VERSION_TURN_OFF_SELECTION_OUTLINE.toString()},*/ /*removeAnswerBorder: { name: lbl_remove_aswer_border, type: 'bool', description: '', value: false, summary: true, insertBefore: 'isFitToScreen', style: 'padding-top: 5px;', version: VERSION_REMOVE_ANSW_BORDER.toString() },*/ actionGroup: { name: lbl_action_group, type: 'property_group', description: lbl_action_group_des, summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowRelevanceCondition: { name: lbl_show_relevance_condition, type: 'bool', description: lbl_show_relevance_condition_des, value: false, summary: true, display_if_true_ctrl: 'relevanceconds', info_msg: hl_shared_di_jt + '#only-display-this-question-if', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, relevanceconds: { name: lbl_rel_cond, type: 'relevanceConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowRelevanceCondition', show_condition_ques_val: true, advanced: true, moreadvanced: false, skip: false, relevance: true, relevancecond:true, summary: false }, showGroupAppearance: { name: lbl_apperance, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_ajr + '#appearance', insertBefore: 'justificationGroup', version: VERSION_GROUP_FUNCTION.toString() }, showGroupRulesPermissions: { name: lbl_group_rules_permissions, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, insertBefore: 'hideMobileWebGroup', info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS, version: VERSION_GROUP_FUNCTION.toString() }, showGroupActions: { name: lbl_action_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, collapse_expand_ctrl: true, info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS, insertBefore: 'actionGroup', version: VERSION_GROUP_FUNCTION.toString() } /*relevanceconds: { name: lbl_rel_cond, description: lbl_relevance_des, type: 'relevanceConditionsEditor', value: [], advanced: true, summary: false }*/}, inputScoreSummary: { ctrlProperty: { name: lbl_score_summary_ctrl, type: 'ctrlDes', description: '', explainUrl: hl_score_summary, version: '' + VERSION_CTRL_PROPERTY_EXP}, id: { type: CONST_VALUE_NONE, value:'' }, label: { name: lbl_caption_txt, type: 'uiText', description: lbl_ques_cap_des, required: false, value: {}, summary: false }, hint: { name: lbl_hint, type: 'uiText', description: lbl_add_help_des, value: {}, summary: false }, name: { name: lbl_data_name, type: 'text', description: '',//lbl_data_name_des_scoresummary, limit: [ 'nosymbols', 'lowercase', 'unique' ], required: true, value: 'untitled', valueinput: '', summary: false }, summaryCategory:{ name: lbl_summary_for_category, type: 'enumeration', description: '', options: [], value: '', summary: true, version: VERSION_SUMMARY_FOR_CATEGORY.toString()}, showGroupFormat: { name: lbl_format_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: false, info_msg: hl_text + '#format', version: VERSION_GROUP_FUNCTION.toString() }, showDecimalValue: { name: lbl_show_decimal_value, type: 'bool', description: '', value: true, summary: true, version: '' + VERSION_SCORE_SHOW_DECIMAL_VALUE }, showGroupRulesPermissions: { name: lbl_group_rules_permissions, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS, version: VERSION_GROUP_FUNCTION.toString() }, hideMobileWebGroup: { name: lbl_hide_mobile_web_group, type: 'property_group', add_class: 'notAcross margin-left-10', description: lbl_hide_mobile_web_group_des, info_msg: hl_shared_hide + '#hide', showSelectAll: true, summary: true, info_icon: false, version: '' + VERSION_TOOL_PARAM_CLEANUP}, hideViewDataGroup: { name: lbl_use_view_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', description: '', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit,//lbl_view_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchGroup: { name: lbl_use_dis_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_dispatch_new_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, //lbl_dispatch_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_fill_and_send_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()}, hideUsersGroup: { name: lbl_users_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInMobile: { name: lbl_mobile_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_mobile_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInPDF: { name: lbl_hide_in_pdf_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_pdf_grp, grp_description: '', version: '' + VERSION_HIDE_PDF}, hideWebAppGrp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, valueIfUndefined: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewNew: { name: lbl_view_new_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_view_new_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchToEmail: { name: lbl_dispatch_to_email_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_dispatch_to_email_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_DISPATCH_TO_EMAIL.toString()}, hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_fill_and_send_edit_grp, grp_description: '', valueIfUndefined: false, show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_FNS_EDIT.toString()}, hideWebApp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideEmbeddedForm: { name: lbl_embedded_form, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_embedded_form, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_CO_135_NEW_SETTING.toString()}, hideFormLinks: { name: lbl_form_links_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_form_links_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_RESTRICT_OPTION_FL.toString()}, hidePdfWeb: { name: lbl_hide_pdf_web, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_pdf_web, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_HIDE_PDF_WEB.toString()}, dispMobile: { name: lbl_hide_in_mobile, type: 'bool', description: '', value: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_mobile_grp, grp_description: '', summary: true, hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString() }, hideInWeb: { name: lbl_hide_in_web, type: 'bool', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_web_grp, grp_description: '', version: '' + VERSION_HIDE_PDF, hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideForwardedGroup: { name: lbl_use_fowarded_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideForwarded: { name: lbl_edit, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideRetrieveGroup: { name: lbl_retrieve_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, hideOnRetrieve: { name: lbl_on_retrieve, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_on_retrieve, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, dispReport: { name: lbl_hide_in_pdf, type: 'bool', description: '', value: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_pdf_grp, grp_description: '', summary: true, hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString() }, justificationGroup: { name: lbl_justification_group, type: 'property_group', description: lbl_justification_group_des, summary: true, info_icon: false, info_msg: hl_shared_ajr + '#Justification', insertBefore: 'showGroupRulesPermissions', version: '' + VERSION_TOOL_NEW_JUSTIFICATION}, justificationCaption: { name: lbl_justification_caption, type: 'enumeration_radio', hideCaption: true, showCaptionAcross: { captionStyle: 'float:left;margin-top:-5px;width:70px;' }, showOptionAcross: true, options: [ '0$$L', '1$$C', '2$$R'], value: '0', summary: true, parent_group: 'justificationGroup', paddingLeft: '20px', version: '' + VERSION_TOOL_NEW_JUSTIFICATION}, justificationHint: { name: lbl_justification_hint, type: 'enumeration_radio', hideCaption: true, showCaptionAcross: { captionStyle: 'float:left;margin-top:-5px;width:70px;' }, showOptionAcross: true, options: [ '0$$L', '1$$C', '2$$R'], value: '0', summary: true, parent_group: 'justificationGroup', paddingLeft: '20px', version: '' + VERSION_TOOL_NEW_JUSTIFICATION}, /*justificationAnswer: { name: lbl_justification_answer, type: 'enumeration_radio', hideCaption: true, showCaptionAcross: { captionStyle: 'float:left;margin-top:-5px;width:70px;' }, showOptionAcross: true, options: [ '0$$L', '1$$C', '2$$R'], value: '0', summary: true, parent_group: 'justificationGroup', paddingLeft: '20px', version: '' + VERSION_TOOL_NEW_JUSTIFICATION},*/ //Remove space above removeSpaceGroup: { name: lbl_remove_space_group, type: 'property_group', description: lbl_remove_space_group_des, info_msg: hl_shared_ajr + '#remove-space', summary: true, info_icon: false, insertBefore: 'showGroupRulesPermissions', version: '' + VERSION_TOOL_PARAM_CLEANUP}, //Remove space above removeSpaceAbove: { name: lbl_remove_space_above, type: 'bool', description: lbl_remove_space_above_des, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'removeSpaceGroup', grp_name: lbl_remove_space_above_grp, grp_description: lbl_remove_space_above_grp_des, version: '' + VERSION_REMOVE_SPACE}, //Remove space below removeSpaceBelow:{ name: lbl_remove_space_below, type: 'bool', description: lbl_remove_space_below_des, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'removeSpaceGroup', grp_name: lbl_remove_space_below_grp, grp_description: lbl_remove_space_below_grp_des, version: '' + VERSION_REMOVE_SPACE}, showGroupAppearance: { name: lbl_apperance, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_ajr + '#appearance', insertBefore: 'justificationGroup', version: VERSION_GROUP_FUNCTION.toString() }, apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertAfter: 'justificationGroup', info_msg: hl_shared_ajr + '#appearance', version: '' + VERSION_PORTAL_SHADING}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, insertAfter: 'apperance', version: '' + VERSION_PORTAL_SHADING}, removeAnswerBorder: { name: lbl_remove_aswer_border, type: 'bool', description: '', value: false, summary: true, insertAfter: 'shadedHeadings', paddingLeft: '20px', version: VERSION_REMOVE_ANSW_BORDER.toString() }, showGroupActions: { name: lbl_action_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, collapse_expand_ctrl: true, info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS, version: VERSION_GROUP_FUNCTION.toString() }, actionGroup: { name: lbl_action_group, type: 'property_group', description: lbl_action_group_des, summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowRelevanceCondition: { name: lbl_show_relevance_condition, type: 'bool', description: lbl_show_relevance_condition_des, value: false, summary: true, display_if_true_ctrl: 'relevanceconds', info_msg: hl_shared_di_jt + '#only-display-this-question-if', info_icon: true, version: '' + VERSION_NEW_TOOL_LAYOUT}, relevanceconds: { name: lbl_rel_cond, type: 'relevanceConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowRelevanceCondition', show_condition_ques_val: true, advanced: true, moreadvanced: false, skip: false, relevance: true, relevancecond:true, summary: false } /*relevanceconds: { name: lbl_rel_cond, description: lbl_relevance_des, type: 'relevanceConditionsEditor', value: [], advanced: true, summary: false }*/}, inputNumbering: { ctrlProperty: { name: lbl_numbering_ctrl, type: 'ctrlDes', description: '', explainUrl: hl_auto_number, version: '' + VERSION_CTRL_PROPERTY_EXP}, id: { type: CONST_VALUE_NONE, value:'' }, label: { name: lbl_caption_txt, type: 'uiText', description: lbl_ques_cap_des, required: true, value: {}, summary: false }, hint: { name: lbl_hint, type: 'uiText', description: lbl_add_help_des, value: {}, summary: false }, name: { name: lbl_data_name, type: 'text', description: '',//lbl_data_name_des_autonumber, limit: [ 'nosymbols', 'lowercase', 'unique' ], required: true, value: 'untitled', valueinput: '', summary: false }, defaultValue: { name: lbl_default_val, type: 'text', description: lbl_default_val_des, value: '', placeholder: 'YYMMDDhhmmssSS', readOnly: true, summary: false, info_msg: hl_auto_number + '#default-value', info_icon: false, hideVersion: '' + VERSION_AUTONUMBER_PHASE2}, autoNumberTypeGroup: { name: "", type: 'property_group', showSelectAll: false, description: '', summary: true, version: VERSION_GROUP_FUNCTION.toString()}, autoNumberType: { name: lbl_auto_type, type: 'enumeration', description: '', options: [ 'Collected$$' + lbl_auto_type_collected, 'Received$$' + lbl_auto_type_received, CONST_AUTO_TYPE_ON_DEVCE + '$$' + lbl_auto_type_on_device + '$$version=' + VERSION_AUTONUMBER_TYPE_ON_DEVICE], value: 'Collected', version: '' + VERSION_AUTONUMBER_PHASE2, parent_group: 'autoNumberTypeGroup', display_if_value_equal: [CONST_AUTO_TYPE_ON_DEVCE + '$$autoNumberTriggerType'], summary: false }, autoNumberTriggerType: { name: lbl_auto_num_trigger, type: 'enumeration', description: '', required: false, value: false, summary: false, options: ['$$' + lbl_auto_num_trigger_select_opt, '2$$' + lbl_auto_num_trigger_2, '4$$' + lbl_auto_num_trigger_4, '8$$' + lbl_auto_num_trigger_8, '16$$' + lbl_auto_num_trigger_16], value: '', valueIfUndefined: '', insertAfter: 'autoNumberType', show_condition_ques: 'autoNumberType', show_condition_ques_val: CONST_AUTO_TYPE_ON_DEVCE, version: VERSION_AUTO_NUM_TRIGER_TYPE.toString() }, autoNumTriggerQues: { name: lbl_auto_num_trigger_ques, type: 'enumeration', description: '', required: true, options: [lbl_sel_question], value: lbl_sel_question, summary: false, insertAfter: 'autoNumberTriggerType', version: VERSION_AUTO_NUM_TRIGER_TYPE.toString() }, autoNumTriggerPages: { name: lbl_auto_num_trigger_pages, type: 'enumeration', description: '', required: true, options: [lbl_sel_page], summary: false, insertAfter: 'autoNumTriggerQues', version: VERSION_AUTO_NUM_TRIGER_TYPE.toString() }, prefix: { name: lbl_auto_prefix, type: 'text', description: lbl_auto_prefix_des, value: '', summary: false, parent_group: 'autoNumberTypeGroup', info_msg_2: hl_auto_number + '#prefix', info_icon_2: true, version: '' + VERSION_AUTONUMBER_PHASE2}, startValue: { name: lbl_auto_start_value, type: 'numericDefaultField', description: lbl_auto_start_value_des, value: '', summary: false, isDisabledWhenEdit: true, version: '' + VERSION_AUTONUMBER_PHASE2}, isResetNumbering: { name: lbl_is_reset_numbering, type: 'bool', description: lbl_is_reset_numbering_des, value: false, summary: true, style: 'padding-top: 5px;', isDisabledWhenEdit: true, version: '' + VERSION_AUTONUMBER_PHASE2 }, isEnableAsCollect: { name: lbl_is_enable_as_collect_if_no_connect, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, style: 'padding-top: 5px;', version: VERSION_AUTONUMBER_TYPE_ON_DEVICE.toString() }, isSearchField: { name: lbl_is_search_field, type: 'bool', description: lbl_is_search_field_des, value: false, summary: true, version: '' + VERSION_OPTION_SERABLE_FILED }, showGroupRulesPermissions: { name: lbl_group_rules_permissions, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_readonly + CONST_HELP_RULES_PERMISSIONS, version: VERSION_GROUP_FUNCTION.toString() }, readOnlyGroup: { name: lbl_read_only_group, type: 'property_group', showSelectAll: true, add_class: 'notAcross margin-left-10', description: lbl_read_only_group_des, info_msg: hl_shared_readonly + '#read-only', summary: true, info_icon: false, version: '' + VERSION_TOOL_PARAM_CLEANUP}, readOnlyViewDataGroup: { name: lbl_use_view_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', description: '', parent_group: 'readOnlyGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyViewEdit: { name: lbl_edit,//lbl_view_edit_grp, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_edit,//lbl_view_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyDispatchGroup: { name: lbl_use_dis_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'readOnlyGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_new, //lbl_dispatch_new_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_edit, //lbl_dispatch_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyFillNSendGroup: { name: lbl_fill_and_send_grp_txt, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'readOnlyGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_new, //lbl_fill_and_send_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()}, readOnlyUsersGroup: { name: lbl_users_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'readOnlyGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnly: { name: lbl_mobile_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_mobile_grp, grp_description: ''}, readOnlyWebAppGrp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, valueIfUndefined: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_webapp_grp, grp_description: '', display_if_true_ctrl: 'readOnlyViewNew,readOnlyDispatchToEmail,readOnlyFillAndSendEdit,readOnlyWebApp,readOnlyEmbeddedForm,readOnlyFormLinks', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyViewNew: { name: lbl_view_new_grp, style: 'padding-left: 50px;', type: 'bool', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_view_new_grp, grp_description: '', show_condition_ques: 'readOnlyWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyDispatchToEmail: { name: lbl_dispatch_to_email_grp, style: 'padding-left: 50px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_dispatch_to_email_grp, grp_description: '', show_condition_ques: 'readOnlyWebAppGrp', show_condition_ques_val: true, version: VERSION_DISPATCH_TO_EMAIL.toString()}, readOnlyFillAndSendEdit: { name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp, grp_description: '', valueIfUndefined: false, show_condition_ques: 'readOnlyWebAppGrp', show_condition_ques_val: true, version: VERSION_FNS_EDIT.toString()}, readOnlyWebApp: { name: lbl_web_client, //lbl_webapp_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_web_client, //lbl_webapp_grp, grp_description: '', show_condition_ques: 'readOnlyWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyEmbeddedForm: { name: lbl_embedded_form, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_embedded_form, grp_description: '', show_condition_ques: 'readOnlyWebAppGrp', show_condition_ques_val: true, version: VERSION_CO_135_NEW_SETTING.toString()}, readOnlyFormLinks: { name: lbl_form_links_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_form_links_grp, grp_description: '', show_condition_ques: 'readOnlyWebAppGrp', show_condition_ques_val: true, version: VERSION_RESTRICT_OPTION_FL.toString()}, readOnlyDsp: { name: lbl_dispatch_read_only, type: 'bool', grp_type: CONST_BOOL_GRP, description: lbl_dispatch_read_only_des, value: false, summary: true, parent_group: 'readOnlyGroup', grp_name: lbl_dispatch_read_only_grp, grp_description: lbl_dispatch_read_only_grp_des, version: '' + VERSION_CTRL_PROPERTY_DSP_READ_ONLY, hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, readOnlyForwardedGroup: { name: lbl_use_fowarded_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'readOnlyGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, readOnlyForwarded: { name: lbl_edit, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_edit, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, readOnlyRetrieveGroup: { name: lbl_retrieve_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'readOnlyGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, readOnlyOnRetrieve: { name: lbl_on_retrieve, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'readOnlyGroup', grp_name: lbl_on_retrieve, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, requiredGroup: { name: lbl_required_group, type: 'property_group', showSelectAll: true, add_class: 'notAcross margin-left-10', description: lbl_required_group_des, info_msg: hl_shared_required + '#required', summary: true, info_icon: false, version: '' + VERSION_TOOL_PARAM_CLEANUP}, requiredViewDataGroup: { name: lbl_use_view_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', description: '', parent_group: 'requiredGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredViewEdit: { name: lbl_edit,//lbl_view_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_edit,//lbl_view_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredDispatchGroup: { name: lbl_use_dis_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'requiredGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_new, //lbl_dispatch_new_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_edit, //lbl_dispatch_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredFillNSendGroup: { name: lbl_fill_and_send_grp_txt, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'requiredGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_new, //lbl_fill_and_send_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()}, requiredUsersGroup: { name: lbl_users_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'requiredGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, required: { name: lbl_mobile_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_mobile_grp, grp_description: ''}, requiredWebAppGrp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, valueIfUndefined: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_webapp_grp, grp_description: '', display_if_true_ctrl: 'requiredViewNew,requiredDispatchToEmail,requiredFillAndSendEdit,requiredWebApp,requiredEmbeddedForm,requiredFormLinks', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredViewNew: { name: lbl_view_new_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_view_new_grp, grp_description: '', show_condition_ques: 'requiredWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredDispatchToEmail: { name: lbl_dispatch_to_email_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_dispatch_to_email_grp, grp_description: '', show_condition_ques: 'requiredWebAppGrp', show_condition_ques_val: true, version: VERSION_DISPATCH_TO_EMAIL.toString()}, requiredFillAndSendEdit: { name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_fill_and_send, //lbl_fill_and_send_edit_grp, grp_description: '', valueIfUndefined: false, show_condition_ques: 'requiredWebAppGrp', show_condition_ques_val: true, version: VERSION_FNS_EDIT.toString()}, requiredWebApp: { name: lbl_web_client, //lbl_webapp_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_web_client, //lbl_webapp_grp, grp_description: '', show_condition_ques: 'requiredWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredEmbeddedForm: { name: lbl_embedded_form, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_embedded_form, grp_description: '', show_condition_ques: 'requiredWebAppGrp', show_condition_ques_val: true, version: VERSION_CO_135_NEW_SETTING.toString()}, requiredFormLinks: { name: lbl_form_links_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_form_links_grp, grp_description: '', show_condition_ques: 'requiredWebAppGrp', show_condition_ques_val: true, version: VERSION_RESTRICT_OPTION_FL.toString()}, // The Dispatch Required (same as Required) dispatchRequired: { name: lbl_dispatch_control_required, type: 'bool', description: lbl_dispatch_control_required_des, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_dispatch_control_required_grp, grp_description: lbl_dispatch_control_required_grp_des, hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, requiredForwardedGroup: { name: lbl_use_fowarded_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'requiredGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, requiredForwarded: { name: lbl_edit, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_edit, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, requiredRetrieveGroup: { name: lbl_retrieve_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'requiredGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, requiredOnRetrieve: { name: lbl_on_retrieve, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'requiredGroup', grp_name: lbl_on_retrieve, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, clearGroup: { name: lbl_clear_group, type: 'property_group', showSelectAll: true, add_class: 'notAcross margin-left-10', description: '', summary: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, clearRetrieveGroup: { name: lbl_retrieve_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'clearGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, clearOnRetrieve: { name: lbl_on_retrieve, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'clearGroup', grp_name: lbl_on_retrieve, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, hideMobileWebGroup: { name: lbl_hide_mobile_web_group, type: 'property_group', add_class: 'notAcross margin-left-10', description: lbl_hide_mobile_web_group_des, info_msg: hl_shared_hide + '#hide', showSelectAll: true, summary: true, info_icon: false, version: '' + VERSION_TOOL_PARAM_CLEANUP}, hideViewDataGroup: { name: lbl_use_view_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', description: '', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewEdit: { name: lbl_edit,//lbl_view_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit,//lbl_view_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchGroup: { name: lbl_use_dis_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchNew: { name: lbl_new, //lbl_dispatch_new_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_dispatch_new_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchEdit: { name: lbl_edit, //lbl_dispatch_edit_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, //lbl_dispatch_edit_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillNSendGroup: { name: lbl_fill_and_send_grp_txt, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideFillAndSend: { name: lbl_new, //lbl_fill_and_send_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_new, //lbl_fill_and_send_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FNS.toString()}, hideUsersGroup: { name: lbl_users_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInMobile: { name: lbl_mobile_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_mobile_grp, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideInPDF: { name: lbl_hide_in_pdf_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_pdf_grp, grp_description: '', version: '' + VERSION_HIDE_PDF}, hideWebAppGrp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 30px;', description: '', value: false, summary: true, valueIfUndefined: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', display_if_true_ctrl: 'hideViewNew,hideDispatchToEmail,hideFillAndSendEdit,hideWebApp,hideEmbeddedForm,hideFormLinks,hidePdfWeb', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideViewNew: { name: lbl_view_new_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_view_new_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideDispatchToEmail: { name: lbl_dispatch_to_email_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_dispatch_to_email_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_DISPATCH_TO_EMAIL.toString()}, hideFillAndSendEdit: { name: lbl_fill_and_send_edit_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_fill_and_send_edit_grp, grp_description: '', valueIfUndefined: false, show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_FNS_EDIT.toString()}, hideWebApp: { name: lbl_webapp_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_webapp_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideEmbeddedForm: { name: lbl_embedded_form, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_embedded_form, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_CO_135_NEW_SETTING.toString()}, hideFormLinks: { name: lbl_form_links_grp, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_form_links_grp, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_RESTRICT_OPTION_FL.toString()}, hidePdfWeb: { name: lbl_hide_pdf_web, type: 'bool', style: 'padding-left: 50px;', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_pdf_web, grp_description: '', show_condition_ques: 'hideWebAppGrp', show_condition_ques_val: true, version: VERSION_HIDE_PDF_WEB.toString()}, hideInWeb: { name: lbl_hide_in_web, type: 'bool', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_hide_in_web_grp, grp_description: '', version: '1.3', hideVersion: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION.toString()}, hideForwardedGroup: { name: lbl_use_fowarded_only_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideForwarded: { name: lbl_edit, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_edit, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_FORWARDED.toString()}, hideRetrieveGroup: { name: lbl_retrieve_grp, style: 'padding-left: 20px; clear: both;', type: 'uiLabel', parent_group: 'hideMobileWebGroup', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, hideOnRetrieve: { name: lbl_on_retrieve, style: 'padding-left: 30px;', type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'hideMobileWebGroup', grp_name: lbl_on_retrieve, grp_description: '', version: VERSION_READ_ONLY_REQUIRED_HIDE_OPTION_RETRIEVE.toString()}, justificationGroup: { name: lbl_justification_group, type: 'property_group', description: lbl_justification_group_des, summary: true, info_icon: false, info_msg: hl_shared_ajr + '#Justification', insertBefore: 'showGroupRulesPermissions', version: '' + VERSION_TOOL_NEW_JUSTIFICATION}, justificationCaption: { name: lbl_justification_caption, type: 'enumeration_radio', hideCaption: true, showCaptionAcross: { captionStyle: 'float:left;margin-top:-5px;width:70px;' }, showOptionAcross: true, options: [ '0$$L', '1$$C', '2$$R'], value: '0', summary: true, parent_group: 'justificationGroup', paddingLeft: '20px', version: '' + VERSION_TOOL_NEW_JUSTIFICATION}, justificationHint: { name: lbl_justification_hint, type: 'enumeration_radio', hideCaption: true, showCaptionAcross: { captionStyle: 'float:left;margin-top:-5px;width:70px;' }, showOptionAcross: true, options: [ '0$$L', '1$$C', '2$$R'], value: '0', summary: true, parent_group: 'justificationGroup', paddingLeft: '20px', version: '' + VERSION_TOOL_NEW_JUSTIFICATION}, justificationAnswer: { name: lbl_justification_answer, type: 'enumeration_radio', hideCaption: true, showCaptionAcross: { captionStyle: 'float:left;margin-top:-5px;width:70px;' }, showOptionAcross: true, options: [ '0$$L', '1$$C', '2$$R'], value: '0', summary: true, parent_group: 'justificationGroup', paddingLeft: '20px', version: '' + VERSION_TOOL_NEW_JUSTIFICATION}, //Remove space above removeSpaceGroup: { name: lbl_remove_space_group, type: 'property_group', description: lbl_remove_space_group_des, info_msg: hl_shared_ajr + '#remove-space', summary: true, info_icon: false, insertBefore: 'showGroupRulesPermissions', version: '' + VERSION_TOOL_PARAM_CLEANUP}, //Remove space above removeSpaceAbove: { name: lbl_remove_space_above, type: 'bool', description: lbl_remove_space_above_des, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'removeSpaceGroup', grp_name: lbl_remove_space_above_grp, grp_description: lbl_remove_space_above_grp_des, version: '' + VERSION_REMOVE_SPACE}, //Remove space below removeSpaceBelow:{ name: lbl_remove_space_below, type: 'bool', description: lbl_remove_space_below_des, value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'removeSpaceGroup', grp_name: lbl_remove_space_below_grp, grp_description: lbl_remove_space_below_grp_des, version: '' + VERSION_REMOVE_SPACE}, showGroupAppearance: { name: lbl_apperance, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, collapse_expand_ctrl: true, info_icon: true, info_msg: hl_shared_ajr + '#appearance', insertBefore: 'justificationGroup', version: VERSION_GROUP_FUNCTION.toString() }, apperance:{ name: lbl_apperance, type: 'ctrl_apperance', description: lbl_apperance_des, value: 'Default', summary: true, insertAfter: 'justificationGroup', info_msg: hl_shared_ajr + '#appearance', version: '' + VERSION_PORTAL_SHADING}, shadedHeadings:{ name: '', type: 'ctrl_shaded_headings', paddingLeft: '20px', description: '', value: { isShadedHeadings: false, headingColor: '#E9E9E9', textColor: '#000000', isBorderAroundHeading: false }, summary: true, insertAfter: 'apperance', version: '' + VERSION_PORTAL_SHADING}, removeAnswerBorder: { name: lbl_remove_aswer_border, type: 'bool', description: '', value: false, summary: true, insertAfter: 'shadedHeadings', paddingLeft: '20px', version: VERSION_REMOVE_ANSW_BORDER.toString() }, answerColor:{ name: '', type: 'ctrl_answer_color', paddingLeft: '20px', description: '', value: { isAnswerColor: false, answerBGColor: '#FFFFFF', answerTextColor: '#000000' }, summary: true, insertAfter: 'removeAnswerBorder', version: '' + VERSION_SHOW_SECONDS_COLOR_ANSWER}, showGroupActions: { name: lbl_action_group, type: 'sliderOnOff', description: '', value: false, valueIfUndefined: false, summary: true, info_icon: true, collapse_expand_ctrl: true, info_msg: hl_shared_di_jt + CONST_HELP_ACTIONS, version: VERSION_GROUP_FUNCTION.toString() }, actionGroup: { name: lbl_action_group, type: 'property_group', description: '', summary: true, info_icon: false, version: '' + VERSION_NEW_TOOL_LAYOUT}, isShowITE: { name: lbl_show_if_then_else_condition, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'iteConditions', info_msg: hl_if_then_else, info_icon: true, version: VERSION_IF_THEN_ELSE.toString()}, isShowReadOnlyIf: { name: lbl_show_read_only_if, type: 'bool', description: '', value: false, summary: true, display_if_true_ctrl: 'readOnlyIfConditions', info_msg: hl_read_only_if, info_icon: true, version: VERSION_READ_ONLY_IF.toString()}, iteConditions: { name: lbl_if_then_else_cond, type: 'iteConditionsEditor', value: { conditions:[], resultTrue:'', hasResultElse: false, resultFalse:''}, summary: false, show_condition_ques: 'isShowITE', show_condition_ques_val: true, advanced: true, version: VERSION_IF_THEN_ELSE.toString() }, readOnlyIfConditions: { name: lbl_read_only_if_cond, type: 'readOnlyIfConditionsEditor', value: [], summary: false, show_condition_ques: 'isShowReadOnlyIf', show_condition_ques_val: true, advanced: true, version: VERSION_READ_ONLY_IF.toString()}, isHideIfCmpVal: { name: lbl_hide_if_cpm_val, type: 'bool', description: '', value: false, valueIfUndefined: false, summary: true, display_if_true_ctrl: 'hideIfFields, hideIfCmpVal', version: VERSION_HIDE_IF.toString()}, hideIfCmpVal: { name: '', type: 'hideIfCompareEditor', description: '', value: {}, valueIfUndefined: {}, insertAfter: 'isHideIfCmpVal', show_condition_ques: 'isHideIfCmpVal', show_condition_ques_val: true, summary: false, version: VERSION_HIDE_IF.toString() }, hideIfFields: { name: lbl_hide_if_field_list, type: 'hideIfFieldsEditor', description: '', value: [], valueIfUndefined: [], insertAfter: 'hideIfCmpVal', show_condition_ques: 'isHideIfCmpVal', show_condition_ques_val: true, summary: false, version: VERSION_HIDE_IF.toString() }, tip: { name: '', type: 'property_group', description: lbl_action_group_des_for_autonumber, hasHtmlTag: true, summary: true, info_icon: false, version: VERSION_GROUP_FUNCTION.toString()}}, inputNewPayment: { ctrlProperty: { name: lbl_new_payment_ctrl, type: 'ctrlDes', description: '', explainUrl: hl_new_payment}, id: { type: CONST_VALUE_NONE, value:'' }, paymentType: { name: lbl_payment_type, type: 'enumeration_radio', description: '', options: [ 'manual$$' + lbl_payment_type_manual, 'automated$$' + lbl_payment_type_automated, CONST_PAYMENT_TYPE_SQUARE + '$$' + lbl_payment_type_square + '$$version=' + VERSION_SQUARE_PAYMENT, CONST_PAYMENT_MIPOS + '$$' + lbl_payment_type_mipos + '$$version=' + VERSION_PAYMENT_MIPOS], /*showOptionAcross: true,*/ valueIfUndefined: 'manual', value: 'manual', summary: true, display_if_value_equal: ['automated$$sendToPayment,returnFromPayment,amountCharged,propayNote3,isDisplayAmountCharged,isDisplayAddMsg,addMessage,propayNote2, squareNote2,imgActionParamPP_Amount, imgActionParamPP_Currency, imgActionParamPP_Invoice, imgActionParamPP_Email,kind,hintLink,actionBtnText,imageText,imgJustify,displayCCIcon', CONST_PAYMENT_TYPE_SQUARE + '$$sendToPayment,returnFromPayment,totalAmountPaid,transactionClientId,propayNote2, squareNote2,imgActionParamPP_Amount, imgActionParamPP_Currency,kind,hintLink,actionBtnText,imageText,imgJustify,displayCCIcon', 'manual$$readOnlyGroup,requiredGroup,label,hint', CONST_PAYMENT_MIPOS +'$$sendToPayment,returnFromPayment,totalAmountPaid,imgActionParamPP_Amount, imgActionParamPP_Currency,imgActionParamMP_Tax, imgActionParamMP_IsTaxPercentage, imgActionParamMP_Description,cardholderName,cardNumber,authorizatioCode,paymentMethod,referenceNumber,actionBtnText'], hide_if_value_equal: ['automated,' + CONST_PAYMENT_TYPE_SQUARE + ',' + CONST_PAYMENT_MIPOS + '$$label,hint,answerColor,removeAnswerBorder,shadedHeadings,justificationGroup,justificationAnswer,justificationHint,justificationCaption', 'manual$$imgJustify,shadedButton'], trigger_if_value_change: ['li.imgActionParamPP_Currency #editor_imgActionParamPP_Currency$$reload_currency'], version: VERSION_PAYMENT_TYPE.toString() }, propayNote2: { name: lbl_propay_note_3, type: 'property_group', description: '', style: 'padding-top: 0px; padding-left: 5px; text-align: left;width: 262px', add_class: 'using_for_note', summary: true, hasHtmlTag: true, show_condition_ques: 'paymentType', show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED], version: VERSION_PAYMENT_TYPE.toString()}, squareNote2: { name: lbl_square_note, type: 'property_group', description: '', style: 'padding-top: 0px; padding-left: 5px; text-align: left;width: 262px', add_class: 'using_for_note', summary: true, hasHtmlTag: true, show_condition_ques: 'paymentType', show_condition_ques_val: [CONST_PAYMENT_TYPE_SQUARE], version: VERSION_SQUARE_PAYMENT.toString()}, label: { name: lbl_caption_txt, type: 'uiText', description: lbl_ques_cap_des, required: true, value: {}, show_condition_ques: 'paymentType', show_condition_ques_val: ['manual'], summary: false }, hint: { name: lbl_hint, type: 'uiText', description: lbl_add_help_des, value: {}, show_condition_ques: 'paymentType', show_condition_ques_val: ['manual'], summary: false }, name: { name: lbl_data_name, type: 'text', description: '', limit: [ 'nosymbols', 'lowercase', 'unique' ], required: true, value: 'untitled', valueinput: '', summary: false }, grayCaption: { name: lbl_gray_caption_text, type: 'bool', description: '', value: false, insertAfter: 'name', style: 'padding-top: 10px;', version: VERSION_GRAY_CAPTION_TEXT.toString()}, sendToPayment: { name: lbl_send_to_payment, type: 'property_group', add_class: 'notAcross', description: '', summary: true, show_condition_ques: 'paymentType', show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED, CONST_PAYMENT_TYPE_SQUARE, CONST_PAYMENT_MIPOS], version: VERSION_PAYMENT_TYPE.toString()}, /*paymentVendorGroup: { name: lbl_payment_vendor_group, type: 'property_group', add_class: 'notAcross', description: '', summary: true, show_condition_ques: 'paymentType', show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED, CONST_PAYMENT_TYPE_SQUARE], version: VERSION_PAYMENT_TYPE.toString()}, propay: { name: lbl_propay, type: 'bool', description: '', value: false, summary: true, grp_type: CONST_BOOL_GRP, parent_group: 'paymentVendorGroup', grp_name: lbl_propay, grp_description: '', display_if_true_ctrl: 'imgActionParamPP_Amount, imgActionParamPP_Currency, imgActionParamPP_Invoice, imgActionParamPP_Email', version: VERSION_PAYMENT_TYPE.toString()}, propayNote: { name: lbl_propay_note, type: 'property_group', description: '', style: 'margin-top: -5px; padding-top: 0px; padding-left: 5px; text-align: left;width: 262px', add_class: 'using_for_note', summary: true, show_condition_ques: 'paymentType', show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED, CONST_PAYMENT_TYPE_SQUARE], version: VERSION_PAYMENT_TYPE.toString()}, propayNote2: { name: lbl_propay_note_2, type: 'property_group', description: '', style: 'padding-top: 0px; padding-left: 5px; text-align: left;width: 262px', add_class: 'using_for_note', summary: true, hasHtmlTag: true, show_condition_ques: 'paymentType', show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED, CONST_PAYMENT_TYPE_SQUARE], version: VERSION_PAYMENT_TYPE.toString()},*/ imgActionParamPP_Amount: { name: lbl_paypro_amount, type: 'enumeration', description: '', required: true, options: [CONST_DOUBLE_DOLLAR + lbl_paypro_amount_opt], value: '', summary: false, show_condition_ques: 'paymentType', show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED, CONST_PAYMENT_TYPE_SQUARE, CONST_PAYMENT_MIPOS], version: VERSION_PAYMENT_TYPE.toString() }, imgActionParamPP_Currency: { name: lbl_paypro_currency, type: 'enumeration', description: '', options: [ 'USD'], mipos_options: ['188$$CRC', '320$$GTQ', '340$$HNL', '558$$NIO', '840$$USD'], other_options: ['USD'], value: 'USD', valueIfUndefined: 'USD', required: true, summary: false, show_condition_ques: 'paymentType', show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED, CONST_PAYMENT_TYPE_SQUARE, CONST_PAYMENT_MIPOS], version: VERSION_PAYMENT_TYPE.toString()}, imgActionParamPP_Invoice: { name: lbl_paypro_invoice, type: 'enumeration', description: '', required: false, options: [CONST_DOUBLE_DOLLAR + lbl_paypro_invoice_opt], value: '', summary: false, show_condition_ques: 'paymentType', show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED], version: VERSION_PAYMENT_TYPE.toString() }, imgActionParamPP_Email: { name: lbl_paypro_email, type: 'enumeration', description: '', required: false, options: [CONST_DOUBLE_DOLLAR + lbl_paypro_email_opt], value: '', summary: false, show_condition_ques: 'paymentType', show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED], version: VERSION_PAYMENT_TYPE.toString() }, imgActionParamMP_Tax: { name: lbl_mipos_tax, type: 'enumeration', description: '', required: true, options: [CONST_DOUBLE_DOLLAR + lbl_mipos_opt], value: '', summary: false, show_condition_ques: 'paymentType', show_condition_ques_val: [CONST_PAYMENT_MIPOS], version: VERSION_PAYMENT_MIPOS.toString() }, imgActionParamMP_IsTaxPercentage: { name: lbl_mipos_tax_pecentage, type: 'bool', description: '', add_class: 'checkbox-right', style: 'padding-top: 5px;', value: false, valueIfUndefined: false, summary: true, show_condition_ques: 'paymentType', show_condition_ques_val: [CONST_PAYMENT_MIPOS], version: VERSION_PAYMENT_MIPOS.toString()}, imgActionParamMP_Description: { name: lbl_mipos_description, type: 'enumeration', description: '', required: false, options: [CONST_DOUBLE_DOLLAR + lbl_mipos_opt], value: '', summary: false, show_condition_ques: 'paymentType', show_condition_ques_val: [CONST_PAYMENT_MIPOS], version: VERSION_PAYMENT_MIPOS.toString() }, returnFromPayment: { name: lbl_return_from_payment, type: 'property_group', add_class: 'notAcross', description: '', summary: true, show_condition_ques: 'paymentType', show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED, CONST_PAYMENT_TYPE_SQUARE, CONST_PAYMENT_MIPOS], version: VERSION_PAYMENT_TYPE.toString()}, amountCharged: { name: lbl_paypro_amount_charged, type: 'enumeration', description: '', hasHtmlTag: true, required: false, style: 'padding-left: 20px;', options: [CONST_DOUBLE_DOLLAR + lbl_paypro_amount_opt], value: '', summary: false, show_condition_ques: 'paymentType', show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED], version: VERSION_PAYMENT_TYPE.toString() }, propayNote3: { name: lbl_destination_field, type: 'property_group', description: '', style: 'padding-top: 0px; padding-left: 20px; text-align: left;width: 262px;', add_class: 'using_for_note_2', summary: true, hasHtmlTag: true, show_condition_ques: 'paymentType', show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED], version: VERSION_PAYMENT_TYPE.toString()}, isDisplayAmountCharged: { name: lbl_display_amount_charged, type: 'bool', description: '', style: 'padding-left: 20px;', value: true, valueIfUndefined: true, summary: true, show_condition_ques: 'paymentType', show_condition_ques_val: [CONST_PAYMENT_TYPE_AUTOMATED], version: VERSION_PAYMENT_TYPE.toString()}, totalAmountPaid: { name: lbl_square_total_amount_paid, type: 'enumeration', description: '', hasHtmlTag: true, required: false, style: 'padding-left: 20px;', options: [CONST_DOUBLE_DOLLAR + lbl_square_total_amount_paid_opt], value: '', summary: false, show_condition_ques: 'paymentType', show_condition_ques_val: [CONST_PAYMENT_TYPE_SQUARE, CONST_PAYMENT_MIPOS], version: VERSION_PAYMENT_MIPOS