I went through the Modalframe and it contributed modules documentation but couldn't find the reference on how to open a webform or contact form in Popup window. I'm able to open for example a block settings in modal frame but that's only for the administrator. I want to provide a functionality where an anonymous user can click on link or button to open the Contact Us form in popup window and after submitting user remains on the current page, similar to what have shown in this video:
http://www.youtube.com/watch?v=HJHWdgJZJWI
Thanks,
gkap
Comments
Comment #1
wavesailor commentedHi - I'm also keen to know how to do this for the Contact-Us page.
Comment #2
markus_petrux commentedI have written and shared a few modules that use the Modal Frame API where you can find several examples on how things can be done. Others have also used the API for their own modules and implementations. I have also tried to document the API in the project page, and a handbook with a quick How-to to help people start working with this API.
I cannot provide step by step instructions on how to code with the Modal Frame API to open this or that to cover all possible pages that one may want to open on a modal frame. It is materially impossible. If you need further assistance, please use the development forums or hire a developer with the proper skills.
Comment #3
g.k commentedAfter posting the issue, I realized that it's an API and not actual implementation. I left it open just in case if anybody has already implemented this particular scenario and can provide a reference.
Thanks,
Comment #4
vacilando commentedAs the above video shows, Popups API (http://drupal.org/project/popups) allows opening a form in an overlay just by adding the class "popups" to the link.
I think that it would be useful to indicate here whether it is possible to open forms in overlays just as simply with Modal Frame API (without the need for invoking the API programmatically). If so, what is the class or other property. If not, is such a feature planned (it's clearly extremely useful for quick use).
Comment #5
serguitus commentedtry http://drupal.org/project/automodal. It has a similar functionality as popups but with modal frame api.