Manage Forma Buttons from the script

Manage Forma Buttons from the script

How to set the Button Labels and hide the Forma Buttons (Submit and Reset) from the script, conditionally?
Is it possible?