- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
05-16-2023 01:17 AM
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?
05-16-2023 06:33 AM
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()
05-16-2023 06:33 AM
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()
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!