Move custom created/hooked control button to internal object

Hello,

When using Dolibarr hooks is it possible to place your 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.


Identifier is added by complimentary attributes.

public function formObjectOptions(&$parameters, &$object, &$action,$hookmanager){
        echo '<input type=button value="Get Identifier" onclick="Hello()">';
        return 0;
}

Please 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.
Thank you

No, hooks create / replace pieces of code, so the button is created where the hook is called.
I’ve never tried but I have an idea that working with css you can get the result you are looking for

Thank you mgribaudo
Solved problem using jquery to move objects.