I'd like to get greybox to display a form programmatically, when using drupal forms for a remote action i.e.
.....

$form['#action'] = 'https://a.remote.site ';
....

I have tried various ways to make this work but no success... e.g. adding prefix & suffix tags, ussing target="greybox", etc

'#prefix' => '

',
'#suffix' => '

',

Please do you have any ideas on how to do this?

Comments

Gurpartap Singh’s picture

Category: feature » support
Status: Active » Fixed

Create your form at some drupal path and open that drupal path in greybox. Greybox can only open a webpages/links and has nothing to do with form integration, etc.

Gurpartap Singh’s picture

I get your point now, upon a re-read.

If the form is using GET method, you can compile the url on submit and fire the GB_show(caption, url) function. See greybox.js for reference.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.