Hi I have a site which uses the webform contact form module. I want to have a button on my site which when you click on it a lightbox opens with the contact form? Does anyone know the quickest why of doing this in Drupal 7?
This seems to be a million dollar question. I can only find 1 tutorial online which only allows you to show a whole page. Where as I want to just show the form div... I am really stuck
colorbox is better and faster, If I remember correctly you can just add colorbox class to the a href element pointing to the webform for it to open in a colorbox. But the real fast and proper way is to utilize ctools + form api to open the contact form in a ctools popup modal, I think there is a sample for this in ctools example module.