Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically adding answers [from] filling into a custom form #59

Closed
Gigiart opened this issue Jul 31, 2019 · 1 comment
Closed

Dynamically adding answers [from] filling into a custom form #59

Gigiart opened this issue Jul 31, 2019 · 1 comment

Comments

@Gigiart
Copy link

Gigiart commented Jul 31, 2019

How can I insert a user answer after filling a form from the dialog?

I have this question: "Please add your full details" -> Yes/ No. If Yes -> callback a function that opens a dialog form.

I was able to render the result as a bot question with no answer, but I want the result of that form to be rendered as an answer from the user. Any idea how can I do that.

Thanks a lot for this plugin!

@eduardotkoller
Copy link
Owner

Hi there, sorry for the delay. As I said on the README, I can't maintain this anymore.

I can't really seem to understand what you need here. You can make select options call custom callback functions, and you can even use this to change the dialog, next questions, answer from the user, and basically anything. Callback functions pass the state machine underlying the logic and you can edit it the way you want.

If you want to know more, see #62 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants