Passing the date field from Gravity Forms
I have gotten the email to pass too Sendy from Gravity Forms now I am having issues getting the "Date" to pass on to Sendy's (list custom field of date). The entry is being captured correctly by Gravity however Sendy says "not set" for the Date. Am I missing something?
add_action('gform_after_submission_1', 'post_to_third_party', 10, 2); function post_to_third_party($entry, $form) { $post_url = 'http://www.yoursendyinstall.com/subscribe'; $body = array( 'date' => $entry['4'], 'email' => $entry['2'], 'list' => 'YourSendyListCode' ); $request = new WP_Http(); $response = $request->post($post_url, array('body' => $body)); }
This discussion has been closed.
Comments
Hi,
Is the 'd' in your 'date' custom field an uppercase 'D' or lowercase 'd'?
Best regards,
Ben
ah! I thought about trying that... It worked! Thank you! It was uppercase....