When using Dolibarr hooks is it possible to place generated button (for example the “Get Identifier”) next to the field “Identifier” we created? If so, how would I do it since right now I am using the formObjectOptions
hook and it executes before the other field generation.
Move or create button from hook position to expected destination.
Identifier is added by complimentary attributes.
public function formObjectOptions(&$parameters, &$object, &$action,$hookmanager){
echo '<input type=button value="Get Identifier" onclick="Hello()">';
return 0;
}
Suggest most common way to add button to expected place from module source code, without modifying main source files. I have dumb idea use jQuery and move object on page load but I believe there are more common way.