How do I know that a Plug-in or Bean is properly loaded?

How do I know that a Plug-in or Bean is properly loaded?

You can check the availability of a Plug-in or Bean by scripting the below methods.


Plug-in

if (plugins.plugin_name) { 

//Do your thing because the plugin is available

}


bean

if (forms.form_name.elements.bean_name) {

//Do your thing because the plugin is available

}