If i use simple dialog link in a view for example to add a referenced content that would show up in the view results, how to make the view page from where the dialog link was called refresh after submitting the dialog form to see fresh records?
A similar request and solution was posted in the automodal module page here: http://drupal.org/node/711624 but unsure if the same type functionality is possible with simple dialog?

Comments

drclaw’s picture

Status: Active » Postponed

Right now, the easiest way to make this work would be to have the form in the modal redirect to the parent page. This could be done through a hook_form_alter, or, if you made the form yourself, through the form's submit handler.

The way automodal does it is nice. It uses Modal Frame's forms api support to override any form submit redirection and reload the parent page. Currently, Simple Dialog can't do this and I don't plan on adding it to the 1.x version of the module. However, I have plans for the 2.x version that will have more forms api support and will include something like what you described.

tatewaky’s picture

I'm not sure to understand this, would you post an example piece of code explaining this?