[Vtigercrm-developers] Field Formula Targets as Non-custom fileds

Prasad prasad at vtiger.com
Tue Nov 10 06:40:02 PST 2009


The file to look at is: modules/FieldFormulas/VTModuleExpressionsManager.inc

On 11/10/09, Prasad <prasad at vtiger.com> wrote:
>
> Hi James,
>
> In the file: modules/FieldFormulas/VTExpressionsManager.inc, modify the
> lines highlighted below:
>
> function expressionFields($moduleName){
>     // ...
>     foreach($fields as $field){
>         //Use the field name to figure out the custom field
>
>         /*if(preg_match('/cf_\d+/', $field['name']) &&
>         in_array($field['type']['name'], array('text', 'string','integer',
> 'double'))){
>             $arr[$field['name']] = getTranslatedString($field['label'],
> $moduleName);
>         }*/
>
>         $arr[$field['name']] = getTranslatedString($field['label'],
> $moduleName);
>         }
> }
>
> Please note, there are few limitations for the forumla being applied on the
> standard-fields, like for Mandatory, Assigned To, Created Time, Modified
> Time fields. Make sure not to set values on such fields this could make the
> CRM meta information to be stored in undesired way!
>
> Regards,
> Prasad
> vtiger Team
>
>>
>> On 11/9/09, James Mutuku <jnmutuku at gmail.com> wrote:
>>>
>>>  I want to have a field formula that targets a non-custom firld. How do I
>>> achieve this?
>>>
>>> _______________________________________________
>>> Reach hundreds of potential candidates - http://jobs.vtiger.com
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20091110/3c0dd6e2/attachment-0003.html 


More information about the vtigercrm-developers mailing list