---
title: "Adding confirm email field in BigCommerce contact form"
url: https://byaman.com/adding-confirm-email-field-bigcommerce-contact-form/
description: "We'll need to add/edit html code in page_contact_form.html and tiny JS code snippet in ContactFormJavaScript.html. Screenshots are provided in the blog post."
author: "Amandeep"
published: 2014-09-20
last_modified: 2014-09-20
categories: ["BigCommerce"]
---

# Adding confirm email field in BigCommerce contact form

Recently I worked on a BC project. Client made a small request of adding confirm email field in the contact form of BigCommerce website. Its not really much tricky. Here goes the quick tutorial.

We’ll need to add/edit html code in the BigCommerce Template files. So you just need to click “Design” link in the navigation in BC admin panel and click “Edit HTML/CSS”.

## Step 1

Now just find this file **page\_contact\_form.html** in the panels. Add this html code in the page\_contact\_form.html file.

```
<dt><span class="Required">*</span>&nbsp; Confirm Email</dt>
<dd class="smallTextbox"><input type="text" placeholder="Confirm Email" name="confirm_email" class="Textbox Field200" /></dd>
```

In the screenshot given below, you can see that I’ve added this code on line number 23-24.

![Step 1 - Add code in page\_contact\_form.html](https://byaman.com/_astro/screenshot-1.CXATtVtL.jpg)

## Step 2

Now you’ll need to add little bit JS code in the **ContactFormJavaScript.html** file.

```
var confirm_email = $('#confirm_email').val();
if(confirm_email != email_address) {
  alert('Emails should match');
  $('#confirm_email').focus();
  $('#confirm_email').select();
  return false;
}
```

In the screenshot you can see that I’ve added this code on line number 6 and line number 14-19.

![Add JS code in ContactFormJavaScript.html](https://byaman.com/_astro/screenshot-2.Bpssa5eU.jpg)

**And thats it!!** Here goes the output:

![Confirm Email field in Contact form BigCommerce](https://byaman.com/_astro/screenshot-3.Cfjft1pn.jpg)

Please post comment if you’ve any question. Thanks
