<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Alan,<br>
<br>
In vtiger 6 there is a built in function to populate some fields
on selection UI10.<br>
<br>
/**<br>
* Function which will register event for Reference Fields
Selection<br>
*/<br>
registerReferenceSelectionEvent : function(container) {<br>
var thisInstance = this;<br>
<br>
jQuery('input[name="account_id"]',
container).on(Vtiger_Edit_Js.referenceSelectionEvent, function(e,
data){<br>
thisInstance.referenceSelectionEventHandler(data,
container);<br>
});<br>
},<br>
<br>
Look for something like this above with your editor search.<br>
In vtiger 5 this job was done by JS also.<br>
<br>
Kindest regards:<br>
Istvan<br>
<br>
<br>
<div class="moz-signature">üdvözlettel:<br>
<br>
<b>Holbok István</b><br>
<br>
+3670-342-0900<br>
<b>e-mail:</b> <a class="moz-txt-link-abbreviated" href="mailto:holbok@gmail.com">holbok@gmail.com</a><br>
<b>SkyPe:</b> holboki<br>
<br>
</div>
2014.07.18. 15:56 keltezéssel, Alan Lord írta:<br>
</div>
<blockquote cite="mid:lqb93b$p04$1@ger.gmane.org" type="cite">On
18/07/14 14:28, <a class="moz-txt-link-abbreviated" href="mailto:adrian@refineriaweb.com">adrian@refineriaweb.com</a> wrote:
<br>
<blockquote type="cite">Hi!
<br>
<br>
I have done this countless times. Unfortunately I never did a
generic
<br>
function doing this and I did always coded by hand.
<br>
</blockquote>
<br>
Thanks.
<br>
<br>
I understand your process. I'd looked at this route myself and
thought it was going be even more messy than js & Ajax but
maybe not ;-)
<br>
<br>
Thanks again,
<br>
<br>
Al
<br>
<br>
<br>
_______________________________________________
<br>
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a>
<br>
<br>
</blockquote>
<br>
</body>
</html>