# Create a button in plugin configuration and perform action on click

**URL:** https://forum.shopware.com/t/create-a-button-in-plugin-configuration-and-perform-action-on-click/67352
**Category:** International (English Only)
**Tags:** programming
**Created:** [2. Juni 2020 um 10:54 UTC](https://forum.shopware.com/t/create-a-button-in-plugin-configuration-and-perform-action-on-click/67352 "2020-06-02T10:54:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mohsin94j](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@mohsin94j](https://forum.shopware.com/u/mohsin94j)
#### Post date: [2. Juni 2020 um 10:54 UTC](https://forum.shopware.com/t/create-a-button-in-plugin-configuration-and-perform-action-on-click/67352/1 "2020-06-02T10:54:58Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![simkli](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/simkli/32/13124_2.png) [@simkli](https://forum.shopware.com/u/simkli)
#### Post date: [2. Juni 2020 um 11:00 UTC](https://forum.shopware.com/t/create-a-button-in-plugin-configuration-and-perform-action-on-click/67352/2 "2020-06-02T11:00:22Z")

</div>

There’s an article covering exactly that topic&nbsp; ![Wink](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/b3785da0cbf2c8566cb535dcf55b2730b5224899.png "Wink").&nbsp;  
It adds a button to the plugin configuration which sends an ajax request to test the api credentials. Check it out:&nbsp;[&nbsp;Testing communication with external apis](https://developers.shopware.com/developers-guide/plugin-guidelines/#testing-communication-with-external-apis)

---

<div class="post-metadata">

### Author: ![mohsin94j](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@mohsin94j](https://forum.shopware.com/u/mohsin94j)
#### Post date: [2. Juni 2020 um 11:40 UTC](https://forum.shopware.com/t/create-a-button-in-plugin-configuration-and-perform-action-on-click/67352/3 "2020-06-02T11:40:18Z")

</div>

Yes i found that later on that it was exaclty same thing i am trying to acheive.&nbsp; 😃

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

&nbsp;

Thankyou so much by the way!&nbsp; ![Smile](https://forum.shopware.com/plugins/CKEditor/plugins/smiley/images/smile.png "Smile")
