Create a button in plugin configuration and perform action on click

Hi.

Is there any way i can create a button in plugin configuration and send a request to a controller? Basically i want to test if API credentials are valid or not. But i need this button to respond or make a request to controller. But this button should be in plugin configurations.

Any ideas?

There’s an article covering exactly that topic  Wink. 
It adds a button to the plugin configuration which sends an ajax request to test the api credentials. Check it out:  Testing communication with external apis

1 Like

Yes i found that later on that it was exaclty same thing i am trying to acheive.  :smiley:

I wanted to delete the question, but i thought it would help someone in future if the person searches forum first.

 

Thankyou so much by the way!  Smile