I have created the webform with two fields. When I submit the webform, its redirecting to the submission page.

Now, I want to display the webform submission page as pop up.

Thank you message and the "Back to form" should display in the pop up.

I have tried up with the NG lightbox to display the message. But its redirecting to the page with the pop up function.

How to achieve this thing, Please guide me.

1 Answer 1


It is very difficult (but not impossible) to target a lightbox/modal when submitting a form because the posted database has to be sent to the server.

I recommend following the below ticket on Drupal.org which could help you solve your problem using Ajax.

Allow Webforms to be submitted using AJAX

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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