Active
Project:
Popup
Version:
7.x-1.0
Component:
Documentation
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2012 at 16:49 UTC
Updated:
7 Aug 2018 at 12:06 UTC
Jump to comment: Most recent
How can I get an edit form to appear as a popup when a user clicks on a link created by views?
Comments
Comment #1
gabrielo commentedSame question
Comment #2
Leoo commentedHello, managed to do it adding a nid attribute and tweaking (for the time being) _popup_form function in popup.api.inc:
The problem then is how to override the submit button on the node edit form, to work with AJAX. I tried the below to stop the redirect, unfortunately it still redirects the page on which the popup is open to the node edit page..
L
Comment #3
Scheepers de Bruin commentedThat is a cool idea for a feature... I'll look into it, thanks!
Comment #4
Leoo commentedFor the popup link integration in Views see http://drupal.org/node/1760306
L
Comment #5
Leoo commentedGot it to work locally, even if I dont know how to save the node changes using AJAX (For the time being, when I save, the page refreshes).
To get the save button to work in production, I had to comment the action attribute override in popup.js
l 68: // thisForm.attr('action', '');
Comment #6
Leoo commentedStill on this issue. For the time being, there are two things i cannot manage to do: after opening an edit form under popup AJAX format:
* I cannot find a way when I press 'submit' to close the popup using AJAX: right now I close my popup window and reload the entire page.
* Moreover, I have problems using AJAX-based options on my form opened by AJAXified Popup. As an example, i want to use the nice Autocomplete Deluxe module (http://drupal.org/project/autocomplete_deluxe) to fill Select/Autocomplete lists. This works on a node edit, but if I open the node edit form using Popup, I can not see anymore the Select/Autocomplete options for my field edited.
Any tip on how to manage to integrate AJAX-based options on forms loaded using AJAXified popup?
Thanks,
L
Comment #7
Leoo commentedComment #8
vb_swapnil commentedI create a View and I want to show webform block as a popup after clicking on email which i display in table
Please check this url http://shunyatec.com/demo/excitor/resellers
Comment #9
ishwar commentedComment #10
Scheepers de Bruin commentedOk SO it's best to do a form like this:
Comment #11
Scheepers de Bruin commentedThis works better:
Comment #12
flyingyoda51 commentedI am trying to display a link to add, edit and delete a node each in a popup. I can't figure out what to do.
Comment #13
Scheepers de Bruin commentedYou could try:
Comment #14
srikanth.g commentedView with edit link and Lightbox module is working for me in Frontend theme.