Create Custom Button Next To Form Field

Great procedure but if I hide the buttons it doesn’t work for me.
With the buttons visible on the toolbar it works.
Does anyone have any suggestions
thank you