Using Slack Block Builder renders "submit" button that is unwanted and not found in the JSON Blocks

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Using Slack Block Builder renders "submit" button that is unwanted and not found in the JSON Blocks

L3 Networker

Hello all,

I am developing a use-case in which a message is sent to a Slack channel containing a Slack block using Slack Block Builder. The message is sent and then received on the Slack Channel but there is a submit button which is appearing even though it is not defined in the Slack Block JSON. How can I remove it ?

The use-case has an accompanying Ask Task that is completed when the user clicks Yes or No but the problem is that when one of the buttons is clicked it deletes the message. Is there a way to make the message persistent but the buttons should disappear?

Cortex XSOAR 

 

1 accepted solution

Accepted Solutions

L4 Transporter

Hi @michaelsysec242 ,


How are you making the data collection possible without the Submit button? 

 

It seems that SlackBlockBuilder adds Submit button by default and provides no option to disable it. As a workaround, you can Duplicate the SlackBlockBuilder Automation script, comment out the below line, and use the modified version. Please be informed that this is only a workaround and may require testing in your use case to prevent any workflow failure.


code to comment out/remove:  self._add_submit_button()

View solution in original post

2 REPLIES 2

L4 Transporter

Hi @michaelsysec242 ,


How are you making the data collection possible without the Submit button? 

 

It seems that SlackBlockBuilder adds Submit button by default and provides no option to disable it. As a workaround, you can Duplicate the SlackBlockBuilder Automation script, comment out the below line, and use the modified version. Please be informed that this is only a workaround and may require testing in your use case to prevent any workflow failure.


code to comment out/remove:  self._add_submit_button()

Hello @gyldz ,

thanks a lot for your assistance. It works like a charm!

 

  • 1 accepted solution
  • 1016 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!