Hi, I created a webform and set it as block. The problem is, if one field is required field and user accidentally click submit, it redirects to original webform/node. How to prevent not to go back to orginal webform/node when user accidentally submit before fill required field?

Comments

torotil’s picture

Title: How to prevent not to go back to orginal webform/node when user accidentally submit before fill required field? » Don't go to the node full view if there are validation errors.
Category: Task » Feature request
Priority: Major » Normal

An easy way to achieve this would be to use webform_ajax. If you do the user always sees the same page regardless of what happens to the form.

The module is kept rather simple. It currently doesn't manipulate the form at all.

Since we're using webform_ajax practically everywhere this doesn't have a high priority for us. I'm happy to review patches though!