I've got a webform showing in a block which submits fine. However, if users forget to fill out a required field they are redirected to the actual webform node rather than the error messages showing in the block.

I noticed this commit:

Webform Block: September 24, 2010 13:44

Commit 4b08b96 on 6.x-3.x
by budda
Fixed redirection on form validation error

It looks like the problem I'm having. Is this something that will be fixed in the official release? I'm running version 6.x.1.2

Thanks!

Comments

gavinengel’s picture

nt

theoracleprodigy’s picture

I found using an older version of webforms it works perfectly.
If you use 6.x-3.11 it does not seem to have this issue but using version 6.x-3.12 webform blocks did not work on my system.

theoracleprodigy’s picture

After further testing the issue seems to be webforms 6.x-3.12 zen 6.x-2.1 and 6.x-1.2 of webform block or 6.x-1.1. The key seems to be the zen theme. Although the webforms 6.x-3.11 works perfectly with zen. Not sure what is the root cause of the conflict.

andrewc.swanson’s picture

I was able to work around this bug by changing the form action from the webform page to the page the form is intended to be on. Done with a hook_form_alter().

$form["#action"] = '/actual/page';

simone.girlanda’s picture

I got the same problem using 6.x-3.15.

andrewc.swanson: can you give more details on how you arrange the workaround?