By m@rtijn on
I got a Webform in a Block using the Webform Block module. Is it possible that the confirmation is shown in the same Block instead of a Webform confirmation Page?
I got a Webform in a Block using the Webform Block module. Is it possible that the confirmation is shown in the same Block instead of a Webform confirmation Page?
Comments
I would also love to know how
I would also love to know how to do this
This would be fairly
This would be fairly difficult to implement because a block can be on any page so getting the user back to the same page they sent the form from might prove a challenge. Even if you overcome that, the confirmation message itself is being displayed with Template Variable $messages which is usually above or near the main site content.
What I usually do for Webforms in Blocks is either redirect to a custom confirmation page or I validate the form using AJAX and then when its successfully submitted I present the confirmation as a Javascript Alert.