In our CiviCRM instance, the value of a some contact custom field can be retrieved by calling an external API.
So I implemented hook_civicrm_summaryActions. If the user clicks on a custom action I added, a popup form appears with the generated result (or error messages). The external API is called, and the result is saved in our custom field.
If the user then clicks 'OK', the form disappears, so the contact summary is shown again, but the value in the custom field is not updated until the user reloads the page in his browser.
Is anyone aware of a way to make the 'calling' page refresh after the user clicks 'ok'? Another option would be to replace the popup form by an ordinary full screen form (anybody knows how to do that for a summary action?), and redirect after the form has been submitted. Or maybe there are better ways to achieve my goal than with summary actions.
Any suggestion is much appreciated.