Posted in: Giveaway Features

Pre-Populate Name/Email Of Logged In Users From Your Website

  • Premium Plan Required.

Make it so users who are logged into your website have their name/email pre-populated into a SweepWidget giveaway. This is an advanced feature and will require a little coding. First copy the embed code:

Next you must add two parameters after “sw_container”.

  1. name-prefill=”[USERNAME]”
  2. email-prefill=”[EMAIL]”

You will need to use whatever programming language you’re using and replace [USERNAME] and [EMAIL].

Here’s an example in PHP:

<div id="39-sh6bvzqu" class="sw_container" name-prefill="<?php echo $name; ?>" email-prefill="<?php echo $email; ?>">