Hey @viewsmarketing ??
Sorry it took so long to come back to you. Here’s the snippet — you can either copy-paste it at the bottom of your child theme functions.php file, or use a plugin like Code Snippets:
add_filter( 'happyforms_email_alert', function( $email_message ) {
$first_name_label = 'First name';
$last_name_label = 'Last name';
$from_name = $email_message->get_from_name();
$form_id = $email_message->message['form_id'];
$form = happyforms_get_form_controller()->get( $form_id );
$parts = wp_list_pluck( $form['parts'], 'id', 'label' );
$message_parts = $email_message->message['parts'];
if ( isset( $parts[$first_name_label] ) ) {
$from_name = $message_parts[$parts[$first_name_label]];
}
if ( isset( $parts[$last_name_label] ) ) {
$from_name .= ' ' . $message_parts[$parts[$last_name_label]];
}
$email_message->set_from_name( $from_name );
return $email_message;
} );
Just make sure to tweak lines 2 and 3, so that they match your “first name” and “last name” field labels.
Let us know how that goes!