-
Notifications
You must be signed in to change notification settings - Fork 109
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
Can I fetch the response data from/to web service and show the result in chatbox? #47
Comments
Hi, Can you check the console for any js error when you run the conversation? Also, try defining the callback function |
Hello, I tried what have you suggested, but I couldn't get any js error. But console displayed 'completed' when the user submit the answer in the 'type your concern'. Also, I tried to put the ajax inside
|
Hmm, I think this is happening because at the moment the user answers the last question on your HTML the code checks to see if there is another question lined up, if there isn't it just submits the form (as you are doing an ajax request to then create a new question, there is really no question lined up at the moment the user sends the answer). To make what you need to work at the state of the code right now, you will have to use the other way of building the form -- check the |
@User0123456789 Did you ever manage to solve this? I am trying something similar and I am not getting it to work. I am at a point of giving up. |
Hello,
I'm new to this JQuery convForm.
Also, I am confusing of displaying the response from web service to chatbox and vice versa (pass the data to web service.
Inside the form, I have a select box which has a 2 options, each options have a corresponding dummy chat message. What I need is when the user reach to the question with 'Type your concern', the data will pass in web service and get the real data chat message.
I can't get the response data fetch from/to the web service when the user reached to 'Type your concern', what is currently happening is the chatbox reload itself when reached to 'Type your concern' and everything was cleared.
Please help me.
JS:
Here's the form look like:
The text was updated successfully, but these errors were encountered: