#Writing form responses to variables

1 messages · Page 1 of 1 (latest)

soft jungle
#

Hi, how do I write the answers to the form into variables?

What I want to do: when you click on the button, a form is sent, after sending questions with Yes/No buttons appear, after the answer, 2 forms appear. Then it should all be combined into 1 Embed message...

plain heron
#

you can't chain send modals.

#

So you'd have to store the values from the first modal response, then have the user click a button to send the next one. Then combine the stored responses

shadow boneBOT
#

Okay, then can you tell me how I can implement it? I need to get answers to 10 questions...

#

And then declare them in Embed

plain heron
#

You'll have to use buttons in the modal interaction response to go to the next modal

shadow boneBOT
#

Well, that was my plan. 5 questions, then yes/no buttons (3 questions), then 2 Modal...

#

How can I write the answers into a variable for later use?

plain heron
#

save them somewhere, I guess.

#

maybe a bot attribute or cog that you can pass into the views/modals nd just keep adding data to