How to know the name of a buttom

Hi guys, i have a form with a buttom named “print_doc”, i need hide this buttom with a macro.
i have tried much ways but it does not works.

My question is if SC can show properties of this button for be used with macros, in this case i need to know the name or code.
sc_btn_display(‘print_doc’, ‘off’);

The idea is not use Inspect element from browsers.

If I understand correctly what you ask, when you create a button you can give a name. Once created, to know the name just open the tree “buttons” on sidebar, en the caption you see there, is the name of the button, and label is inside the button config.

I understand you GIU. My problem was i created a button and the button’s name had spaces in blank. Then is not easy know if i replce spaces with “_” or “-”, etc.
I think is good idea in properties know the current name of button. for be used with PHP and Javascript. :rolleyes:

Yes, The name changes for javascript with other name and sequence. Anyway for new users of SC is dificult know it name.
Thanks you Giu for your reply. !!!

But its easy. Just on creation put a proper name and later change label, its the way I do.

Anyway could be interesting to have a way to change the name once created