Closed (fixed)
Project:
Webform
Version:
6.x-2.9
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Mar 2010 at 23:15 UTC
Updated:
23 Mar 2010 at 15:08 UTC
Is there any way to append "automodal=true" to the form action of a submit or pagebreak?
I have a multistep webform loading nicely into a modal frame, but upon submit (Next Page), it loads the entire next page into the modal.
However, if I edit form action in firebug and append "?automodal=true" to the form action, it works.
Anyone know a way to do this or have a multistep webform working with automodal?
Comments
Comment #1
quicksketchYou can do this by implementing hook_form_alter() and modifying the action property. Either that or you might consider simply putting
http://example.com/something?automodal=trueas your redirect URL, that should redirect the user to a page containing that in the URL, and close it. As noted in the submission guidelines, support for custom coding is not provided in the Webform issue queue, so if you go the hook_form_alter() route, you're on your own.Comment #2
winstonford commentedQuicksketch, thanks again for solid reply. I just realized that there is no such thing as automodal=true. I guess I invented it by accident. Automodal can only be invoked by an
<a>class, not a url. If there's any way to delete or bury this post, it might help to not confuse anyone.Comment #3
quicksketchWell we can close it and that takes it out of most listings. Thanks for the followup.