Would you like to show all form fields inside your email notifications, including the empty ones? By default, WPForms doesn’t include any empty field in the notifications but this can be easily changed with a small code snippet added to your site. In this tutorial, we’ll show you how to use PHP to include all form fields inside your email notifications.
/** * Show empty form fields in email notifications. * * @link https://wpforms.com/developers/how-to-show-empty-form-fields-in-email-notifications/ * */ add_filter( 'wpforms_email_display_empty_fields', '__return_true' );
Once the code has been added, you’ll now see all form fields inside your email notifications, including the empty ones.
And that’s it! You’ve now completed the steps needed to include all form fields in your email notifications. Would you like to hide the image choices in your email notifications as well? Take a look at our tutorial on How to Hide Image Choices in Notification Emails.
Filter Reference: wpforms_email_display_empty_fields