Skip to main content
All CollectionsBest practices & Use casesGamification
Create a Spin-the-Wheel Popup Without Collecting the User’s Email Address
Create a Spin-the-Wheel Popup Without Collecting the User’s Email Address
Updated over 3 months ago

To offer a spin-the-wheel popup that doesn't require an email, we're going to use a signup block that we're going to edit to do the following:

  1. Hide the email field

  2. Use the Wisepops' JS callbacks feature to automatically fill the email field with a dummy email address

Step 1: Create a campaign including a spin-the-wheel block.

Step 2: In the popup builder, open the CSS editor.

Step 3: Paste the following code:

.wisepops-block-signup input[name=email] {
display: none;
}

Step 4: Click on the JS section, add create a new callback listening for the event Before form submit. Set the following snippet as the script:

// Automatically fill up the email field
event.target.elements['email'].value = 'dummy@example.com';

Save your popup, and you're done! Since the JS callback is not executed on preview, you should test your wheel on a hidden URL.

Did this answer your question?