Forms3rdPartyIntegration_service CF7 Ajax
-
I am following the various samples I can find, and I have built my own hook into Forms3rdPartyIntegration_service, but I am unsure how to use this action to get the response into a variable I can use in the on_sent_ok of CF7.
I am trying to integrate with Hatchbuck, which returns a bit of JavaScript on form submit (window.location.href=’a custom 1 time url’).
I need to parse the URL / ID from the response in my filter and then write it out in the on_sent_ok.
Any ideas?
class MyPlugin {
public function MyPlugin() {
// note that you’ll want to hook to the right service; this hooks to all
add_filter(‘Forms3rdPartyIntegration_service’, array(&$this, ‘adjust_response’), 10, 2);
}public function adjust_response($body, $refs) {
// use ‘attach’ to inject to regular email
// use ‘message’ to inject to page
//$refs[‘attach’] = ‘custom message in email’;
$refs[‘message’] = $body; // Even if this was the body, how would i get this into on_sent_ok???
}
}new MyPlugin(); // engage!
https://www.ads-software.com/plugins/forms-3rdparty-integration/
- The topic ‘Forms3rdPartyIntegration_service CF7 Ajax’ is closed to new replies.