1

I am trying to add the site contact form in popup using Popups API - Drupal 6.x-2.0-beta0 module. In popups_test.module popups/test page I am able to add the link contact like following

function _popups_test_popups() {
  popups_add_popups();
 $output .= '<li>'. l("Contact Us", 'contact',
               array( 'attributes' => array('id' => 'test-popup','class'=>'popups')));
return $output;
}

Everything is working fine.

The same thing I am trying to add in a block like following

<?php
popups_add_popups();
print l("Contact Us.", 'contact', array('attributes'=>array('class' => 'popups')));
?>

Using this the popup is opeing and facing following issue, 1. when I submit the contact form without enter any information the popup is disappearing. Anyone came across the same issue? Any help will be appreciatable

1 Answer 1

1

I have did some analysys and changed the following code its started working

$settings['popups']['originalPath'] = $_GET['q'];

//Replaced with following code

$settings['popups']['originalPath'] = 'popups/test';

There is a function in popups.js which will check the end point of the form. Not sure exactly the cause of the issue.

 return done = (path === Popups.originalSettings.popups.originalPath);

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.