Solved

Can you restrict a form to only accept two email domains?

  • 3 May 2023
  • 1 reply
  • 88 views

Badge

We offer our staff discount on the brands we own and we have noticed that the discount code has the potential to be abused by none staff members.

We have two domains that staff have access to depending on the company they work for. Can we restrict a sign up form to only accept these two domains?

for example,

domain 1 @hello.com 

domain 2 @goodbye.com

this is so they can receive an email with a individual discount code for that staff member.

We are using magento 2 on one domain and shopify on the other

 

icon

Best answer by David To 3 May 2023, 17:52

View original

1 reply

Userlevel 7
Badge +60

Hello @Bushell23,

Welcome to the Klaviyo Community! 

In order to restrict your sign-up form to only accept emails containing specific domains, you’ll want to build a custom/legacy signup form via HTML. Going the custom route would allow you to full control of how the form is designed and behaves - including restricting who can submit. 

Alternatively, if you wish to use a Klaviyo built sign-up form, I would recommend either embedding the form on a hidden landing page that only staff have access to or by using conditional/trigger splits or flow filters to target just your staff members when issuing the discount code. You can even take this a step further and link the form to a specific list. 

I’ve actually seen this done successfully using both a hidden landing page and a trigger split in the flow that issues the discount code. Essentially, even if a non-staff member somehow found or got their hands on the URL for the hidden page to fill out the form, the trigger split in the flow will direct users down two separate interactions based on what their email is. If they’re a staff user, they would go down the normal experience where they receive a discount code

If it’s identified that the subscriber is not a staff member, they’ll have found an Easter egg congratulating them and celebrating them for their efforts. You could even include a smaller discount in this email to persuade the subscriber to purchase and promote your brand. 

I would just recommend excluding these list subscribers from your campaigns, as they may not be the best users to reach out to considering they are primarily staff members and ones who found the Easter egg.

I hope this helps!

David

Reply