Hi,
I am struggling with an issue I am sure it's a trivial for those more experienced with Dialog, CTools, jQuery, etc.
I have a form that has to be reloaded and displayed in a dialog, after being submitted and all submit callback functions were executed successfully.
So, instead of:
- opening a form in a dialog,
- completing the form,
- submitting the form,
- displaying status messages from a submit callback functions inside the dialog,
- closing the dialog,
- reopening the dialog the same way as I did first time.
I wanna do this:
- opening form in a dialog,
- completing the form,
- submitting the form,
- displaying status messages from a submit callback functions inside the dialog along with the same form reloaded (sort of like a regular page refresh) after submission,
- continue to use the form in the dialog if needed,
- closing the dialog.
Many thanks.
Cheers.
Elvin.
Comments
Comment #1
drewish commentedAs long as both forms are "AJAX-able" then you shouldn't have any problem. In your submit handler you can do something like: