Giter Club home page Giter Club logo

forms-3rdparty-integration's People

Contributors

zaus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

forms-3rdparty-integration's Issues

WP 3.7 & 3.8 Break Form Submissions

Our forms stop working as soon as we update WP from 3.6 to 3.7 or above. Enabling debug mode, I see the following error below. Any assistance you can offer would be greatly appreciated. Thx!

RAW RESPONSE
Array
(
[safe_message] => error object
[object] => WP_Error Object
(
[errors] => Array
(
[http_request_failed] => Array
(
[0] => Operation timed out with 0 out of -1 bytes received
)

            )

        [error_data] => Array
            (
            )

    )

)

CF7 to sugarCRM

Hello
I am trying to connect a contact-form-7 to a webtolead form in sugarcrm.
I installed your plugin and started to enter a service.
Only two fields are intentified for mapping but there are around 40 of them.
What do I have to do to be able to map them all . it also looks like the connection to sugar is not done.
Here is what I get in debug mode
thanks for your help

http://www.incontinuum.com/marketing/request-a-freemium-key/

*** Service ***
Array
(
[name] => Service Freemium License
[url] => https://incontinuum.synolia.com/index.php?entryPoint=WebToLeadCapture
[forms] => Array
(
[0] => cf7_12773
)

[success] => 
[failure] => 
[timeout] => 10
[mapping] => Array
    (
        [0] => Array
            (
                [lbl] => The submitter name
                [src] => your-name
                [3rd] => name
            )

        [1] => Array
            (
                [lbl] => The email address
                [src] => your-email
                [3rd] => email
            )

    )

[separator] => , 

)

*** Post (Form) ***
http://www.incontinuum.com/marketing/request-a-freemium-key/
Array
(
[_wpcf7] => 12773
[_wpcf7_version] => 4.1.2
[_wpcf7_locale] => en_US
[_wpcf7_unit_tag] => wpcf7-f12773-p12774-o1
[_wpnonce] => 41b7c694d3
[courtesy] => Mr.
[firstname] => a
[your-name] => z
[your-email] => [email protected]
[phone] => +336...........
[function] =>
[country] => USA
[state] => Non-US
[company] => a
[address] => z
[address2] => e
[address3] => r
[zipcode] => t
[city] => y
[industry] => Education
[orgatype] => Enterprise
[cloudbuilt] => Private Cloud
[eula] => 1
[renewal] => Array
(
[0] => First Demand
)

[hypervisors] => Array
    (
        [0] => VMware vCenter
    )

[publicused] => Array
    (
        [0] => Amazon Web Services
    )

[startingdate] => 2015-05-31
[source] => IBM Marketplace
[your-message] => gfgt
[_wpcf7_is_ajax_call] => 1

)

*** Post (to Service) ***
Array
(
[timeout] => 10
[body] => Array
(
[name] => z
[email] => [email protected]
)

)

*** Response ***
Array
(
[headers] => Array
(
[date] => Fri, 22 May 2015 15:45:23 GMT
[server] => Apache
[content-encoding] => gzip
[vary] => Accept-Encoding
[content-length] => 83
[connection] => close
[content-type] => text/html; charset=UTF-8
)

[body] => We are sorry, the server is currently unavailable, please try again later.
[response] => Array
    (
        [code] => 200
        [message] => OK
    )

[cookies] => Array
    (
    )

[filename] => 

)

Integration with MS Dynamics/ClickDimensions

Hi,

I'm trying to integrate a Contact Form 7 form with an MS Dynamics/ClickDimensions form capture. I've used 3rd Party Integration before with SFDC and been successful with that, but I'm having no joy with Dynamics.

The post here suggests that I need to do this including a Visitor Key (a value from a cookie) and the Referrer Header, and I can't work out how to add them into the 3rd Party Integration submission.

Does anyone know how to do this, or have any examples of where they have done something similar?

Forgive me if I'm posting in the wrong place, but this is a bit of a last ditch attempt to get something working...

Thanks for any help given.

Pete

Redirect to payment gateway not working using CF7 + 3rd

I'm trying to get the post action to actually redirect the client to a payment gateway once they click submit on my form.
I configured some hidden field on the CF7 and mapped filed using the 3rd party plugin, and i need these field values to be posted to the payment URL so the payment page successfully works.

I turned on the debug mode and I don't get any error in response (attached bellow).
And despite this it is not redirect the page to the url set in "submission url"

Do I need to add hook? witch on?

Thanks Shiran.

*** Service ***
Array
(
[name] => Tranzila
[url] => https://direct.tranzila.com/ttxbpracti/
[forms] => Array
(
[0] => cf7_13181
)

[success] =>
[failure] =>
[timeout] => 10
[mapping] => Array
    (
        [0] => Array
            (
                [lbl] =>
                [src] => your-name
                [3rd] => contact
            )

        [1] => Array
            (
                [lbl] =>
                [src] => your-email
                [3rd] => email
            )

        [2] => Array
            (
                [lbl] =>
                [src] => your-subject
                [3rd] => phone
            )

    )

[separator] => ,

)

*** Post (Form) ***
http://www.bpracti.co.il/?page_id=12946&preview=true&preview_id=12946&preview_nonce=592cd3e314
Array
(
[_wpcf7] => 13181
[_wpcf7_version] => 4.2.1
[_wpcf7_locale] => he_IL
[_wpcf7_unit_tag] => wpcf7-f13181-p12946-o1
[_wpnonce] => da77a495e4
[your-name] => sss
[your-subject] => sss
[your-email] => [email protected]
[TranzilaToken] => some=value&andother=fdds
[sum] => 15
[_wpcf7_is_ajax_call] => 1
)

*** Post (to Service) ***
Array
(
[timeout] => 10
[body] => Array
(
[contact] => sss
[email] => [email protected]
[phone] => sss
)

)

*** Response ***
Array
(
[headers] => Array
(
[date] => Tue, 28 Jul 2015 16:52:07 GMT
[server] => Apache
[x-xss-protection] => 0
[p3p] => CP="HONK IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
[set-cookie] => PHPSESSID=muk15j6pephbnh4ghukv326237; path=/; domain=direct.tranzila.com; secure
[expires] => Thu, 19 Nov 1981 08:52:00 GMT
[cache-control] => no-store, no-cache, must-revalidate, post-check=0, pre-check=0
[pragma] => no-cache
[vary] => Accept-Encoding
[content-encoding] => gzip
[content-length] => 5129
[connection] => close
[content-type] => text/html; charset=UTF-8
)

[body] => <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<title>Bpracti סדנאות פרקטיקה - טרנזילה שירותי סליקה באינטרנט</title><style type="text/css">
                            body {padding: 0px; margin: 0px; direction: rtl; font-family: Arial;}

                    .rounded_corners { -moz-border-radius:6px 6px 6px 6px; -webkit-border-radius:6px 6px 6px 6px; border-radius: 6px 6px 6px 6px; }

                    #wrapper { width: 987px; margin: 0px auto;}

                    #header { width: 987px; margin: 0 auto;}

                    #contentp { width: 703px; margin: 0 auto; float: left;}

                    #details { width: 222px; margin: 0 auto; float: right;}

                    #gray { width: 62px; margin: 0 auto; float: right;}

                    #footer { width: 987px; margin: 20px auto;}

                    .content { width: 495px;  list-style-type: none; float: left;}

                    .product { width: 208px; margin: 15px auto; float:right;}

                    img {border: 0;}

                    .headimages { width: 987px; list-style-type: none;}

                    .headimages li { display: block; float: right;}

                    #greenstripe {width: 987px; height:53px; background-color:#33a2fe; list-style-type: none; margin: 0 auto; padding: 0;}

                    .orangestripe {width: 700px; height:28px; background-color:#000e77; margin: 3px auto; padding: 0;}

                    #greenstripe  li{display: block; float: left; padding: 30px 50px 0 60px;}

                    #details ul {list-style-type: none; width: 100%; padding: 0; margin: 0;}

                    .footerlink {font-size: 12px; font-weight: normal; text-decoration: underline; color:#888; cursor: pointer;}

                    #footergreenstripe {width: 987px; height:27px; background-color:#33a2fe; margin: 5px 0 10px 0; padding: 0;}

                    .footergreenstripe ul {list-style-type: none; width: 100%; padding: 0; margin: 0;}

                    .footergreenstripe  li{display: block; float: right; padding: 0 0 20px 20px; list-style-type: none;}



                    .text {font-style: Arial; color:#6e6e6e; font-weight: normal; font-size:12px; direction: rtl;}

                    .text ul{list-style-type: circle; padding: 0; margin: 0;}

                    .text li{float: right; display: block; font-weight: normal;  padding: 0; margin: 0;}





                    .content ul{list-style-type: none; width: 100%;  padding: 0; margin: 0; }

                    .content li{float: right; display: block;  padding: 0; margin: 0;}

                    .date {font-style: Arial; color:#ffffff; font-weight: bold; font-size:12px;}



                    .footertranzila{font-style: Arial; color:#649c0a; font-weight: bold; font-size:14px;}

                    .footertext{font-style: Arial; color:#666666; font-weight: bold; font-size:12px;}

                    .footertext a:link {font-size: 12px; font-weight: normal; text-decoration: underline; color: #888888; }

                    .footertext a:visited {font-size: 12px; font-weight: normal; text-decoration: none; color:#888888; }

                    .footertext a:active {font-size: 12px; font-weight: normal; text-decoration: none; color:#888888; }

                    .footertext a:hover {font-size: 12px; font-weight: normal; text-decoration: none; color:#649c0a;}





                    .productname {font-style: Arial; color:#000e77; font-weight: bold; font-size:16;}

                    .bizname {font-style: Arial; color:#000e77; font-weight: bold; font-size:16; padding-right: 5px;}

                    .price {font-style: Arial; color:#000000; font-weight: bold; font-size:18px; height: 10px;}

                    .strike {font-style: Arial; color:#fd4403; font-weight: bold; font-size:18px; text-decoration: line-through; height: 10px;}

                    .biztext {font-style: Arial; color:#6e6e6e; font-weight: normal; font-size:12px; direction: rtl; padding-right: 5px; margin:2px;}

                    .biztext a:link {font-size: 12px; font-weight: normal; text-decoration: underline; color: #33a2fe; }

                    .biztext a:visited {font-size: 12px; font-weight: normal; text-decoration: none; color:#649c0a; }

                    .biztext a:active {font-size: 12px; font-weight: normal; text-decoration: none; color:#649c0a; }

                    .biztext a:hover {font-size: 12px; font-weight: normal; text-decoration: none; color:#649c0a;}

                    .pf {display: block; float: left; width: 142px; height: 91px; background: url('/images/paymentform-blue.png') no-repeat left; margin-top: 10px;}

                    .photo {display: block; width: 142px; height: 91px; padding: 0 25px 0 0;}



                    .checkoutb { color:#0066CC; font-size: 14px; padding: 20px; margin: 0; text-align: left; width: 86%; }

                    .checkoutb img {vertical-align:middle}



                    .logom {width: 219px; height:154px; background-color:#ffffff; margin: 3px auto; padding: 0; float: center;}

                    .graystripe {width: 61px; height:28px; background-color:#d7d7d7; margin: 3px auto; padding: 0; float: right;}

                    .logotext {padding: 20px 0 60px 0;}

                    .orangeright {margin: 30px 0 60px 0; background: url('/images/blue-right.png') no-repeat right; width: 363px; height: 104px;}

                    .geo {padding: 30px 0 10px 0;}





                    form {font:13px Arial; margin:0px auto; width:495px;}

                    form ul {display: block; list-style:none; margin:0; padding:0;  }

                    form li { padding:56px; margin-bottom:1px;}

                    form label { float:right; width:70px; text-align:right; margin-right:7px; color:#0066CC; line-height:23px; padding:3px;}

                    form input, form textarea, form select { padding:4px; font:13px Arial; border:1px solid #999999; width:128px; }

                    form input:focus, form textarea:focus { border:1px solid #666; background:#e3f1f1; }



                    form li#send {  background:none; margin-top:6px; margin-right: 160px; text-align: left; color:#0066CC; font-size: 14px;}

                    form li#send button {   background:#33a1fe; border:none; margin:10px 25px 0 0; padding:8px 18px; text-align: center; border-radius:5%; -moz-border-radius:5%;-webkit-border-radius:5%;  color:#fff; margin-left:0; cursor:pointer; }

                    form li#send button:hover { background-color:#035eab;}

                    #send { background:#33a1fe; border:none; margin:10px 25px 0 0; padding:8px 18px; text-align: center; border-radius:5%; -moz-border-radius:5%;-webkit-border-radius:5%;  color:#fff; margin-left:0; cursor:pointer; }



                    .sexybluebutton {background:#33a1fe; border:none;  padding:8px 18px; text-align: center; border-radius:5%; -moz-border-radius:5%;-webkit-border-radius:5%;      color:#fff; margin-left:0; cursor:pointer;}

                    .sexybluebutton:hover { background-color:#035eab;}

.checkoutb { color:#0066CC; font-size: 14px; padding: 20px; text-align: left; }

                    .checkoutb img {vertical-align:middle}



                     .ast { color: red; font-size: small;}

                    .checkoutb button {     background:#33a1fe; border:none; margin:0px 25px 0 0; padding:8px 18px; text-align: center; border-radius:5%; -moz-border-radius:5%;-webkit-border-radius:5%;   co

lor:#fff; margin-left:0; cursor:pointer; }

                    .checkoutb button:hover { background-color:#035eab;}

                    #returnMessage1 {background-color: #c60000; color: #ffffff; font-size: 18px; font-weight: bold; height: 30px; border: 1px solid black; width: 360px; margin: 5px; display: block; float: right; text-align: center; padding-top:14px; }

/blue/

                    .mysum {font-weight: bold; color:#7cb829; font-size: 15px;}

                    .mysumval{ color:#0066d3; font-weight: bold; font-size: 15px;}

            </style><!--[if lt IE 8]>



                      <style type="text/css">

                      .product { width: 160px; display: block; float: right; height: 450px; }

                      .content { width: 404px; display: block; float: left;  }

                      #company { width: 250px;}

                      #contact { width: 250px;}

                      form {padding:0; margin: 0; width: 455px;}

                      form li { width: 100%;}

                      .photo {display: block; width: 142px; height: 91px; padding: 0px; }

                      </style>

                      <![endif]--><script type="text/javascript">

var _gaq = _gaq || [];

_gaq.push(['_setAccount', 'UA-64776703-1']);

_gaq.push(['_trackPageview']);

(function() {

var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

})();

</script><script src="/js/pay.js" type="text/javascript"></script><script type="text/javascript">

function trainto(URL)

{

 window.open(URL, '_blank', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=600');

}

</script>

            <div id="wrapper">



                    <div id="header">



                            <div>

                            <ul class="headimages"><li style="width: 510px;">  </li>

                                    <li style="padding: 15px 340px 10px 0px;">

                                    <a target="_blank" href="https://www.mcafeesecure.com/RatingVerify?ref=direct.tranzila.com" rel="nofollow"><img width="94" height="54" border="0" src="//images.scanalert.com/meter/direct.tranzila.com/13.gif" alt="McAfee SECURE site" /></a>

                                    </li>



                            </ul></div>



            <div style="clear: both"></div>



                            <ul id="greenstripe"><li class="date">

                    <span id="lang_bartitle">המערכת עומדת בתקן אבטחה PCI-DSS מוגנת בתקשורת מאובטחת ומוצפנת SSL</span>

                </li>

                            </ul></div>



                    <div id="contentp">

                            <div class="orangestripe"> </div>

                            <div class="content">

                                    <p class="productname" id="item_nameView"></p>



                                            <ul><li class="price" id="priceView">סה"כ  ₪</li>

                                                    <li class="strike" style="padding-right: 10px;" id="oldprice"></li>

                                            </ul><br /><div class="text" style="padding: 15px 0px 10px 50px;" id="pdescView">



                                    <br /><br /></div>
    <p class="checkoutb" style="margin-left: 50px;"> <span id="lang_paypal">Checkout with PayPal</span> -  <img style="cursor: pointer;" src="/images/btn_xpressCheckout.png" alt="CheckOut with PayPal Tranzila" onclick="ppsubmit();" /></p>



    <input type="hidden" name="pdesc" id="pdesc" value="" /><input type="hidden" id="lang" name="lang" value="il" /><ul><li>

                <label for="contact"><span id="lang_contact">שם מלא</span><span class="ast">*</span></label>

                <input style="width:273px;" type="text" name="contact" id="contact" value="sss" /></li>

    <li>

                <label for="email"><span id="lang_email">דוא"ל</span><span class="ast">*</span></label>

                <input type="text" name="email" id="email" value="[email protected]" /></li>

    <li>

                <label for="phone"><span id="lang_phone">טלפון</span><span class="ast">*</span></label>

                <input type="text" name="phone" id="phone" value="sss" /></li>



    <li>

                <label for="address"><span id="lang_address">כתובת</span></label>

                <input style="width:273px;" type="text" name="address" id="address" /></li>





    <li>

                <label for="remarks"><span id="lang_remarks">הערות</span></label>

                <input style="width:273px;" type="text" name="remarks" id="remarks" /></li>



    <li style="height: 15px; width: 100%"> </li>

            <li>

            <label for="ccno"><span id="lang_ccno">מס' כרטיס</span><span class="ast">*</span></label>

            <input type="text" name="ccno" id="ccno" autocomplete="off" /></li>

    <li>

            <label for="expmonth"><span id="lang_expiration">תוקף</span><span class="ast">*</span></label>

            <select name="expmonth" id="expmonth" style="width:50px;"><option value="01">1</option><option value="02">2</option><option value="03">3</option><option value="04">4</option><option value="05">5</option><option value="06">6</option><option value="07">7</option><option value="08">8</option><option value="09">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option></select>

            /

            <select name="expyear" id="expyear" style="width:75px;"><option value="14">2014</option><option value="15">2015</option><option value="16">2016</option><option value="17">2017</option><option value="18">2018</option><option value="19">2019</option><option value="20">2020</option><option value="21">2021</option><option value="22">2022</option><option value="23">2023</option><option value="24">2024</option><option value="25">2025</option><option value="26">2026</option><option value="27">2027</option><option value="28">2028</option><option value="29">2029</option><option value="30">2030</option></select></li>

    <li id="sumli"> </li>

    <li id="pmntid">

מס תשלומים 123

    <li>

                                    <label for="myid"><span id="lang_id">ת.ז.</span><span class="ast">*</span></label>

                                    <input type="tel" name="myid" id="myid" /></li><li>

                    <label for="mycvv"><a href="#" onclick="window.open('/docs/window-cvv.html', '_blank', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=230, top=' + (parseInt((screen.availHeight/2) - 115)) + ',left='+(parseInt((screen.availWidth/2) - 175)));">CVV</a>:<span class="ast">*</span></label>

                    <input type="tel" name="mycvv" id="mycvv" style="width: 50px;" size="4" maxlength="4" /></li>







    <li><input type="hidden" name="currency" id="currency" value="1" /><input type="hidden" name="supplier" id="supplier" value="ttxbpracti" /><input type="hidden" name="sum" id="sum" value="" readonly="readonly" style="width: 105px" />  </li>



    <li class="checkoutb" style="display: block; float: left; margin-left: 70px; margin-top: 20px;">

    <span class="mysum"> <span id="lang_sum">סה"כ לתשלום</span> </span>  <span class="mysumval" id="sumval"></span><span class="mysumval" id="currchar"> ₪</span><br /><br /><span id="lang_paybycard">שלם באמצעות כרטיס אשראי</span> <button id="send" type="button" onclick="if(checknrun(required,'cc')) {this.disabled=true;this.form.submit();}">בצע תשלום</button>



    </li>

</ul><input type="hidden" id="o_cred_type" name="o_cred_type" value="" /></form>
                            </div>

                            <div class="product">

                                    <div class="photo"></div>

                            </div>

                    </div>



                            <div id="gray">

                                    <div class="graystripe"> </div>

                            </div>



                            <div id="details">

                                    <div class="logom">

                                            <center><img src="merchant_logo.jpg" alt="Logo" /></center>

                                    </div>

                                    <p class="bizname">Bpracti סדנאות פרקטיקה</p>

                                    <ul><li class="biztext"><strong>כתובת:</strong> לאן 10/2</li>

                                    <li class="biztext"><strong style="visibility: hidden;">כתובת2</strong> רמת גן  </li>

                                    <li class="biztext"><strong>טלפון:</strong> 054-2099322</li>



                                    <li class="biztext"><strong>דוא"ל:</strong> <br /><a href="mailto:[email protected]">[email protected]</a></li>

                                    <li class="biztext"><strong>דף הבית :</strong> <br /><a href="http://www.bpracti.co.il" target="_blank">http://www.bpracti.co.il</a></li>





                                    </ul><div class="orangeright"><div class="pf"></div>

                                    </div>

                                    <div class="geo">

                    <table><tr><td><script type="text/javascript" src="//smarticon.geotrust.com/si.js"></script></td>

                        <td><img style="float:left;" width="146" height="51" border="0" src="/images/pci-inner.gif" alt="PCI DSS" /></td>

                    </tr></table></div>

            </div>



            </div>



            <div style="clear: both"></div>



                    <div id="footer">



            <div style="clear: both"></div>

                    <div id="footergreenstripe"></div>

                            <ul class="footergreenstripe"><li class="footertext"><span class="footerlink" onclick="trainto('http://www.bpracti.co.il/%D7%9E%D7%99-%D7%90%D7%A0%D7%97%D7%A0%D7%95/');">אודות</span></li>

                                    <li class="footertext"><span class="footerlink" onclick="trainto('http://www.bpracti.co.il/');">צור קשר</span></li>



                                    <li class="footertext" style="padding-right:360px;">Tranzila © טרנזילה שירותי   <a href="http://www.tranzila.com/" class="footertext" target="_blank">סליקה באינטרנט</a> - <a href="http://www.intervision.co.il/" class="footertext" target="_blank">מחשוב ענן</a> - כל הזכויות שמורות</li>

                            </ul></div>
<script type="text/javascript"> ``` required = ["ccno","expmonth","expyear","mycvv","myid","phone","email","contact"]; </script>

[response] => Array
(
[code] => 200
[message] => OK
)

[cookies] => Array
(
[0] => WP_Http_Cookie Object
(
[name] => PHPSESSID
[value] => muk15j6pephbnh4ghukv326237
[expires] =>
[path] => /
[domain] => direct.tranzila.com
[secure] =>
)

)

[filename] =>


)

Form plugins (addons) should attach themselves to singleton

As mentioned in suggestion here, the form plugin instances should

Probably as part of a base constructor in fplugin_base.php like:

function __construct() { Forms3rdpartyIntegration::$instance->attach_plugin($this); }

and back in the main plugin

private $_addons = array();
function attach_plugin($addon) {  $this->_addons[ $addon->FPLUGIN() ] = $addon; }

This would let you leverage (future) addon-agnostic functionality like field pickers in the admin ui, a la #22 .

Option to map to field name rather than id

See forum discussion https://wordpress.org/support/topic/ninja-forms-fileds?replies=3#post-6434717

It works when you just fill in the number in the mapping.
Like ninja_forms_field_8 > u_name =just 8

The thing I would like to know if this field id can be overriden with a name, so that if you would like to add multiple forms to a service, all with let's say a phonenumber (who get different id's). That you can fill in something like 'phone' at those fields, and that you can use the value 'phone' in the mapping so it picks up all the forms at once.

Anyone suggestions on this?
@patrickvh3

Maybe as an extension? Alternate setting? Would involve plugin-specific matching.

Include usage analytics tracking

To improve my ability to understand what users are doing, and thus focus my efforts on future updates, I'd like to build as a "bundled plugin" a way to report generic usage analytics such as:

  • plugin activation / deactivation
  • number of services
  • number of fields
  • number of fields per service
  • does it check for success?
  • track that a submission occurred (but not the data)
  • track how much information (number of fields) sent
  • track that submission was success/failure

Allow 'opt-out' by disabling plugin.

Probably use Google Universal Analytics to take advantage of server-side posting.

Passing url response back

I use a service which redirects a url based on whether it's successful or not, e.g. if successful user is sent to successURL and if unsuccessful the user is sent to errorURL. To keep the user on the page, I use a script based upon the query string of the url. The issue seems to be how to handle the redirect. Is there a way to pass the redirect to wordpress or is there some other way to look at the url sent back by the service?

Cannot receive form data unless "Is Value" is selected.

The only way I am able to receive form submissions to my Dynamics CRM is when I map values as well as select "Is Value" which defeats the point of the form. Is this a known bug or issue? I do not believe it is related to #30 since it does receive data when its hard coded via "Is Value".

Trying to set up Contact Form 7 to integrate with Salesforce & Mailchimp

Hi,

I've just installed the plug-in and am very confused by the interface. Sorry, I'm sure it's my fault I'm a newbie.

I expected to see some type of template set up to work with these two services based upon the plugin description. But I don't see anything like that and really don't know how to start the integrations. Can someone be kind enough to point me in the right direction?

Thanks,

Phil

V1.4.7 Throwing new error

Thanks for the update to 3rd party integration.

I noticed with the update, that the plugin now throws a "file not found" warning in php:

Warning: include_once(hidden.php) [function.include-once]: failed to open stream: No such file or directory in /home/username/public_html/wordpress/wp-content/plugins/forms-3rdparty-integration/plugins/contactform7.php on line 171

It might be related to my use of a subfolder.

maybe bloginfo('wpurl') is the answer.

this is a guess.

thanks,

Add special service separator for indexed nesting

See zaus/forms-3rdparty-xpost#11

Specifically, here add a case for [%] that will use the following function to prepare the destination field (key) for indexed nesting by the XPost plugin.

function placeholder_separator($post) {
    $new = array(); // add results to new so we don't pollute the enumerator
    // find the arrays and reformat keys with index
    foreach($post as $f => $v) {
        if(is_array($v)) {
            // for each item in the submission array,
            // get its numerical index and replace the
            // placeholder in the destination field

            foreach($v as $i => $p) {
                $k = str_replace('%i', $i, $f);
                $new[$k] = $p;
            }

            unset($post[$f]); // now remove original, since we need to reattach under a different key
        }
    }
    return array_merge($post, $new);
}

SSL Certificate Verification issue when posting to secure hosts

Problem manifests itself via a combination of factors:

  • Site is hosted externally:

    • An environment where the system's php.ini file is not modifiable.
    • Host's cURL CAINFO either isn't present or leads to an outdated certificates file
  • Request is made to a 3rd party via SSL (ie. https).

The specific error returned is:

SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Typically we would fix this by updating the server's SSL CA info file, however on an externally hosted server this is not possible.

Wordpress' WP_Http class seems to support specifying a custom CA info file when the request method is called:

'sslcertificates' => ABSPATH . WPINC . '/certificates/ca-bundle.crt',

Not sure if Wordpress' file is out of date?

In any case - is there a way to, preferably via the theme's functions.php file, add a hook to set the CA info file path so that the 3rd Party plugin (and other plugins using the http class) use an updated file for SSL verification?

ability to mix "label" and "form submission field"

For enhanced mapping wolud be great if we could add (on specific fileds only) some "fixed text" to the value of a field.
This is very useful when posting to some "additional notes" fileds when you shold be able to provide some context to the information too...

I think the easiest way is to use the text already inserted as "Label" and not used anywhere... maybe with a placeholder in the "form submission field" where the text sholud be inserted.

See this mockup since my english is really bad ;-)

forms- 3rd party integration ufficio temporaneo wordpress 2015-12-02 18-09-05

Parsing through XML Response

Hello. I am using your plugin to connect to this API function:
https://support.getcake.com/hc/en-us/articles/200705640--Signup-Affiliate-V4-Admin

The response after form submission is an XML response (Error or Successful). Towards the bottom they have an example of a successful XML response.

How would I go about not submitting the form if response has an error and return back to the form but if successful go to confirmation page. I was reading the hook functions but was confused how to go about it. Thanks Zaus.

Way to duplicate/clone service...

Would be great to be able to duplicate/clone a service... for instance I have multiple gravity forms on different landing pages that all have the same fields/names but each have a different post url... have to rebuild all of the mappings each time I create a new landing page...

Response Error: Input string was not in a correct format

Hello -
I'm trying to values over to an API but I get the following response:

[body] => Cannot convert Company Name to System.Byte.
Parameter name: type ---> Input string was not in a correct format.

The Submission inside the array is shown below:
[affiliate_name] => Don's Company

Thanks for this plugin! It's pretty awesome.

Also, API Guide for the API I'm submitting to can be found here: https://support.getcake.com/hc/en-us/articles/202231164-SIGNUP-Affiliate-API-Version-4

Conditional Logic Feature?

It would be great if there was a way to make sending off the HTTP POST dependent on a field value within a given form, such as a radio button selection. For example, one could add a 'Get Email Updates' checkbox to any form, and have it used as a Condition for external posting to the email marketing service.

Zaus (thank you!) suggested the following approach. However I am am not familiar with how to actually code this:

You could write a hook on on Forms3rdPartyIntegration_use_form and inspect the $form argument, then return false on your condition.

Or you could hook to Forms3rdPartyIntegration_service_filter_args later down and set response_bypass so it skips over the post. You'd have access to already transformed submission by then.

selected_input implementation when currentKey not set

from https://wordpress.org/support/topic/warning-in_array-expects-parameter-2-to-be-array-7?replies=1#post-7947435

I am using Gravity Forms.
Forms: 3rd-Party Integration version 1.6.6.1

Under the 3rd Party Integration Settings, warnings are displayed next to the checkboxes for Debug Mode, Logging Fallback, and Logging Fallback - include service.

The warning looks like this:
Warning: in_array() expects parameter 2 to be array, string given in /home/prod2gig/public_html/wp-content/plugins/forms-3rdparty-integration/forms-3rdparty-integration.php on line 393

Is this supposed to pop up next to the checkboxes?

From d84510c#diff-f57ede8c76bca4f86bf01fc4ae435c0bR402

All forms crash on activation of plugin

Hello,

I'm running into an issue where as soon as I activate the Forms: 3rd-Party Integration plugin. All of my forms become inoperable. I created a very simple form with one field to test and keep it simple. I click the submit button and nothing happens.

When I enable Developer Tools in Google Chrome and attempt to submit a form, I receive the following error as soon as I click the submit button:

Failed to load resource: the server responded with a status of 500 (Internal Server Error)

I have checked debug and included my email address but I believe the error happens prior to form submission but after the button click. I'm an admitted noob when it comes to WordPress and our company has paid a design firm to create our page. So that may have something to do with the issue that I'm experiencing.

We currently have WordPress (v4.0), Contact Form 7 (v3.8), Forms: 3rd-Party Integration (v1.6.2), PHP (4.2.2). All on a Windows Server 2012 R2 and IIS 8. We are also trying to integrate our forms with Pardot.

Any help would be greatly appreciated.

Thanks,

Curtis

Feature Request: Import/Export

This is a feature request. It would be helpful if I could import/export settings for forms which I use for several sites. For example, I have a Gravity Form for ExactTarget DEManager email sign up form which I import and export. It would be convenient if I could also import/export the Forms: 3rd Party Integration settings which I use for the form. The name for the form changes, but the mapping would be convenient for the import/export feature.

Thank you.

How to integrate Contact Form 7 with Infusionsoft

Hi,

I want to use this plugin to integrate contact form 7 with infusionsoft, but do not know how to go about it. I could not find any documentation on it. Is it even possible? Can somebody guide me, please?

Thanks!

Help with integration GF and LimeDB CRM

Hello

First - great plugin.
But...I am not so great, I am affraid ;(. PLease, can you help me with integration GF and LimeDB CRM using this plugin.

I really don't know what to do here. LimeDB support is horror! They sent me some kind documentation and some links but I dont get it, becouse I am not so familiar with SOAP and similar functionas.

Any help appreciate!

Integration of CF7 and LimeDB

Hi,

I see that you had a similar request in #1 some time ago, i was wondering if there was any further info on what hook was required to make it work?

I have my form mappings completed, and have the xpost plugin installed, but not quite sure where to go from here.

I can provide an example from the (limited) docs from limedb and also the debug emails for what i have so far.

Problem with saving values

I'm using "Forms: 3rd Party Integration" in order to create forms, integrate with SalesForce and also to integrate with Google Analytics. However, i've got an issue with the plugin because at the moment, whenever I make any changes and press the save button, the changes are not being saved.

There are no mapping values because the details are not being saved. Also, I could create a new entry, however it is not being saved.

I can save other values in the plugin like the service values (Name, URL etc).

This happen a while back about 2 months ago. I've tried to update the plugin but it did not work either.

Anyone?

'physical request failure' is thrown for 201 HTTP response code

Hello,

We are using the forms-3rdparty-integration plugin with CF7 to map input names out to match what our CRM requires. Today we were made aware that an error was suddenly being triggered. Upon further investigation we came to realize that none of our code has changed in any way (we track changes through Git), so we continued investigating. Long story short, we eventually realized that the response returns a "201" HTTP response code. The following line of the forms-3rdparty-integration plugin throws the 'physical request failure' any time the response code is not equal to 200:

https://github.com/zaus/forms-3rdparty-integration/blob/master/forms-3rdparty-integration.php#L520

I was able to resolve the issue by modifying the plugin. First I created an array of (in my opinion) acceptable HTTP response codes:

$acc_resp_codes = array(
    '200',
    '201',
    '202'
);

Then I changed the above-mentioned line 520 to read:

elseif(!$response || !isset($response['response']) || !isset($response['response']['code']) || !in_array($response['response']['code'], $acc_resp_codes)) {

I'm posting this here in case anyone else out there runs into the same issue, and also to see what the plugin author(s) think of adding this in to the plugin. Let me know if there are any plans to include this in a future release or not, or if there are any other issues or concerns to consider.

CF7 4.1.2 & 3rdParty 1.6.4.2 & SalesForce > retURL not working

Dear Zaus,

Love this plugin, I can get it to make a SFA opportunity with all the fields however, the form just tells me success and never moves to the page entered in retURL.

https://systatsoftware.com/download-sigmaplot/

Here is error log and integration debug:

*** Service ***
Array
(
    [name] => Download SigmaPlot
    [url] => https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8
    [forms] => Array
        (
            [0] => cf7_252
        )

    [success] => Thanks for choosing SigmaPlot!
    [failure] => 
    [timeout] => 10
    [mapping] => Array
        (
            [0] => Array
                (
                    [lbl] => first name
                    [src] => first_name
                    [3rd] => first_name
                )

            [1] => Array
                (
                    [lbl] => last name
                    [src] => last_name
                    [3rd] => last_name
                )

            [2] => Array
                (
                    [lbl] => company
                    [src] => company
                    [3rd] => company
                )

            [3] => Array
                (
                    [lbl] => email
                    [src] => your-email
                    [3rd] => email
                )

            [4] => Array
                (
                    [lbl] => industry
                    [src] => industry
                    [3rd] => industry
                )

            [5] => Array
                (
                    [lbl] => title
                    [src] => title
                    [3rd] => title
                )

            [6] => Array
                (
                    [lbl] => city
                    [src] => city
                    [3rd] => city
                )

            [7] => Array
                (
                    [lbl] => state
                    [src] => state
                    [3rd] => state
                )

            [8] => Array
                (
                    [lbl] => country
                    [src] => country
                    [3rd] => country
                )

            [9] => Array
                (
                    [lbl] => systat user
                    [src] => user
                    [3rd] => user
                )

            [10] => Array
                (
                    [lbl] => which products
                    [src] => 00N60000001JZ3l
                    [3rd] => 00N60000001JZ3l
                )

            [11] => Array
                (
                    [val] => 1
                    [lbl] => SFA ID
                    [src] => 00D600000007CiD
                    [3rd] => oid
                )

            [12] => Array
                (
                    [val] => 1
                    [lbl] => lead source
                    [src] => sigmaplot download
                    [3rd] => lead_source
                )

            [13] => Array
                (
                    [val] => 1
                    [lbl] => redirect
                    [src] => https://systatsoftware.com/?p=253
                    [3rd] => retURL
                )

            [14] => Array
                (
                    [val] => 1
                    [lbl] => SFA Record Type
                    [src] => 01260000000DMcC
                    [3rd] => recordType
                )

            [15] => Array
                (
                    [val] => 1
                    [lbl] => submit
                    [src] => submit
                    [3rd] => submit
                )

        )

    [separator] => ,
)

*** Post (Form) ***
https://systatsoftware.com/download-sigmaplot/
Array
(
    [_wpcf7] => 252
    [_wpcf7_version] => 4.1.2
    [_wpcf7_locale] => en_US
    [_wpcf7_unit_tag] => wpcf7-f252-p151-o1
    [_wpnonce] => 23013d3d64
    [first_name] => Greg TEST
    [last_name] => Greg TEST
    [company] => Greg TEST
    [your-email] => [email protected]
    [tel-380] => 0123456789
    [industry] => Manufacturing
    [TitleorJobDescription] => Greg TEST
    [city] => San Jose
    [state] => CA
    [country] => USA (United States of America)
    [SystatUser] => Array
        (
            [0] => No
        )

    [_wpcf7_is_ajax_call] => 1
    [product] => Array
        (
            [0] => 
        )

)

*** Post (to Service) ***
Array
(
    [timeout] => 10
    [body] => Array
        (
            [first_name] => Greg TEST
            [last_name] => Greg TEST
            [company] => Greg TEST
            [email] => [email protected]
            [industry] => Manufacturing
            [city] => San Jose
            [state] => CA
            [country] => USA (United States of America)
            [oid] => 00D600000007CiD
            [lead_source] => sigmaplot download
            [retURL] => https://systatsoftware.com/?p=253
            [recordType] => 01260000000DMcC
            [submit] => submit
        )

)

*** Response ***
Array
(
    [headers] => Array
        (
            [date] => Thu, 07 May 2015 20:41:56 GMT
            [set-cookie] => BrowserId=YTp1YiceRkeWYla03-JAOA;Path=/;Domain=.salesforce.com;Expires=Mon, 06-Jul-2015 20:41:56 GMT
            [expires] => Thu, 01 Jan 1970 00:00:00 GMT
            [cache-control] => private,s-maxage=0
            [content-type] => text/html;charset=UTF-8
            [content-encoding] => gzip
            [connection] => close
        )

    [body] =>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <meta HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> <meta http-equiv="Refresh" content="0; URL=https://systatsoftware.com/?p=253">
</head>
<script>if (this.SfdcApp && this.SfdcApp.projectOneNavigator) { SfdcApp.projectOneNavigator.handleRedirect('https://systatsoftware.com/?p=253'); }  else if (window.location.replace){ window.location.replace('https://systatsoftware.com/?p=253');} else {;window.location.href ='https://systatsoftware.com/?p=253';} </script></html>

    [response] => Array
        (
            [code] => 200
            [message] => OK
        )

    [cookies] => Array
        (
            [0] => WP_Http_Cookie Object
                (
                    [name] => BrowserId
                    [value] => YTp1YiceRkeWYla03-JAOA
                    [expires] => 1436215316
                    [path] => /
                    [domain] => .salesforce.com
                )

        )

    [filename] =>
)

I've Googled everywhere and I can't seem to get it to work.
Thanks for your help and this awesome plugin!

Link the plugin to InfusionSoft

Hi,

I would like to link the forms of my website to InfusionSoft in order to collect the emails.

I tried to set up the plugin but it doesn't work, can you please tell me how to do ?

Thanks
Noemie

form not posting actual values

I have configured the form to post the values to a URL, however the form is sending the name of the fields only and the default fields only. What am I missing?

Here is my debug email:

*** Service ***
Array
(
[name] => NetSuite Case Form
[url] => http://requestb.in/1l4axma1
[forms] => Array
(
[0] => 12948
)

[success] =>
[hook] => true
[mapping] => Array
    (
        [0] => Array
            (
                [cf7] => your_name
                [3rd] => firstname
            )

        [1] => Array
            (
                [cf7] => last_name
                [3rd] => lastname
            )

        [2] => Array
            (
                [cf7] => your_email
                [3rd] => email
            )

        [3] => Array
            (
                [cf7] => company_name
                [3rd] => custevent_company_name
            )

        [4] => Array
            (
                [cf7] => case_type
                [3rd] => category
            )

        [6] => Array
            (
                [cf7] => your_message
                [3rd] => incomingmessage
            )

        [7] => Array
            (
                [val] => 1
                [cf7] => 2
                [3rd] => custevent_contact_prefernce
            )

    )

[separator] => &

)

*** Post (Form) ***

*** Post (to Service) ***
Array
(
[custevent_contact_prefernce] => 2
)

*** Response ***
Array
(
[headers] => Array
(
[connection] => close
[server] => gunicorn/19.3.0
[date] => Wed, 19 Aug 2015 19:06:12 GMT
[content-type] => text/html; charset=utf-8
[content-length] => 2
[sponsored-by] => https://www.runscope.com
[via] => 1.1 vegur
)

[body] => ok
[response] => Array
    (
        [code] => 200
        [message] => OK
    )

[cookies] => Array
    (
    )

[filename] =>

)

As you can see *** Post (Form) *** is empty and indeed I'm not getting any information on my server.

Please help.

File upload

Hi there,

I am using CF7 with this plugin and it is great for posting to our backend jobs server.

I was wondering how I can get a file upload to be sent as well.

Any ideas?

Cheers,
Dominic

Improve how settings are handled

Split 'settings' and 'services' to separate option fields, but include "optimized" form/service reference for faster checking (rather than looping all entries):

array( {form_plugin_prefix+form_id} => array( {list of services} ) )

Then we don't have to load all services until they're supposed to be used. Importance of this would be determined by results of analytics tracking in Issue #19.

Considered splitting up services into separate options (as they would if we go with Issue #20), but not sure how performant it is to fill the options table.

Refactor get_settings, get_services, save_settings, save_services. Consider adding validation filters (i.e. the list of allowed indexes to save), at least for settings.

Gravity Forms - Constant Contact Post problem

Hi, I posted this over on the Wordpress support forms today:

I am running into an issue with this plugin. I am trying to pass several mailing list names from Gravity Forms to Constant contact. Constant contact requires them to be submitted like this:

http://yourdomain.com/CCSFG_x.x.x/[email protected]&Lists=ListName

If you are using multiple lists it should look like this &Lists[]=List1&Lists[]=List2&Lists[]=List3

This plugin is passing the list selection along like this: &Lists[]=List1,List2,List3 Is there a way to force the plugin to use the entire field name each time?

second post:

I tried two workarounds without success: I changed the separator to &Lists[]= but it didnt work. Then I removed the separator entirely and set two of the field values in Gravity Forms to &Lists[]=ListName1 and &Lists[]=ListName2 and that didn't work.

Using both of these methods fields post like this:

[FirstName] => NAME1
[LastName] => NAME2
[EmailAddress] => [email protected]
[CountryCode] => US
[City] => CITY
[StateCode] => AL
[PostalCode] => 99999
[Lists[]] => LIST1&Lists[]=LIST2&Lists[]=LIST3

Is there any way to separate the last line into three separate [Lists[]} => lines?

error and Notice i get when i try to send form data to my crm

Hi,
first thanks for your great work!
now for the quasions and the problems.
i tried to use this plugin with my crm.

my crm using:
REST API
method: POST
mycrm.mysite.com/api/v1/Lead
so i need to Specify field values as JSON in the request payload

after the form is submitted, i get this error:
Notice: Undefined index: failure in /home/webic980/public_html/wp-content/plugins/forms-3rdparty-integration-master/plugin-ui.php on line 136

and in the email:
SUBMISSION
Array
(
[timeout] => 10
[body] => Array
(
)

)

RAW RESPONSE
Array
(
[safe_message] => error object
[object] => WP_Error Object
(
[errors:WP_Error:private] => Array
(
[http_request_failed] => Array
(
[0] => Not properly address entered.
)

            )

        [error_data:WP_Error:private] => Array
            (
            )

    )

)

Setting up Contact-Form-7: 3rd Party Integration

I'm using the Contact-Form-7: 3rd Party Integration for my website. I little confused in the integration. I download and activate the Contact-Form-7: 3rd Party Integration plugin first. I have no idea how to proceed. I have created a form also. Can you tell me the steps to integrate this. thanks,

Phone Number Is In The Wrong Format

I am getting an error response

[body] => Phone Number Is In The Wrong Format
[response] => Array

should this be sanitized using add_filter? if so how would I do that?

How to check for response result before showing success confirmation on CF7

Hello Zaus, Thank you for writing such a great plugin.

I want to show users custom message from the response I get back after submitting the form to the forms-3rdparty-integration URL.

I use forms-3rdparty-integration to submit to third part URL, It check if email exists or not, if it does, I get the response to my email that user already exist, so instead of telling the user that your message has submitted successfully, I want to tell the user that they have already signed up and they should use a different email.

I have written this hook and added it to my functions.php but it doesnt work, anything that I am doing wrong?

if(!class_exists('Cf73rdParty_custom_message')){

class Cf73rdParty_custom_message {

public function __construct(){
//actions require 2 parameters: 3rd-party response, results placeholders
///NOTE: customize this hook name to match your Service (in the admin settings)
add_action('Forms3rdPartyIntegration_service_a7', array(&$this, 'adjust_response'), 10, 2);
}//-- function __construct

public function adjust_response($response, &$results) {


    if(!empty($response['body'])){
            if($response['body'] = 'CustomerExists');
            {       $response['success'] = 'false';
                    $results['errors'] = array('User already exists');
                    $results['message'] = 'A trial for this customer already exists';
            }

    }

}
}


}

$Cf73rdParty_custom_message_ins = new Cf73rdParty_custom_message(); // attach hook

Salesforce API: Cannot map to 'Website' field at Salesforce Leads

Hello,

Whatever I do I am unable to update the default SF 'Website' field. My 3rd Party Label for it is simply 'Website' (I have also tried 'website') but it won't update so I created my own field to store the information.

Can you test this?

BTW when I install the XML plugin for the 3rd Party Services it breaks the Salesforce API JSON.

vtiger

can you please provide me with contactform7 + vtiger setup instructions, i tried 2 days but cant get it get to work

"Redefining already defined constructor for class Forms3rdPartyIntegration" Error thrown when WP_DEBUG is enabled.

The following is displayed when the plugin is enabled with Contact Form 7.

Strict Standards: Redefining already defined constructor for class Forms3rdPartyIntegration in /WORDPRESS/wp-content/plugins/forms-3rdparty-integration/forms-3rdparty-integration.php on line 95

Additionally it also displays this message in the Wordpress notification area

The plugin generated 248 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

Tested using a clean WordPress 3.8.1 install running under MAMP.

Escaping single quotes

The data is passed to Sales Force. Single quotes like in "L'espoir" are posted like "L'espoir".

Thanks in advance

Admin UI - mapping cell headers don't match

The input cells should use the same id as the column headers, reusing the constants like self::PARAM_LBL and self::PARAM_SRC.

ex) (from links above)

<th id="th-<?php echo $eid, '-', self::PARAM_SRC ?>">

should correspond with

<td headers="th-<?php echo $eid?>-cf7">

but note the cf7 is static (and incorrect anyhow).

Question on Adding Filters

I ran across this plugin and it is exactly what we're looking for. I was able to setup the services with no issues but am having problems trying to setup a filter. I am not a developer so I am unsure about a lot of this.

We are using Gravity Forms and MailChimp to capture a user's birthday information. The Gravity Forms date format is mm/dd/yyyy and MailChimp wants mm/dd.

I ran across the code below which will do what I want but it is for the MailChimp's add-on for Gravity Forms. Is there a way to repurpose it for forms-3rdparty-integration?

        add_filter( 'gform_mailchimp_field_value', 'change_birthday', 10, 4 );
        function change_birthday( $value, $form_id, $field_id, $entry ) {
            //not the id for the birthday field, return value unchanged
            if ( $field_id != 4 ) {
                return $value;
            }

            $month = date( 'm', strtotime( $value ) ); //get month
            $day = date( 'd', strtotime( $value ) ); //get day
            $date = $month . '/' . $day; //build date into format needed by MailChimp
            return $date;       
        }

I can either submit mm/dd to MailChimp or I believe I can submit the mm and dd separately. Any help or point in the right direction would be greatly appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.