希望在 Json 中集成按钮与块 [slack]

问题描述

我希望在 slack 中使用 modal 将按钮与块 id 集成,到目前为止还无法成功集成,不确定我在这里遗漏了什么,我也是 JSON 的新手,所以肯定可能会遗漏一些东西小在这里。所以基本上当有人点击评论按钮时,它应该弹出另一个表单。如果有人可以在这里提供一些意见,我将不胜感激。提前致谢

几乎可以在这里完成测试 - https://app.slack.com/block-kit-builder

"blocks": [
        {
            "type": "section","text": {
                "type": "mrkdwn","text": "Hello,Assistant to the Regional Manager Dwight! *Michael Scott* wants to kNow where you'd like to take the Paper Company investors to dinner tonight.\n\n *Please select a restaurant:*"
            }
        },{
            "type": "divider"
        },{
            "type": "section","text": "*Farmhouse Thai Cuisine*\n:star::star::star::star: 1528 reviews\n They do have some vegan options,like the roti and curry,plus they have a ton of salad stuff and noodles can be ordered without meat!! They have something for everyone here"
            },"accessory": {
                "type": "image","image_url": "https://s3-media3.fl.yelpcdn.com/bphoto/c7ed05m9lC2EmA3Aruue7A/o.jpg","alt_text": "alt text for image"
            }
        },{
            "type": "actions","elements": [
                {
                    "type": "button","text": {
                        "type": "plain_text","text": "Review","emoji": true
                    },"value": "click_me_123","title": {
                        "type": "plain_text","text": "hello world"
                    },"submit": {
                        "type": "plain_text","text": "Submit"
                    },"blocks": [
                        {
                            "type": "input","element": {
                                "type": "plain_text_input","action_id": "ml_input","multiline": true,"placeholder": {
                                    "type": "plain_text","text": "If you need help,please review it here detail"
                                }
                            }
                        }
                    ]
                }
            ]
        }
    ]
    "type": "modal"
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)