Add custom parameter to the event.details on wpcf7mailsent
-
Hello,
does it possible to add custom parameter to event on wpcf7mailsent event?
How can I handle it and add for example “recordId” param?
Forr example:
{ "contactFormId": 164, "pluginVersion": "5.5.6", "contactFormLocale": "he_IL", "unitTag": "wpcf7-f164-o1", "containerPostId": 0, "status": "mail_sent", "inputs": [ { "name": "user_full_name", "value": "???? ??????" }, { "name": "user_phone_number", "value": "0502598678" }, { "name": "source_page", "value": "6" }, { "name": "lead_source", "value": "" }, { "name": "recordType", "value": "" }, { "name": "target", "value": "" }, { "name": "oid", "value": "" }, { "name": "utm_source", "value": "" }, { "name": "ref", "value": "" }, { "name": "placement", "value": "" }, { "name": "network", "value": "" }, { "name": "matchtype", "value": "" }, { "name": "keyword", "value": "" }, { "name": "gclid", "value": "" }, { "name": "feeditemid", "value": "" }, { "name": "fbclid", "value": "" }, { "name": "devicemodel", "value": "" }, { "name": "device", "value": "" }, { "name": "creative", "value": "" }, { "name": "utm_content", "value": "" }, { "name": "campaignid", "value": "" }, { "name": "adsetname", "value": "" }, { "name": "adsetid", "value": "" }, { "name": "adposition", "value": "" }, { "name": "adid", "value": "" }, { "name": "adgroupid", "value": "" }, { "name": "campaign_content", "value": "" }, { "name": "utm_term", "value": "" }, { "name": "utm_campaign", "value": "" }, { "name": "utm_medium", "value": "" }, { "name": "campaign_source", "value": "" }, { "name": "website_url", "value": "" }, { "name": "Campaign_ID", "value": "" }, { "name": "Secondary_Lead_Source__c", "value": "" }, { "name": "WOBI_Gender__c", "value": "" }, { "name": "system_record_id", "value": "" } ], "formData": {}, "apiResponse": { "api_url_request": [ [ { "body": "\r\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<html>\n<head>\n<meta HTTP-EQUIV=\"PRAGMA\" CONTENT=\"NO-CACHE\">\n<meta http-equiv=\"Refresh\" content=\"0; URL=https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8\">\n</head>\n<script>function redirectOnLoad() {if (this.SfdcApp && this.SfdcApp.projectOneNavigator) { SfdcApp.projectOneNavigator.handleRedirect('https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8'); } else if (window.location.replace){ window.location.replace('https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8');} else {window.location.href ='https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8';} } redirectOnLoad();</script></html>\n", "response": { "code": 200, "message": "OK" }, "cookies": [ { "name": "BrowserId", "value": "wTI6h8cjEeyhxJOuvOEN-Q", "expires": 1682707692, "path": "/", "domain": "salesforce.com", "port": null, "host_only": false } ], "filename": null, "http_response": { "data": null, "headers": null, "status": null } }, { "fields": { "last_name": "???? ??????", "mobile": "0502598678" }, "url": "https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" } ] ], "contact_form_id": 164, "status": "mail_sent", "message": "?????? ?????.", "posted_data_hash": "64883aa50d4f11cc66c58f6b54a4d0d9", "into": "#wpcf7-f164-o1", "invalid_fields": [], "recordId" : 123 } }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add custom parameter to the event.details on wpcf7mailsent’ is closed to new replies.