Custom field on existing module

Hello
This is the situation: i have created a custom module, which contains some checklist templates. I want these checklist to be avalable to the Proposal modules, so its voices can be checked there, in a dedicated tab.
I added the tab as well, so now i want to add a custom field to the propal module, which may be a dropdown with the names of my templates. The selected template will then appear in my tab.
Still, i didn’t find a way to add a field to the propal module. I have read the following tutorials:

https://wiki.dolibarr.org/index.php/Module_development#Add_some_fields_into_existing_forms
https://wiki.dolibarr.org/index.php/Hooks_system

so i created a tab in my database with 2 columns (one for propal id and the other for template id). Still, the lack of clear instructions in the docs makes this hard. I figured out that there must be a hook that’s fired during form creation, but i can’t find it, if it exists. Trying to hook to “propalcard” from my module just results in instructions being executed right before the page template.
So, how am i supposed to add this custom field to propal, from my custom module? Thank you.

1 Like