Closed mirianbatista closed 5 months ago
Hi @mirianbatista thanks for writing in 💯
Have you taken a look at our deno-issue-submission sample project, it is a good example of using the open form slack function
The following should open a form with a user dropdown
const inputForm = SubmitIssueWorkflow.addStep(
Schema.slack.functions.OpenForm,
{
title: "Submit a user",
interactivity: SubmitIssueWorkflow.inputs.interactivity,
submit_label: "Submit",
fields: {
elements: [{
name: "user_id",
title: "Select a user",
type: Schema.slack.types.user_id,
}],
required: ["user_id"],
},
},
);
Let me know if this helps
amazing!!!!! @WilliamBergamin, thank you so much for sharing this example, it was exactly what I needed!!
Question
Hello, I am trying to create a user select field in a workflow form, but I am having difficulties. I tried to make it similar to this one (ref):
But it didn't work out. I tried to make it similar to this one as well (ref, ref), but once again, no success:
I also tried searching for examples/references by looking up
user_select
/userSelect
/user select
in this repository and in deno-slack-api, but I really can't figure it out, can someone help me with an example?Context
What I am trying to do is this field that shows the users from slack: I am following the readme to create the function, workflow and trigger, and for the simpler fields the documentation works perfectly, but for this type of field, I couldn't find anything.
Environment
Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.