<div dir="ltr"><div><div><div>Hi<br><br></div>IF widget is a <div> container and it may not loaded before your js code calls it. IF so you may try setTimeOut() function in js and try<br><br><br></div>Thanks<br></div>Sutharsan Jeganathan<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 13, 2017 at 2:48 PM, Estefan Civera <span dir="ltr"><<a href="mailto:estefan.civera@gmail.com" target="_blank">estefan.civera@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all<br>
<br>
I've create a new custom module.<br>
<br>
In edit view and detail view I've added a simple javascript that load data<br>
from another place and suggest value to insert (like image below)<br>
<br>
<<a href="http://vtiger-crm.2324883.n4.nabble.com/file/t1149/WsQtP7sPQMy1GkD8tXxTcg.png" rel="noreferrer" target="_blank">http://vtiger-crm.2324883.n4.<wbr>nabble.com/file/t1149/<wbr>WsQtP7sPQMy1GkD8tXxTcg.png</a>><br>
<br>
Now in MassEdit I need to replicate this behaviour.<br>
I've done the following steps<br>
<br>
1) Write my own MassActionAjax class and method<br>
2) Write my custom method showMassEditForm(Vtiger_<wbr>Request $request)<br>
<br>
3) In template view I've add my overrided template MassEditForm.tpl<br>
At the end of this file I've added my custom javascript code<br>
{literal}<br>
<br>
{/literal}<br>
<br>
this code run infact browser gives me alert message but I can't get the<br>
input widget application and then work on it.<br>
<br>
It seems that when I try to access the widget reference it does not exist<br>
yet<br>
<br>
<br>
Do you have some hints for me?<br>
Thanks in advance estevan<br>
<br>
<br>
<br>
<br>
<br>
-----<br>
Ing. Estefan Civera<br>
Vtiger developer and consultant<br>
<a href="http://www.estefancivera.net" rel="noreferrer" target="_blank">http://www.estefancivera.net</a><br>
Italy<br>
--<br>
Sent from: <a href="http://vtiger-crm.2324883.n4.nabble.com/vtigercrm-developers-f4.html" rel="noreferrer" target="_blank">http://vtiger-crm.2324883.n4.<wbr>nabble.com/vtigercrm-<wbr>developers-f4.html</a><br>
______________________________<wbr>_________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>