This guide shows you how to create a custom newsletter subscription form. This is useful in cases where you don’t want to use the default Noptin forms and you’re using a form plugin that is not supported by Noptin.

What you’ll learn

  1. How to add a newsletter subscription checkbox to your custom HTML forms.
  2. How to automatically subscribe everyone that fills out your custom HTML forms.

Adding a newsletter subscription checkbox to your custom HTML forms

You can add a “subscribe to our newsletter” checkbox to any third-party form you like by including the following HTML in the form.

<label>
	<input type="checkbox" name="noptin-custom-subscribe" value="1" />
	Subscribe to our newsletter.
</label>

In case you’re using a form builder, add a normal checkbox field and set the field key/name to “noptin-custom-subscribe“.

Automatically subscribe everyone that fills out your custom HTML forms

Instead of using a checkbox, you can use a hidden field to ensure that everyone who fills out your form is automatically added to your newsletter.

<input type="hidden" name="noptin-custom-subscribe" value="1" />

Similar to the previous step, those using a form builder should add a normal hidden field to the form and then set the field key/name to “noptin-custom-subscribe“.

You can also follow the above steps but use a radio or select field instead of a checkbox or hidden field.

Specifying subscriber fields

By default, Noptin will try to guess the subscriber fields. If this doesn’t work for you, ensure that the field names/keys in your custom forms are identical to the merge tags located in Noptin > Settings > Custom Fields.

For example,

<label>
	First Name
	<input type="text" name="first_name"/>
</label>
<label>
	Phone Number
	<input type="checkbox" name="phone"/>
</label>
<label>
	Email Address
	<input type="checkbox" name="email"/>
</label>
<label>
	<input type="checkbox" name="noptin-custom-subscribe" value="1" />
	Subscribe to our newsletter.
</label>

Add a field with a key/name of “source” to set the subscriber source. You can then later filter your newsletter subscribers by their subscription source.

Connecting your form to external CRMs

Noptin will automatically add new submissions to any installed CRM add-ons. Below are supported CRMs and email marketing software.

Noptin will add subscribers will to the default lists, groups, and tags that you’ve set in Noptin > Settings > Integrations > Your Integration.

For example,

Assume that you have a Zoho CRM integration set up as shown below.

custom forms zoho crm

Noptin will add everyone that subscribes via your custom form to Zoho CRM as a “Contact” with the tag “Noptin-Contact”.

If that’s not what you want, you can add a field with a name/key with the format:-

{connection_slug}_{list_type}

For example, the following form will add subscribers to a Mailchimp list with ID “12345”.

<input type="hidden" name="mailchimp_list" value="12345" />
<input type="hidden" name="mailchimp_tags" value="Noptin-Subscriber" />

You can pass -1 as the value to disable adding new contacts to your CRM.

Related Guides

  • Creating Subscription Forms

    Learn how to create newsletter subscription forms using our form builder

    Read More

  • Newsletter Subscription Shortcode

    Learn how you can display a newsletter subscription form in your posts, pages and text widgets using a shortcode.

    Read More

  • Newsletter Subscription Widget

    Our newsletter subscription widget allows you to add a newsletter sign-up form to your header, footer, sidebar, Elementor, or any other place that supports widgets.

    Read More

  • Newsletter Subscription Block

    If you’re using the new WordPress editor, you can use our Newsletter Block to add a subscription form to your posts and widgets.

    Read More

  • Pop-up Forms

    This guide shows you how to create a newsletter subscription pop-up form in WordPress for free. Unlike normal newsletter sign-up forms, pop-up forms have significantly higher conversion rates. In fact, the average conversion rate is 3.09%. Below is an example of an “exit-intent coupon code pop-up“. Noptin allows you to create such a system without…

    Read More

  • Sliding Forms

    Learn how to create sliding newsletter sign-up forms. Forms can slide in from the bottom left, top left, bottom right, or top right.

    Read More

  • Preventing Spam Sign-Ups

    Noptin uses several methods to prevent spam signups while keeping the forms easy to use for non-spammers. If, however, you are still getting spam sign-ups, you can install any of the following plugins to fight spammers. La Sentinelle antispam This plugin uses the following techniques to block spam:- Honeypot – this adds a hidden input…

    Read More

  • Redirect Users after Subscription

    Learn how to redirect users to a different page, website or downloadable file after they subscribe to you newsletter.

    Read More

  • Smart Tags

    You can use smart tags in your form messages, welcome emails, or subscription shortcodes to add dynamic content to the form. Noptin will detect the smart tag and replace it with the appropriate value. If the value is not known, Noptin will replace the smart tag with an empty string. Example 1: Display the subscriber’s…

    Read More

  • Unsubscribe Forms

    Noptin allows you to create a newsletter unsubscribe form so that existing subscribers can unsubscribe from your newsletter.

    Read More

  • Change subscription confirmation messages

    Check out the default newsletter subscription confirmation messages and how to edit them

    Read More