During my module development i want to shoe a form in a small pop up box this pop up should come when we click the submit button of another form.how to do this ?pleas help me. anything is welcome.
thanks in advance


goofus’s picture

Drupal has a great facility for generating forms called the Form API (FAPI). Here a couple links:



Drupal also comes bundled with the javascript library JQuery. You can use JQuery to display a popup window. You add custom javascript (including extending jQuery) with the Drupal API method drupal_addj_js detailed here: http://api.drupal.org/api/function/drupal_add_js

There is also a good overview of Drupal and javascript here:

One last suggestion. It's worth downloading and going through the module examples located here:

Hope that helps, or at least gets you started :) .

Thinking is the best way to travel.

lipinponmala007’s picture

Thank you very much