1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Webform Module contact form open in Lightbox

Discussion in 'Drupal' started by cocoonfx, Aug 14, 2012.

  1. #1
    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?
     
    cocoonfx, Aug 14, 2012 IP
  2. cocoonfx

    cocoonfx Peon

    Messages:
    21
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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
     
    cocoonfx, Aug 20, 2012 IP
  3. shubhamkumarg

    shubhamkumarg Greenhorn

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    you can use colorbox or lightbox module for this. Thank You!!
     
    shubhamkumarg, Sep 1, 2012 IP
  4. duckz

    duckz Active Member

    Messages:
    245
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    68
    #4
    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.
     
    duckz, Sep 5, 2012 IP