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

quicksketch’s picture

You 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=true as 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.

winstonford’s picture

Quicksketch, 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.

quicksketch’s picture

Status: Active » Closed (fixed)

Well we can close it and that takes it out of most listings. Thanks for the followup.