9

I have a webform displayed as a block:

enter image description here

Is it possible to submit the form without refreshing the page, followed by a message saying the webform has successfully been submitted? If so, could someone guide me in the right direction?

Thanks!

9

Check out Webform AJAX module.

This module adds AJAX support to Webform (3.0 and above).

As a first step it focusses to simply add form AJAX paging and submit. Form submissions get ajaxified including prev/next pages. Especially for multipage forms, this leads to faster loading (less data transfer), better usability and finally smaller server load.

I think that may do what you are asking. Should then show up as options in form settings.

Form Settings

Also, be sure you are set to "no redirect"

redirect screenshot

  • The ajax response uses the horendous drupal_set_message. Seriously, it's ugly. – AlxVallejo Nov 25 '14 at 3:14
0

There is an option on the block configuration page to "Show all webform pages in block", that will do what you what you need.

See, attachment: enter image description here

  • 1
    Thanks! However I want the webform to be replaced by the confirmation message, now the page just reloads and I get an empty webform again. – Yassin Tahtah Nov 21 '13 at 8:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.