<div dir="ltr">Hello Lucia,<div><br></div><div>In the table vtiger_relatedlist there is a field called fieldid. Fill in that column with the id of the uitype 10 field. </div><div><br></div><div>Conrado</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 19, 2018 at 4:00 PM lucia digirolamo <<a href="mailto:l.digirolamo@websonica.net">l.digirolamo@websonica.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Also Assets module has the same functionality: if you're on organization <br>
panel and want to create an assets from the related icons, then the <br>
organization name of the "add asset" quick create is already filled in. <br>
But I cannot find anything related to the assets module that indicates <br>
such behaviour... I really don't know what else to look for...<br>
<br>
<br>
On 19/07/2018 13:49, lucia digirolamo wrote:<br>
> So far I've been only able to understand that the quick create form is <br>
> handled by the reference.tpl which populates the popupReferenceModule <br>
> input based on $FIELD_VALUE. In my case, var=FIELD_VALUE <br>
> value=$FIELD_MODEL->get('fieldvalue') is empty. How can I populate <br>
> this value?<br>
><br>
><br>
><br>
> On 18/07/2018 12:19, lucia digirolamo wrote:<br>
>> Situation:<br>
>><br>
>> when I go to organizations list and open an organization, I have <br>
>> contacts icon in the related tabs menu. If I click on this icon I can <br>
>> see the list of all the contacts associated to this organizations and <br>
>> I can also add new contact. If I click on "add contact", the create <br>
>> form already has the organization name field filled in and greyed out.<br>
>><br>
>> - I have created a custom module with a uitype 10 field for <br>
>> organizations, then I added my custom module to the organizations <br>
>> module as a related module. My custom module is correctly shown among <br>
>> the related icons in the organizations module (just as contacts does).<br>
>><br>
>> - If I click on my custom module related tab inside the organization <br>
>> module, I can see the list of all the records of my custom module <br>
>> which have the organization name equal to the organization I am right <br>
>> now. That is correct, it behaves exactly like the contacts module.<br>
>><br>
>> - If I click on the ADD button, the create form opens but the <br>
>> organization name is not already auto-filled in with the organization <br>
>> name I currently am in. I'd like this to behave just like contacts, <br>
>> so when I click on ADD, the create form already has the organization <br>
>> name field filled in.<br>
>><br>
>> How can I achieve this?<br>
>><br>
>> Thanks<br>
>><br>
>><br>
>><br>
><br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div>