Sorry, forgot to say that the block to this test must be a lead block.<br><br>Cheers<br><br><div class="gmail_quote">2011/9/22 Nicolas Larcipretti <span dir="ltr">&lt;<a href="mailto:niclarcipretti@gmail.com">niclarcipretti@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">A fresh install wont have the related to fields that I created. I&#39;ll give you the script to create them in your installation:<br>
<br>&lt;?php<br>require_once &#39;vtlib/Vtiger/Block.php&#39;;<br><br>//Can be any block you want<br>
$blockInstance = Vtiger_Block::getInstance(117);<br><br>$fieldInstance = new Vtiger_Field();<br>$fieldInstance-&gt;name = &#39;existentaccount&#39;;<br>$fieldInstance-&gt;label = &#39;Existent Account&#39;;<br>$fieldInstance-&gt;table = &#39;vtiger_leadscf&#39;;<br>

$fieldInstance-&gt;column = &#39;existent_account&#39;;<br>$fieldInstance-&gt;columntype = &#39;VARCHAR(255)&#39;;<br>$fieldInstance-&gt;uitype = 10;<br>$fieldInstance-&gt;typeofdata = &#39;V~O&#39;;<br><br>$blockInstance-&gt;addField($fieldInstance);<br>

<br>$fieldInstance-&gt;setRelatedModules(Array(&#39;Accounts&#39;));<br><br>Run this script in your vtiger, access leads-&gt;edit view, select an account, set your cursor in a text field and press enter.<br><br>Cheers<br>

<br>Nicolas<br><div class="gmail_quote"><div><div></div><div class="h5">2011/9/22 Joe Bordes <span dir="ltr">&lt;<a href="mailto:joe@tsolucio.com" target="_blank">joe@tsolucio.com</a>&gt;</span><br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div></div><div class="h5">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Quick test on my test install with firefox and I can&#39;t reproduce.<br>
    Can you reproduce this behaviour online or in a fresh install? 
    Another browser?<br>
    <br>
    <br>
    El 22/09/11 19:04, Nicolas Larcipretti escribió:
    <blockquote type="cite"><div><div></div><div>Hey fellas,<br>
      <br>
      I&#39;ve noticed that in the edit view, if you place the cursor in any
      input text field and press &quot;enter&quot;, every &quot;related to&quot; field in
      the form is automatically erased. Anyone else noticed that? Is
      there a work around to this? Or do I have to unbind the action
      from the eraser button via jquery/prototype to solve this?<br>
      <br>
      Cheers<br>
      <br>
      Nicolas<br>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a></pre>
    </blockquote>
    <br>
  </div>

<br></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br>
</blockquote></div><br>