Closed (fixed)
Project:
Popup
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2014 at 14:54 UTC
Updated:
22 Mar 2014 at 23:21 UTC
Jump to comment: Most recent
I'm trying to show a view with exposed forms within a popup, the forms are shown but when I apply the filter, nothing happens.
if I use ajax, I'm redirected to the page view after applying the exposed form.
any help?
| Comment | File | Size | Author |
|---|---|---|---|
| example.jpg | 57.26 KB | reych9 |
Comments
Comment #1
tunicI've tested a View with exposed filter in a popup and works as expected. You must enable the View's Ajax mode. Check you don't have any jQuery errors.
Comment #2
tunicOops, fixing category.
Comment #3
reych9 commentedI am doing this:
I am trying to insert a popup into a form using hook_form_alter() and definitely don't work for me.
Did you tried that?
thanks
Comment #4
tunicI think the problem is you add the view in the alter.
Check this FAPI Workflow Illustration:
https://drupal.org/node/165104
The alter is executed in the prepare stage, so when you submit the filter the alter is not run (because form is in cache, see ajax_form_callback on the right side of the picture), hence the view is not updated.
Try to add the view using a after_build function (in the build stage).