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

lucia digirolamo l.digirolamo at websonica.net
Wed Jul 18 10:19:44 GMT 2018


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