zaus
Forum Replies Created
-
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Extract url from response bodyParse the
$bodyin the hook described in “How do I show a custom message on the confirmation screen?” of the plugin FAQ, and either attach it as shown or save it to a ‘global’ variable you can call to embed in your iframe.Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Synergy CRM requires username and passwordYes of course there’s a way, this is WordPress and there’s a hook for everything! 😉
The question is – where do they expect the credentials? As part of the post? In a header? OAuth?
Are you talking about http://www.exact.nl/software/over-exact/nieuws/exact-nieuws/exact-appcenter/2495-restful-api-now-on-general-release ? Do they have any documentation?
Feel free to contact me through my website for a consult.
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Conditional Logic for submit to 3rd party?@fusionx22 depends on where you hook to. In the linked examples, if you use
Forms3rdPartyIntegration_service_filter_argsthen you have access to$post_args, $service, $form– specifically, you’re interested in the the $form.
Or you can stash the form id in an earlier hook and check it later in your hook if it’s not otherwise, available.Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] cannot use Mapping in 3rd party integrationWeird. Hard refresh your browser (shift+f5)?
Open JavaScript console (f12 in chrome) and reload page to see if there are any js errors.
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Can't connect CF7 to third party pluginAre you saying you can’t even see the plugin admin on your other sites, just the main one? Do you get debug emails from the plugin on the other sites?
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] How to pass CF7 Dropdown/Select values?Well, you need to map the select field name (‘options’?) to ‘cm-fo-itjjkk’? What does the debug email look like?
Glad to hear it works!
Is it the same page every time or something you need to get from the response?
If it’s the same page, just do it the regular way through cf7 additional_settings JavaScript redirect.
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Can't connect CF7 to third party pluginAre you sure my plugin is enabled for other sites in multi-site? Or is it only enabled for the main site?
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Posting images as base64Hmm…I just noticed this post, sorry. Funny because I just released a file attachment plugin that does just that – https://wordpress.org/plugins/forms-3rdparty-files/
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Display Response Array from the debug email?It depends on which form plugin you’re using. I’ve done something with CF7 for a client, but it involved saving the URL returned in the
$bodyto a class variable and then using that in another hook onForms3rdPartyIntegration_remote_successto inject it into CF7’s ‘additional_settings’ as a javascript redirect, something like:private function attach($cf7) {
$addl = $cf7->prop(‘additional_settings’);
$addl .= “\non_sent_ok: \”location = ‘{$this->url}’\””;$cf7->set_properties(array(‘additional_settings’=>$addl));
}I haven’t tried it, but you might be able to just insert a javascript redirect directly into
$bodylike$body .= "<script>location = $url</script>".Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Redirect after submission with cf7You’ll need to write at least a hook or two, depending on whether you’re using CF7 or GF. Basically you need to save the url to redirect to from the response in one hook, and depending on the form plugin set the redirect in another hook.
Ohhh…I get it, sorry; like a redirect.
I’m not entirely sure, as php doesn’t really have a way to clear the output buffer unless you’ve already started it (http://php.net/manual/en/function.ob-end-clean.php), but depending on when wp actually writes the page compared to when the hooks run, you might be able to just echo the service response and tell php to
exit. You might need to save the response to a temp variable and do the writing/exit in a later hook to give GF a chance to finish its processing.But that might not even work for your purposes if you need the associated cookies and stuff.
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Separators not workingYou can always try the format type instead, complete control over the output.
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Separators not workingYou don’t combine the submission fields, the plugin will do that for you when they’re mapped to the same 3rd party field. Just map both ‘your-name’ and ‘your-message’ to the same name.
The separator determines how the resulting list is handled, as mentioned in the faq. You might need to try the variations to see which results in the json format you need.
As I said, have you tried what I wrote in the faq?
How do I show a custom message on the confirmation screen?
The failure message is shown by default if the 3rdparty post did not succeed. You can add custom messaging to the plugin’s (GF, CF7, Ninja) email or success screen response with something like:class MyPlugin { public function MyPlugin() { 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'] = 'custom message on page'; // <---- this } } new MyPlugin(); // attach hookYou have access to the response
$bodyin the hook.