How to add a button to enable/disable an addon feature to a category

Hello friends!
I’m creating an addon (this addon adds a product input info/note feature), but now I just add a new tab in the new product creation page and have to turn it on every time I create a new product. Now is there a way I can create a setting for a category so that when I create a product in that category, that feature is applied to the product in that category.
Any help, thanks.

It is required to make ajax request on each category change and hide/show new field according to the received request.

2 Likes