space10-community / conversational-form

Turning web forms into conversations
https://space10-community.github.io/conversational-form/
MIT License
3.8k stars 776 forks source link

Form Submit functionality issue. Should be a simple fix. : ) #227

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hello and thank you for the wonderful application!

I've set this up with formspree.io to receive automatic emails with the form data. However, I'm only able to submit the form correctly when typing and sending an additional message after all the fieldsets are completed. I basically just need to understand how to correctly submit the form, and then afterward give some conclusion text to the user. I tried to replicate the example in the appearance section, but no luck.

Everything else is working great!

Here's the Wordpress page with the code.

v 0.9.71 Chrome 64

Please forgive me if this is in the documentation--I couldn't find it.

Thank you very much!

ghost commented 6 years ago

Anyone able to help? Thanks much. : )

jenssogaard commented 6 years ago

Hi @dolanb12. Great that you are using Conversational Form. A few ideas to can improve your implementation.

  1. Using an AJAX request to submit data to formspring so the user is not redirected. This requires that you use a custom submit callback and here is someones method for posting to formspring
  2. The last 3 messages can be implemented using cf-robot-message-tag. This is new in 0.9.80 and heres a link to the documentation.
ghost commented 6 years ago

Saw the close, but wanted to give a late thank you for the help!

Formspree decided to block AJAX callbacks last month, but I can still redirect users to a confirmation page.

=)

jenssogaard commented 6 years ago

@dolanb12 you are welcome. Yeah, I think you have to be a premium subscriber of Formspree now to take advantage of AJAX requests. Glad it worked out though.