Custom form field types anavailable in plugin backend when plugin disabled

by Victor   Last Updated April 16, 2018 13:10 PM

I've created a plugin and added a couple of custom fields to its backend. For that I followed the indications from the Joomla docs. I extended for example JFormFieldList to get a dropdown list of options.

My fields work fine if the plugin is enabled. But when the plugin is disabled, the list is not rendered. I get just a basic text box.

Same problem with another custom field that should display a button. The button appears if the plugin is enabled but if it’s disabled, I get the same basic text box instead.

I assume therefore that the problem is that the php of the custom fields is not run when the plugin is disabled. Is there a way around that?

Tags : custom-field

Related Questions

Custom form field not working on server

Updated April 26, 2017 10:10 AM