I am using Webform (4.11). I have a 'simple' form with 2 fields that I would like to display in a modal dialog when the 'Apply' button is pressed.

So imagine I have a page with an apply button, and when the user selects this button, I need to know if they are an existing client (they are not logged in), and some other 'meta data' (second field).

Bottom line - I would just like to display the webform that has these questions, in a modal dialog.

I know I can create a custom module, to create a custom form, and use CTools to show the form in a modal window, but then I lose all the functionality that comes with the Webform module.

1 Answer 1


Use modal form module to load into modal window. Create link using modules custom method after check user is loggedin.

$links[] = ctools_modal_text_button(t('webform'), 'modal_forms/nojs/webform-path', t('Webform via modal'),  'ctools-modal-modal-popup-small');

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.