### [Changing the Default Sublabels for the Email Field](https://wpforms.com/developers/how-to-change-sublabels-for-the-email-field/)

**Published:** January 10, 2020
**Author:** David Ozokoye

**Excerpt:** This tutorial will walk you through changing the sublabels that appear under the Email form field when the Enable Email Confirmation is enabled. 

**Content:**

Would you like to change sublabels for the Email field on your forms? In WPForms, when you enable the Email Confirmation box in the Email form field, sublabels are automatically added below the Email fields with default text.

In this tutorial, we’ll cover how to change the sublabels using a PHP code snippet.

---

## Creating the Form

First, we’ll create a new form and add our form fields. When adding the Email field, be sure to toggle the **Enable Email Confirmation**.

![click to enable the email confirmation so that the sublabels will aappear](https://wpforms.com/wp-content/uploads/2020/01/wpforms-enable-email-confirmtaion.jpg)If you need help creating your form, [please review this documentation](https://wpforms.com/docs/creating-first-form/ "How to Create Your First Form").

## Adding the Snippet

It’s now time to add the snippet to your site. If you’re not sure where or how to add snippets to your site, [please review this tutorial](https://wpforms.com/developers/how-to-add-custom-php-or-javascript-for-wpforms/ "How to Add Custom PHP or JavaScript for WPForms"). To proceed, you’ll need to add the code snippet below to your site.

This snippet changes the primary and secondary sublabels for the email fields. Feel free to update the values on lines 10 and 11 to match the texts you’d like to use.

When you save the code and preview your form, the sublabel changes to the one specified in the code snippet.

![using this snippet you can now change sublabels email field](https://wpforms.com/wp-content/uploads/2020/01/wpforms-change-email-sublabels-after.jpg)## Frequently Asked Questions

Below, we’ve answered some of the top questions about changing sublabels for the Email field in WPForms.

#### Can I change these for only one form?

Absolutely. If you only wish to change these sublabels for a particular form, use this snippet instead and remember to update the form ID **123** to match your own form ID. If you need help finding your form ID, [please review this helpful guide](https://wpforms.com/developers/how-to-locate-form-id-and-field-id/ "How to Locate Form ID and Field ID Inside WPForms").

As you can see in the snippet, all we need to do is add in the check for the form ID with `if ( absint( $form_data[ 'id' ] ) !== 123 ) {  return $properties; }`, the rest of the snippet remains the same as the example with all forms.

That’s all you need to change the sublabels in the **Email** field!

Would you like to change the sublabels for the **Name** field as well? Take a look at our article on [How to Change Sublabels for the Name Field](https://wpforms.com/developers/how-to-change-sublabels-for-the-name-field/ "How to Change Sublabels for the Name Field").

## Related

Filter Reference: [wpforms\_field\_properties](https://wpforms.com/developers/wpforms_field_properties/ "Using the wpforms_field_properties filter")

**Categories:** Tutorials

**Tags:** PHP

---

