It may not be simple the first time, but once you've done it once, it will help you extend the functionality across all JavaScript code.
You need to substitute the function "sortedConditionManagerFields" from the class "Sage/UI/ConditionManager" (see the file "jscript\Sage\UI\ConditionManager.js"). In order to extend the class, see the BigDeal customizations for an example on how to properly customize files in the jscript folder:
http://customerfx.com/pages/integrationblog/2013/10/14/saleslogix-v8-big-deal-example-file.aspx
Inside your custom JS file, substitute the widgetTemplate this way:
ConditionManager.prototype.getOperatorsByField = function (field) { // OOB code here, with customizations }
The only thing you need to change to the original getoOperatorsByField OOB code is to change the order of the "stringLikeOptions" so the "Contains" (like) operator is shown in the first place for every Lookup control.
If you want to do so only for Account, you may check for the current family or any other information that can be accessed from the "this" object or any other piece of code.
Regards,
Marcos
|