[Vtigercrm-developers] vtiger 7 - related quick create form for custom module - field not automatically filled in

lucia digirolamo l.digirolamo at websonica.net
Thu Jul 19 11:49:01 GMT 2018


So far I've been only able to understand that the quick create form is 
handled by the reference.tpl which populates the popupReferenceModule 
input based on $FIELD_VALUE. In my case, var=FIELD_VALUE 
value=$FIELD_MODEL->get('fieldvalue') is empty. How can I populate this 
value?



On 18/07/2018 12:19, lucia digirolamo wrote:
> Situation:
>
> when I go to organizations list and open an organization, I have 
> contacts icon in the related tabs menu. If I click on this icon I can 
> see the list of all the contacts associated to this organizations and 
> I can also add new contact. If I click on "add contact", the create 
> form already has the organization name field filled in and greyed out.
>
> - I have created a custom module with a uitype 10 field for 
> organizations, then I added my custom module to the organizations 
> module as a related module. My custom module is correctly shown among 
> the related icons in the organizations module (just as contacts does).
>
> - If I click on my custom module related tab inside the organization 
> module, I can see the list of all the records of my custom module 
> which have the organization name equal to the organization I am right 
> now. That is correct, it behaves exactly like the contacts module.
>
> - If I click on the ADD button, the create form opens but the 
> organization name is not already auto-filled in with the organization 
> name I currently am in. I'd like this to behave just like contacts, so 
> when I click on ADD, the create form already has the organization name 
> field filled in.
>
> How can I achieve this?
>
> Thanks
>
>
>



More information about the vtigercrm-developers mailing list