slackapi/bolt-js

How to build dynamic form

Closed this issue · 1 comments

I want to allow users to build dynamic form to handle support request in their slack workspace. I saw in documentation OpenForm functions but these seems to be triggered via workflow . Is there any way I can provide a modal to create dynamic forms like other polly does let u create questions type and all . Thanks

Hi @yashgandhi-32, thanks for asking the question!

OpenForm functions

It seems that you're trying to build a workflow app using our Dneo SDK. For future questions, please post them at https://github.com/slackapi/deno-slack-sdk/issues instead.

Is there any way I can provide a modal to create dynamic forms like other polly does let u create questions type and all

If you mean enabling your end-users to create a form without coding, there is no built-in feature for it. To achieve it, you can provide a modal form to ask an end-user to define their form and store the Block Kit deta in your database. It's not so simple. Polly has implemented the feature by crafting these steps in their app.

If you want to build a dynamic form in your code, this code example should be helpful to you! https://github.com/slack-samples/deno-code-snippets/blob/main/Block_Kit_Modals/functions/demo.ts

Let me close this issue here since this is the issue trracker for bolt-js apps. If you have follow-up questions, please post them at https://github.com/slackapi/deno-slack-sdk/issues instead. Thanks again for posting this!