Get access to free tutorials, exclusive content and more.

How to Blocklist Email with Conditional Logic in WordPress Form

Are you looking for a way to blocklist unsolicited emails in your WordPress Form submission? Look no further because Ninja Forms has got your back with Conditional Logic add-on that will solve this problem in a minute.

Two reasons to blocklist email addresses in your WordPress form

  1. They are coming from spammers or unwanted email addresses.
  2. You want to block form submissions from a particular public domain such as Gmail, Yahoo, Hotmail, etc.

Whatever the reason is for blocklisting the email address in your form submission, at Ninja Forms, we stand by you.

What will you need to accomplish this mission?

In order to blocklist the unsolicited emails and domains in your WordPress form, the first thing you do is install the free Ninja Forms plugin. Next, install the powerful WordPress Form Conditional Logic add-on.

Blacklist Unwanted Emails in WordPress

You don’t require any skill; Drag and drop – that’s it!

First things first, drag and drop the Submit button and the Email Address field into your form. Next, tweak the Condition Logic add-on settings a little bit. This means heading over to the Advanced tab within your form builder and opening the Conditional Logic tab.

Click on the Add New Condition and select the form fields you want to apply the condition to.

In the example below, we have blocklisted the email address: example@email.com in our WordPress form submission. We have done this by setting the triggers to hide the Submit button if the email address equals dggngoctrinh1403@gmail.com.

 

In this next below example, we blocklisted the Gmail email domain using the conditional trigger Contains. This means any email containing the Gmail domain will be blocked from submitting the form.

Blacklist Email with Conditional Logic in WordPress Form

 

You can also have an additional HTML field that will display an error message when a user enters an email that uses the Hotmail Domain.

Yippee! You’re now set! All those blocklisted emails/domains cease to be a nuisance in your WordPress form Submission.

Pay only for what you need!

With our Ninja Forms WordPress add-ons, we offer single add-on purchases. You only pay for the individual Add-on; in this case, you only pay for the Conditional Logic add-on. Alternatively, if you are looking for multiple add-ons, take advantage of our hugely discounted Membership plans.

Money back guarantee

You don’t have to worry that you might lose your money because at Ninja Forms, we offer a 14-day money-back guarantee for all purchases.

Get started with Ninja Forms’ Conditional Logic and blocklist all the emails that are not welcomed in your WordPress form submission!