Questions tagged [slack-block-kit]

Block Kit is a UI framework for Slack apps that offers a balance of control and flexibility when building experiences in messages and other surfaces. Customize the order and appearance of information and guide users through your app's capabilities by composing, updating, sequencing, and stacking blocks — reusable components that work almost everywhere in Slack.

172 questions
0
votes
1 answer

Why is Slack not formatting my message payload?

I have built a message to be returned in slack from a payload generated in a js module. The message was formatted in block kit builder as: { "blocks": [ { "type": "section", "text": { "text":…
Jim Burke
  • 251
  • 3
  • 14
0
votes
1 answer

Slack API button: How to present all texts in one button?

I'm using slack bot to send messages to users. There are some buttons in the message which looks like: One issue is that when the text body on the button is too long, it will be hidden. Is there anyway that I can make all text present on the…
Rachel Dong
  • 179
  • 1
  • 3
  • 11
0
votes
1 answer

Slack incoming webhook won't send @channel or @here. I'd like to notify everyone in a channel using a bot message

HELP!!! I can't get or to work using the Block Kit Builder. Would like to notify everyone in a channel when the bot sends a message. image of issue Below is the code i'm using. { "blocks": [ { "type":…
mrnicegvy
  • 1
  • 2
0
votes
1 answer

trigger an action (or slash command) from a link

I'm trying to use a link (in a mrkdwn) to work similar to a button, for design purposes (can integrate it better with text). So when the user clicks that link, I want it to trigger an action or a slash command (along with auth data), so I can open a…
alex-i
  • 5,406
  • 2
  • 36
  • 56
0
votes
1 answer

How to prevent Slack modal from closing while clicking outside the modal area

Just what the title says. I have a Slack modal flow that involves a lot of fields. Accidentally clicking outside the modal area causes the user to lose all the entered data. How can I prevent this from happening? I would like to prevent the modal…
Adheesh
  • 13
  • 3
0
votes
3 answers

Is it possible to make Slack static_select a mandatory field in a modal?

When using static_select with no option selected by default, is it possible to make the selection of some option mandatory? So that user can't submit the modal without making a selection.. Thanks in advance!
Alexey Buistov
  • 209
  • 2
  • 4
  • 11
0
votes
1 answer

SLACK-MODALS Custom Leave/permission approval or deny custom app

Can anyone please help me by giving me an idea on how to build a custom slack app for leave/permission approval or denial. Any suggestions will very useful.Thank you.
MONICA
  • 17
  • 6
0
votes
1 answer

Slack Bolt App: Options body view state is not updated like actions body view state

I am trying to implement dependent external selects inside a modal but I am having problems passing the state of the first dropdown to the second. I can see the state I need inside the app.action listener but I am not getting the same state inside…
Crash667
  • 343
  • 2
  • 16
0
votes
1 answer

Slack API: How to add user avatars in message when they click a button?

I think there's something in block kit documentation I haven't read yet, but I'm curious how one could display user avatars in a block like shown in the sample image below? Cheers.
Nahua Kang
  • 366
  • 1
  • 7
  • 19
0
votes
1 answer

Making slack modal hitting Request URL only during submit

I'm currently making a modal in slack via slack app (modal example below) Based by their docs and instruction, each time any of the sections are changed it will send api request to my defined URL. Are there any options that can disable that so…
DemiDust
  • 313
  • 1
  • 3
  • 19
0
votes
1 answer

How can post images using slack-api in gallery view instead of slack formatting them vertically?

so my question is actually self-explanatory, if you use the slack client and post a message with 1 or more images, slack displays them in a gallery view, but when you try do achieve this using the api, this doesn't seem to be working, slack starts…
0
votes
2 answers

pass slack blocks as python variables or function returns

here is some context, im staring to use the slack BOLD SDK for python and while the guide is great... posting those gigantic block of code for the block kit part is a mess so I want to create a new class/function and import it .. so, instead of…
Santos
  • 177
  • 1
  • 1
  • 15
0
votes
1 answer

Callback triggered by interactive radio button not working in Android/iOS App but does work on Desktop App

Hello dear slack community, I was curious if someone also has noticed the following bug with the Slack Interactivity API. Basically I created some radio buttons with the https://app.slack.com/block-kit-builder, sent them via my PHP app and they…
Kevin Pfeifer
  • 37
  • 1
  • 5
0
votes
1 answer

Java Slack Bot: How to iterate inside slash command?

I have a slash command that when called, prints a list of teams (which are stored in a List) with checkboxes next to them. I have no problem creating the checkboxes with a team name next to them, but only when the team name is hardcoded in. How can…
0
votes
1 answer

How can I submit the results? Slack bolt-js, JavaScript

The thing is that I have this first piece of code in which it sends me two inputs, one to add an appointment and the second one to delete it. I leave an image below this code so you can visualize it. @Command('/echo') async appontmentCommand({…
Mustapha
  • 1
  • 3