Add custom JavaScript to hide buttons in Kibana

While creating a new Dashboard in Kibana, we can get below screen.
I wish to hide the button i.e, "Controls"

Hi @Manoilayans,

Can you explain why you want to find the controls button?

It's not something I've done myself. You could try creating a Kibana UI plugin to hide the button. Although this would need to be maintained between versions.

Alternatively you would need to clone, run and change the code yourself. But that is a bigger undertaking to maintain updates to Kibana with upgrades.

Hope that helps!

1 Like

@carly.richmond Thanks for responding..

The purpose of this request is to limit the user to use Dashboard creation using existing library only. Also, if we allow the user to click "Controls" which allows user to view the index patterns (Data views) and its fields belongs to it.

We are protecting access to the user not to view the list of Index patterns present in the System. So, I wish to hide the "Controls" button in the New Dashboard visualization screen.

Hope this explanation helps you to understand our request.