Hi Stefan,<br><br>I suggest you to try out vtlib. Use uitype 10 of vtlib to create such custom fields. Hope that meets your requirement which will not clash with the existing referencing field.<br><br><div><span class="gmail_quote">On 7/10/09, <b class="gmail_sendername">DJLorry</b> &lt;<a href="mailto:stefan.lorenz@burdadirect.de">stefan.lorenz@burdadirect.de</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> Hello,<br> how can I add a second account or person field in these modules ?<br> The problem can&#39;t be solved by just adding a custom field and changing the<br> uitype. (Which works when no account field already exits, though)<br>
 The uitype 50 changes the custom field to contain the button for the<br> popup-window for account-selection.<br> The problem is that a thereby selected account is stored in the modul&#39;s<br> default account field whereas the custom field stays blank. I have added a<br>
 query to show the account if I put an accountid in the customfield&#39;s table<br> in mysql. So the remainig problem is how to get vtiger to store the selected<br> account&#39;s Id in the custom field and not in the account_id field. Where is<br>
 the connection between popup window,save button and the insertion into the<br> database ? How can I get vtiger not to treat both the custom and the already<br> existing field as the same when storing the account-id ? The same problem<br>
 occurs with a custom person field if one is already part of a module by<br> default.<br> <br> I hope someone is able to help.<br> <br> Regards<br> Stefan<br> <br><br> <br> --<br> View this message in context: <a href="http://www.nabble.com/Adding-custom-second-account-field-to-invoice%2C-sales-order%2C-quote-tp24408556p24408556.html">http://www.nabble.com/Adding-custom-second-account-field-to-invoice%2C-sales-order%2C-quote-tp24408556p24408556.html</a><br>
 Sent from the vtigercrm-developers mailing list archive at Nabble.com.<br> <br> _______________________________________________<br> Reach hundreds of potential candidates - <a href="http://jobs.vtiger.com">http://jobs.vtiger.com</a><br>
 </blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Asha<br>vtiger Team