Fileds in Project: Public Self-registration to pull through to Third-Party details

Dear Dolibarr Friends
I have been playing around on Dolibarr with a few minor projects and happy to help and assist other users with solutions.

BUT, today, I need your help.

In the Project module – Public Self-Registration I would like to add a field – Passport number. I want that field to be pulled through when a third-party is automatically created.

I know how to add additional fields, but I just dont know how to programme the field to be pulled through to the Third-party details.

Kindly provide me with insight on how to do that.

Regards

Js

Hello,

Passport number in the third party module is an additional-filed right ?

If yes, then on project you need to declare a computed extra filed with this kind of formula :

(($reloadedobj = new Societe($db)) && ($reloadedobj->fetchNoCompute($obj->fk_soc ? $obj->fk_soc : $object->socid) > 0)) ? $reloadedobj->array_options['options_passport_number'] : 'Not declared'