Get answers quicker by searching

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Passing the date field from Gravity Forms
  • Vote Up0Vote Down ksnightksnight
    Posts: 4Sendy user

    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 = '';
        $body = array(
        'date' => $entry['4'], 
            'email' => $entry['2'],
        'list' => 'YourSendyListCode'
        $request = new WP_Http();
        $response = $request->post($post_url, array('body' => $body));
  • Vote Up0Vote Down BenBen
    Posts: 3,606Sendy support


    Is the 'd' in your 'date' custom field an uppercase 'D' or lowercase 'd'?

    Best regards,

  • Vote Up0Vote Down ksnightksnight
    Posts: 4Sendy user

    ah! I thought about trying that... It worked! Thank you! It was uppercase.... :)

This discussion has been closed.
All Discussions