diff --git a/modules/actions-v2/get-response/get-response-action.php b/modules/actions-v2/get-response/get-response-action.php index 62004e9e8..45517d104 100644 --- a/modules/actions-v2/get-response/get-response-action.php +++ b/modules/actions-v2/get-response/get-response-action.php @@ -53,11 +53,14 @@ public function do_action( array $request, Action_Handler $handler ) { $fields_map = $this->settings['fields_map'] ?? array(); + foreach ( $fields_map as $param => $field ) { if ( ! $field || empty( $request[ $field ] ) ) { continue; } - $contact->add_custom_field( $param, $request[ $field ] ); + if ( 'name' !== $param && 'email' !== $param ) { + $contact->add_custom_field( $param, $request[ $field ] ); + } } try {