<span class="gmail_quote"></span>Hi James,<br><div><br>In the file: modules/FieldFormulas/VTExpressionsManager.inc, modify the lines highlighted below:<br><br><span style="font-family: courier new,monospace;">function expressionFields($moduleName){<br>
    // ...<br></span><span style="font-family: courier new,monospace;">    foreach($fields as $field){</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">        //Use the field name to figure out the custom field</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">            </span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">        <span style="background-color: rgb(255, 255, 153);">/*if(preg_match(&#39;/cf_\d+/&#39;, $field[&#39;name&#39;]) &amp;&amp;</span></span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">

<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">        in_array($field[&#39;type&#39;][&#39;name&#39;], array(&#39;text&#39;, &#39;string&#39;,&#39;integer&#39;, &#39;double&#39;))){</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">

<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">            $arr[$field[&#39;name&#39;]] = getTranslatedString($field[&#39;label&#39;], $moduleName);</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">

<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 153);">        }*/</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">            </span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">        <span style="background-color: rgb(255, 255, 102);">$arr[$field[&#39;name&#39;]] = getTranslatedString($field[&#39;label&#39;], $moduleName);</span></span><br style="font-family: courier new,monospace;">
        <span style="font-family: courier new,monospace;">}<br>}<br></span><br>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! <br>

<br>Regards,<br><span class="sg">Prasad</span><br><span class="sg">vtiger Team</span><br><span class="sg"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<span class="sg"><br></span><div><span class="q"><span class="gmail_quote">On 11/9/09, <b class="gmail_sendername">James Mutuku</b> &lt;<a href="mailto:jnmutuku@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jnmutuku@gmail.com</a>&gt; wrote:</span></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<span class="q">
I want to have a field formula that targets a non-custom firld. How do I achieve this?<br>
<br></span><span class="q">_______________________________________________<br>
Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://jobs.vtiger.com</a> <br></span></blockquote></div><br>
</blockquote></div><br>