zaus
Forum Replies Created
-
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Integration with InsightlyOh wait, I think I just figured out the problem — you’ve left the default “wrapper” alone (value =
post), meaning it’s wrapping your request under the “post” key:[body] => {"post":{"FIRST_NAME":"my name","LAST_NAME":"my name"}}Try emptying out that field.
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Integration with InsightlyNormally I’d say you’re not sending enough detail for Insightly to know where to map it (like, some kind of lead/form identifier) but looking at their API seems like you don’t need to? https://api.insight.ly/v2.1/Help/ApiController/Contacts
I did notice a suggestion on https://api.insight.ly/v2.1/Help
Write/Update Requests
When creating and updating onjects via the API, it is important to use valid identifiers, for example when linking an organization to a contact, you must provide a valid CONTACT_ID and ORGANISATION_ID, which if you do not already have, you will need to look up. A good troubleshooting technique is to create objects and populate them with representative data via the Insightly web application, and then access them via the REST API to inspect their object graphs.
Maybe that’ll help in narrowing down any mapping problems?
Sorry, you can’t use the Dynamic Fields macros in the URL (that would be a useful feature; please submit an issue). Also, the macros like
##GET:{CampaignID}##just result in the value, not including the arg name, so you would have needed to use&CampaignID=##GET:{CampaignID}##anyway.Does it have to be part of the URL? I’m pretty sure Velocify can grab it from posted parameters, so you can put it in the mapping “as usual”.
Incidentally, you don’t need the Dynamic Text Extension plugin if you’re using my Dynamic Fields addon, or vice versa — I assume you have both just to troubleshoot?
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Custom field arraysIf you map multiple source fields to the same destination field, you can merge them as an array using the separator
[]or[#]— see the FAQ page, section “I need to submit multiple values as…”.Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Gravity Form 2.0 compatibility?Good question. After reading their changelog, I don’t have any reason to think my plugin wouldn’t continue to work with GF v2. Most of the functionality in my plugin involves hooking to the contact form’s “before_send” filter/action, and I didn’t see any changes mentioning
gform_pre_submission_filteror specifically how it makes the submission data available, so we should be fine.I would ask that you try installing the beta plugin and let me know if there are any problems; I would myself but ironically I don’t have a GF license.
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Insightly Integration Not creating fields@arev Did you try the Leads API endpoint he mentioned, rather than the Contacts?
Yeah that weird bug had been around forever, sorry. I can’t remember if you can save and refresh the page or you need to delete/add another service is the workaround.
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] How to send user IP to 3rd partyUse my addon https://wordpress.org/plugins/forms-3rdparty-dynamic-fields/faq/ with
##IP##as the ‘static’ valueForum: Plugins
In reply to: [Forms: 3rd-Party Integration] Attaching 3rd Party Services to unlisted formsGlad I could help!
I think you’re on the right track. All of the other form plugins (CF7, GF, Ninja) follow a loose ‘plugin’ architecture — https://github.com/zaus/forms-3rdparty-integration/tree/master/plugins
which are “registered” here https://github.com/zaus/forms-3rdparty-integration/blob/master/includes.phpSince CFDB basically intercepts the
$_POSTarray, I think adapting the GF plugin would be the right place to start: https://github.com/zaus/forms-3rdparty-integration/blob/master/plugins/gravityforms.php
“Just” fill in the appropriate functions/properties, eg)- BEFORE_SEND_FILTER — give the
cfdb_submithook name - GET_PLUGIN_FORMS — might be weird, basically need to give a list containing a static placeholder that GET_FORM_ID will also return, since you don’t know what to target
- IS_PLUGIN_FORM — also weird, probably need to confirm the structure of
$formmatches whatever came in to thecfdb_submithook
If you figure something out, publish it as a plugin and I’d be happy to link to it.
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] forward form data in email with XML attachmentIn more detail:
1. You’ll need to hook here:
https://github.com/zaus/forms-3rdparty-integration/blob/master/forms-3rdparty-integration.php#L545
and return a response containing ‘response_bypass’ so that the following will skip making the regular remote post:
https://github.com/zaus/forms-3rdparty-integration/blob/master/forms-3rdparty-integration.php#L559
2. Also in that hook, using the contents that would have been posted (something like $args[‘body’]) you could manually send an email (wp_mail) or if you need to attach it to the regular contact form’s email then save it to a temporary variable.
3. To attach it to a form plugin’s email, you’ll need to hook to the following to get access to that $form, adding the contents you saved to the temporary variable in the step before.
https://github.com/zaus/forms-3rdparty-integration/blob/master/forms-3rdparty-integration.php#L625Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] MailChimp WP Integration IssuesSince it’s a “simple mapping issue”, assuming resolved.
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] CF7 & Pardot IntegrationAssuming resolved.
Also, it seems like Pardot is another integration that is basically the reverse of my plugin, in that it lets you set up mappings for what to accept (rather than send).
I still would like to know why you need to leave debug mode on; the only time that’s used is after everything is sent.
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Ninja Forms & Pardot Integration*sigh* It’s because you’re not mapping correctly. I swear I stickied this before…I’ll remake the summary.
https://wordpress.org/support/topic/its-not-sending-data-help-read-this-first
Specifically, Ninja forms doesn’t provide a ‘machine name’ for the field (the “ninja_forms_field_17” you were expecting) but rather just the ID, as you can see in the “*** Post (Form) ***” section of the debug email. My plugin also includes/can use the field label to make reusing services easier across forms. Just pick the appropriate keys from the “*** Post (Form) ***” section to use as your ‘Source’ fields.
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] Admin Menu/Page is blankWeird, what was the resolution?
And apologies, that migrate plugin is pretty much a workaround hack I came up with that is somewhat useful I figured I’d share. It really needs some cleanup…
Forum: Plugins
In reply to: [Forms: 3rd-Party Integration] cookie and session varsMy plugin uses
wp_remote_post, so you’d need to hook to...service_filter_argsto add additional details like cookies. Or you could use my Dynamic Fields addon to include specific session/cookie data within the integration post. - BEFORE_SEND_FILTER — give the