Your address will show here +12 34 56 78
#24700

Anna
Keymaster

Hello,

These are comments from a client who managed to do this a different way:

“I found a new way using gravity form. Here is the way I did it in case someone need.
First remove the default forms and replace with gravity form need 2 form one for contact and one for properties.

After add this code in the function.php

function change_autoresponder_email( $notification, $form) {

//This example is using a form with the id of 1
if($form[“id”] == 1){
global $post;

$agent_email = get_post_meta( $post->ID , ‘agent_email’, true );
$notification[‘to’] = $agent_email;

return $notification;
}

//This example is using a form with the id of 1
if($form[“id”] == 2){
global $post;

$agent_email_one = get_the_author_meta(’email’, $post->post_author);
$notification[‘to’] = $agent_email_one;
return $notification;
}
}
add_filter(‘gform_notification’, ‘change_autoresponder_email’, 10, 3);