---
title: "How to Send a Message to a Slack Channel from a WordPress Form?"
url: https://qa.nexterwp.com/docs/send-a-message-to-a-slack-channel-from-a-wordpress-form/
date: 2025-04-17
modified: 2026-04-14
author: "Aditya Sharma"
description: "Want real-time alerts in Slack whenever someone submits your WordPress form? By connecting your form to a Slack channel, you can instantly notify your team, track leads, or manage support..."
image: https://qa.nexterwp.com/wp-content/uploads/2025/04/send-a-message-to-a-slack-channel-from-a-wordpress-form-1024x519.jpg
word_count: 484
---

# How to Send a Message to a Slack Channel from a WordPress Form?

## Key Takeaways

- Connects the Nexter Blocks Form block to a Slack channel for real-time alerts on WordPress form submissions.
- Requires a Slack User OAuth Token and a Channel Name to send messages to the selected Slack channel.
- Utilizes the Action After Submit tab in the Form block settings to configure Slack notifications with the User OAuth Token and channel name.

Want real-time alerts in Slack whenever someone submits your WordPress form? By connecting your form to a Slack channel, you can instantly notify your team, track leads, or manage support requests without missing a beat. 

With the Form block from Nexter Blocks, you can easily connect a Slack channel to your WordPress form.

*To check the complete feature overview documentation of the Nexter Blocks Form block,* *[click here](https://qa.nexterwp.com/docs/add-a-form-in-wordpress/).*

***Requirement  - This block is a part of the Nexter Blocks, make sure it's installed & activated to enjoy all its powers.***

[LIVE BLOCK LINK](https://qa.nexterwp.com/nexter-blocks/blocks/)

## Learn via Video Tutorial

https://www.youtube.com/watch?v=XSN9mE22zxE

For this, you must have a Slack User OAuth Token and a Channel Name.

### Get a Slack User OAuth Token

[Create an account in Slack](https://slack.com) if you don’t already have one. Once you are logged into your account, follow the steps - 

> *Note: You must have a workspace in your Slack account; if not, then *[*create a workspace in Slack*](https://slack.com/intl/en-in/help/articles/206845317-Create-a-Slack-workspace)*.*

1. Go to the [Slack API](https://api.slack.com/).

2. Click on **Your apps** in the top menu.

![](https://qa.nexterwp.com/wp-content/uploads/2025/04/slack-oauth-1.png)

3. On the next page, click on the **Create an App** button.

![](https://qa.nexterwp.com/wp-content/uploads/2025/04/slack-oauth-2.png)

4. It will open a pop-up; click on **From scratch**.

![](https://qa.nexterwp.com/wp-content/uploads/2025/04/slack-oauth-3.png)

5. In the next screen, add your app name.

6. Then select the appropriate workspace and click on the **Create App** button.

![](https://qa.nexterwp.com/wp-content/uploads/2025/04/slack-oauth-4.png)

7. In the Settings page, click on **OAuth & Permissions** from the left sidebar.

![](https://qa.nexterwp.com/wp-content/uploads/2025/04/slack-oauth-5.png)

8. In the OAuth & Permissions page, scroll down to the Scopes section. In the **User Token Scopes** section, add the necessary scopes. For example, to read messages, add ***channels: history;*** to post messages, add ***chat: write***.

9. Then scroll up to the page and click on the **Install to (Your Workspace Name)** button.

![](https://qa.nexterwp.com/wp-content/uploads/2025/04/slack-oauth-7.png)

10. If you are the admin of the workspace, then just click on the **Allow** button, and your app will be installed.

![](https://qa.nexterwp.com/wp-content/uploads/2025/04/slack-oauth-8.png)

On the next screen, you’ll see your User OAuth Token; copy it into a notepad.

![](https://qa.nexterwp.com/wp-content/uploads/2025/04/slack-oauth-9.png)

### Find a Slack Channel Name

In your Slack app, all the names under the **Channel** dropdown are channel names. A Slack channel name starts with #, so copy the channel name where you want to send the messages.

![](https://qa.nexterwp.com/wp-content/uploads/2025/04/slack-channel-name-1.png)

### Use the Form Block

Now, add the Form block to the page and select the appropriate form type, then follow the steps -

1. Add the required form fields and customize them as per your requirements.

2. Then select the main form block and go to the **Action After Submit** tab and select **Slack **from the **Options** dropdown.

3. Now you’ll see the **Slack **tab, open it.

4. Then add your User OAuth Token and the channel name where you want to send the message in the **User OAuth Token** and **Channel Name** fields.

> *Note: Make sure to add the channel name with # in front.*

Now, when a user fills out your form, it will add a message in your selected Slack channel.